| |
|
| 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 |
Method Summary | |
public void | addCategory(String tag) Adds the specified tag to this object's node. | public List | getCategories() Gets a list of CategoryItem objects for this assets node.
a list of TagItem objects for each tag on the rule. | public void | removeCategory(String tag) Removes the specified tag from this object's rule node. | public void | updateCategoryList(String[] categories) This method sets the categories in one hit, making the
ASSUMPTION that the categories were previously set up !
(via CategoryItem of course !). |
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 - |
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 !).
|
|
|
|