Java Doc for CategorisableItem.java in  » Rule-Engine » drolls-Rule-Engine » org » drools » repository » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Rule Engine » drolls Rule Engine » org.drools.repository 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.drools.repository.Item
      org.drools.repository.VersionableItem
         org.drools.repository.CategorisableItem

All known Subclasses:   org.drools.repository.AssetItem,
CategorisableItem
abstract public class CategorisableItem extends VersionableItem (Code)
This contains logic for categorisable items (not all versionably items are categorisable).
author:
   michael neale



Constructor Summary
public  CategorisableItem(RulesRepository rulesRepository, Node node)
    

Method Summary
public  voidaddCategory(String tag)
     Adds the specified tag to this object's node.
public  ListgetCategories()
     Gets a list of CategoryItem objects for this assets node. a list of TagItem objects for each tag on the rule.
public  voidremoveCategory(String tag)
     Removes the specified tag from this object's rule node.
public  voidupdateCategoryList(String[] categories)
     This method sets the categories in one hit, making the ASSUMPTION that the categories were previously set up ! (via CategoryItem of course !).


Constructor Detail
CategorisableItem
public CategorisableItem(RulesRepository rulesRepository, Node node)(Code)




Method Detail
addCategory
public void addCategory(String tag) throws RulesRepositoryException(Code)
Adds the specified tag to this object's node. Tags are stored as nodes in a tag area of the repository. If the specified tag does not already have a corresponding node, a node is created for it. Please note that this is mainly intended for rule related assets, not packages (although it could be used).
Parameters:
  tag - the tag to add to the rule. rules can have multiple tags
throws:
  RulesRepositoryException -



getCategories
public List getCategories() throws RulesRepositoryException(Code)
Gets a list of CategoryItem objects for this assets node. a list of TagItem objects for each tag on the rule. If there are no tags, an empty list.
throws:
  RulesRepositoryException -



removeCategory
public void removeCategory(String tag) throws RulesRepositoryException(Code)
Removes the specified tag from this object's rule node.
Parameters:
  tag - the tag to remove from the rule
throws:
  RulesRepositoryException -



updateCategoryList
public void updateCategoryList(String[] categories)(Code)
This method sets the categories in one hit, making the ASSUMPTION that the categories were previously set up ! (via CategoryItem of course !).



Fields inherited from org.drools.repository.VersionableItem
final public static String CATEGORY_PROPERTY_NAME(Code)(Java Doc)
final public static String CHECKIN_COMMENT(Code)(Java Doc)
final public static String CONTENT_PROPERTY_ARCHIVE_FLAG(Code)(Java Doc)
final public static String COVERAGE_PROPERTY_NAME(Code)(Java Doc)
final public static String CREATOR_PROPERTY_NAME(Code)(Java Doc)
final public static String DEFAULT_CONTENT_FORMAT(Code)(Java Doc)
final public static String DESCRIPTION_PROPERTY_NAME(Code)(Java Doc)
final public static String FORMAT_PROPERTY_NAME(Code)(Java Doc)
final public static String LAST_CONTRIBUTOR_PROPERTY_NAME(Code)(Java Doc)
final public static String LAST_MODIFIED_PROPERTY_NAME(Code)(Java Doc)
final public static String PUBLISHER_PROPERTY_NAME(Code)(Java Doc)
final public static String RELATION_PROPERTY_NAME(Code)(Java Doc)
final public static String RIGHTS_PROPERTY_NAME(Code)(Java Doc)
final public static String SOURCE_PROPERTY_NAME(Code)(Java Doc)
final public static String STATE_PROPERTY_NAME(Code)(Java Doc)
final public static String SUBJECT_PROPERTY_NAME(Code)(Java Doc)
final public static String TITLE_PROPERTY_NAME(Code)(Java Doc)
final public static String TYPE_PROPERTY_NAME(Code)(Java Doc)
final public static String VERSION_NUMBER_PROPERTY_NAME(Code)(Java Doc)

Methods inherited from org.drools.repository.VersionableItem
public VersionableItem archiveItem(boolean data)(Code)(Java Doc)
protected void checkIsUpdateable()(Code)(Java Doc)
public void checkin(String comment)(Code)(Java Doc)
public void checkout()(Code)(Java Doc)
public String getCheckinComment() throws RulesRepositoryException(Code)(Java Doc)
public String getCoverage()(Code)(Java Doc)
public Calendar getCreatedDate()(Code)(Java Doc)
public String getCreator()(Code)(Java Doc)
public String getDescription() throws RulesRepositoryException(Code)(Java Doc)
public String getExternalRelation()(Code)(Java Doc)
public String getExternalSource()(Code)(Java Doc)
public String getFormat() throws RulesRepositoryException(Code)(Java Doc)
public String getLastContributor()(Code)(Java Doc)
public Calendar getLastModified() throws RulesRepositoryException(Code)(Java Doc)
protected long getLongProperty(String property)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
abstract public VersionableItem getPrecedingVersion() throws RulesRepositoryException(Code)(Java Doc)
protected Node getPrecedingVersionNode() throws RulesRepositoryException(Code)(Java Doc)
ItemVersionIterator getPredecessorVersionsIterator() throws RulesRepositoryException(Code)(Java Doc)
public String getPublisher()(Code)(Java Doc)
protected Node getRealContentFromVersion(Node node) throws RepositoryException, PathNotFoundException(Code)(Java Doc)
public String getRights()(Code)(Java Doc)
public StateItem getState() throws RulesRepositoryException(Code)(Java Doc)
public String getStateDescription()(Code)(Java Doc)
protected String getStringProperty(String property)(Code)(Java Doc)
public String getSubject()(Code)(Java Doc)
abstract public VersionableItem getSucceedingVersion() throws RulesRepositoryException(Code)(Java Doc)
protected Node getSucceedingVersionNode() throws RulesRepositoryException(Code)(Java Doc)
ItemVersionIterator getSuccessorVersionsIterator() throws RulesRepositoryException(Code)(Java Doc)
public String getTitle() throws RulesRepositoryException(Code)(Java Doc)
public String getType()(Code)(Java Doc)
public String getUUID()(Code)(Java Doc)
public Node getVersionContentNode() throws RepositoryException, PathNotFoundException(Code)(Java Doc)
public long getVersionNumber()(Code)(Java Doc)
public String getVersionSnapshotUUID()(Code)(Java Doc)
public boolean isArchived()(Code)(Java Doc)
public boolean isHistoricalVersion() throws RepositoryException(Code)(Java Doc)
public boolean sameState(StateItem other)(Code)(Java Doc)
public void updateCoverage(String cov)(Code)(Java Doc)
public void updateDescription(String newDescriptionContent) throws RulesRepositoryException(Code)(Java Doc)
public void updateExternalRelation(String rel)(Code)(Java Doc)
public void updateExternalSource(String source)(Code)(Java Doc)
public void updateFormat(String newFormat)(Code)(Java Doc)
public void updatePublisher(String pub)(Code)(Java Doc)
public void updateRights(String rights)(Code)(Java Doc)
public void updateState(String stateName) throws RulesRepositoryException(Code)(Java Doc)
public void updateState(StateItem stateItem) throws RulesRepositoryException(Code)(Java Doc)
protected void updateStringProperty(String value, String prop)(Code)(Java Doc)
public void updateSubject(String sub)(Code)(Java Doc)
public void updateTitle(String title) throws RulesRepositoryException(Code)(Java Doc)
public void updateType(String type)(Code)(Java Doc)

Fields inherited from org.drools.repository.Item
Logger log(Code)(Java Doc)
protected Node node(Code)(Java Doc)
protected RulesRepository rulesRepository(Code)(Java Doc)

Methods inherited from org.drools.repository.Item
public boolean equals(Object obj)(Code)(Java Doc)
public String getName() throws RulesRepositoryException(Code)(Java Doc)
public Node getNode()(Code)(Java Doc)
public RulesRepository getRulesRepository()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.