|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.repository.Item
org.drools.repository.VersionableItem
org.drools.repository.CategorisableItem
public abstract class CategorisableItem
This contains logic for categorisable items (not all versionably items are categorisable).
Field Summary |
---|
Fields inherited from class org.drools.repository.Item |
---|
node, rulesRepository |
Constructor Summary | |
---|---|
CategorisableItem(RulesRepository rulesRepository,
javax.jcr.Node node)
|
Method Summary | |
---|---|
void |
addCategory(String tag)
Adds the specified tag to this object's node. |
List<CategoryItem> |
getCategories()
Gets a list of CategoryItem objects for this assets node. |
String |
getCategorySummary()
This will show a summary list of categories. |
static void |
removeCategory(javax.jcr.Node targetNode,
String tag)
Removes the specified tag from this object's rule node. |
void |
removeCategory(String tag)
Removes the specified tag from this object's rule node. |
void |
updateCategoryList(String[] categories)
This method sets the categories in one hit, making the ASSUMPTION that the categories were previously set up ! |
Methods inherited from class org.drools.repository.Item |
---|
equals, getNode, getRulesRepository, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CategorisableItem(RulesRepository rulesRepository, javax.jcr.Node node)
Method Detail |
---|
public void addCategory(String tag) throws RulesRepositoryException
tag
- the tag to add to the rule. rules can have multiple tags
RulesRepositoryException
public void updateCategoryList(String[] categories)
public List<CategoryItem> getCategories() throws RulesRepositoryException
RulesRepositoryException
public String getCategorySummary()
public void removeCategory(String tag) throws RulesRepositoryException
tag
- the tag to remove from the rule
RulesRepositoryException
public static void removeCategory(javax.jcr.Node targetNode, String tag) throws RulesRepositoryException
targetNode
- the node from which the tag is to be removed.tag
- the tag to remove from the rule
RulesRepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |