Package com.jalios.jcms
Class CategoryIndexManager
java.lang.Object
com.jalios.jcms.AbstractIndexManager
com.jalios.jcms.CategoryIndexManager
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jalios.jcms.AbstractIndexManager
AbstractIndexManager.DataIndex<D extends Data,C>, AbstractIndexManager.DataIndexMap<D extends Data, K, V>, AbstractIndexManager.DataIndexSet<D extends Data, E> -
Field Summary
Fields inherited from class com.jalios.jcms.AbstractIndexManager
channel -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAllContent(Category cat, Content content) Adds the given content to the all content set of the given category.booleanaddAllPublication(Category cat, Publication pub) Adds the given publication to the all publication set of the given category.booleanAdds the given child to the given Category.booleanaddContent(Category cat, Content content) Adds the given content to the content set of the given category.booleanaddPublication(Category cat, Publication pub) Adds the given publication to the publication set of the given category.voidclearChildrenSet(Category cat) Clears the children set associated to the given Category.voiddeleteCategory(Category category) Delete the specified category from all index.getAllContentSet(Category cat) Returns the all content set associated to the given category.Returns the all publication set associated to the given category.getChildrenSet(Category cat) Returns the children set associated to the given Category.getContentSet(Category cat) Returns the content set associated to the given category.static CategoryIndexManagerReturns the publication set associated to the given category.booleanremoveAllContent(Category cat, Content content) Removes the given content for the given category.booleanremoveAllPublication(Category cat, Publication pub) Removes the given publication for the given category.booleanremoveChild(Category cat, Category child) Removes the given child for the given Category.booleanremoveContent(Category cat, Content content) Removes the given content for the given category.booleanremovePublication(Category cat, Publication pub) Removes the given publication for the given category.voidsetAllContentSet(Category cat, Set<Content> set) Set the all content set associated to the given Category.voidsetAllPublicationSet(Category cat, Set<Publication> set) Set the all publication set associated to the given Category.voidsetChildrenSet(Category cat, Set<Category> set) Set the children set associated to the given Category.Methods inherited from class com.jalios.jcms.AbstractIndexManager
addIndexWithSet, addIndexWithSet, clearIndex, getIndexWithMap, getIndexWithMap, getIndexWithSet, getOriginalData, isUndefinedIndexWithSet, putIndexWithMap, removeIndexWithMap, removeIndexWithSet, removeIndexWithSet, setIndexWithSet
-
Method Details
-
getInstance
-
getChildrenSet
Returns the children set associated to the given Category.- Parameters:
cat- the Category- Returns:
- the children set associated to the given Category.
- Since:
- jcms-6.0.0
-
setChildrenSet
Set the children set associated to the given Category.- Parameters:
cat- Category for which children set is definedset- the set- Since:
- jcms-6.0.0
-
clearChildrenSet
Clears the children set associated to the given Category.- Parameters:
cat- the Category- Since:
- jcms-6.0.0
-
addChild
Adds the given child to the given Category.- Parameters:
cat- Category with which this child must be added.child- the child category- Returns:
- true if this set did not already contain the specified element.
- Since:
- jcms-6.0.0
-
removeChild
Removes the given child for the given Category.- Parameters:
cat- Category with which this content must be removed.child- child category to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
- Since:
- jcms-6.0.0
-
getPublicationSet
Returns the publication set associated to the given category.- Parameters:
cat- the category- Returns:
- the publication set associated to the given category.
- Since:
- jcms-6.0.0
-
addPublication
Adds the given publication to the publication set of the given category.- Parameters:
cat- category with which this publication must be added.pub- publication to be added to this set.- Returns:
- true if this set did not already contain the specified element.
- Since:
- jcms-6.0.0
-
removePublication
Removes the given publication for the given category.- Parameters:
cat- category with which this publication must be removed.pub- publication to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
- Since:
- jcms-6.0.0
-
getAllPublicationSet
Returns the all publication set associated to the given category.- Parameters:
cat- the category- Returns:
- the publication set associated to the given category.
- Since:
- jcms-6.0.0
-
setAllPublicationSet
Set the all publication set associated to the given Category.- Parameters:
cat- category for which publication set is definedset- the set- Since:
- jcms-6.0.0
-
addAllPublication
Adds the given publication to the all publication set of the given category.- Parameters:
cat- category with which this publication must be added.pub- publication to be added to this set.- Returns:
- true if this set did not already contain the specified element.
- Since:
- jcms-6.0.0
-
removeAllPublication
Removes the given publication for the given category.- Parameters:
cat- category with which this publication must be removed.pub- publication to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
- Since:
- jcms-6.0.0
-
getContentSet
Returns the content set associated to the given category.- Parameters:
cat- the category- Returns:
- the content set associated to the given category.
- Since:
- jcms-6.0.0
-
addContent
Adds the given content to the content set of the given category.- Parameters:
cat- ember with which this content must be added.content- content to be added to this set.- Returns:
- true if this set did not already contain the specified element.
- Since:
- jcms-6.0.0
-
removeContent
Removes the given content for the given category.- Parameters:
cat- category with which this content must be removed.content- content to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
- Since:
- jcms-6.0.0
-
getAllContentSet
Returns the all content set associated to the given category.- Parameters:
cat- the category- Returns:
- the content set associated to the given category.
- Since:
- jcms-6.0.0
-
setAllContentSet
Set the all content set associated to the given Category.- Parameters:
cat- category for which content set is definedset- the set- Since:
- jcms-6.0.0
-
addAllContent
Adds the given content to the all content set of the given category.- Parameters:
cat- category for which this content must be added.content- content to be added to this set.- Returns:
- true if this set did not already contain the specified element.
- Since:
- jcms-6.0.0
-
removeAllContent
Removes the given content for the given category.- Parameters:
cat- category with which this content must be removed.content- content to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
- Since:
- jcms-6.0.0
-
deleteCategory
Delete the specified category from all index.- Parameters:
category- a category (null supported and ignored)- Since:
- 10.0.9 / JCMS-11374
-