|
||||||||||
| 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 asset node. |
void |
removeCategory(String tag)
Removes the specified tag from this asset 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 asset. assets can have multiple tags
RulesRepositoryExceptionpublic void updateCategoryList(String[] categories)
public List<CategoryItem> getCategories()
throws RulesRepositoryException
RulesRepositoryExceptionpublic String getCategorySummary()
public void removeCategory(String tag)
throws RulesRepositoryException
tag - the tag to remove from the asset
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 asset
RulesRepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||