public class CmsJspCategoryAccessBean extends java.lang.Object
| Constructor and Description |
|---|
CmsJspCategoryAccessBean(CmsObject cms,
CmsResource resource)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CmsCategory> |
getAllItems()
Returns all wrapped categories.
|
boolean |
getIsEmpty()
Returns
true if there is no category wrapped, otherwise false. |
java.util.List<CmsCategory> |
getLeafItems()
Returns only the leaf categories of the wrapped categories.
|
java.util.Map<java.lang.String,CmsJspCategoryAccessBean> |
getSubCategories()
Returns a map from a category path to the wrapper of all the sub-categories of the category with the path given as key.
|
java.util.List<CmsCategory> |
getTopItems()
Returns all categories that are direct children of the current main category.
|
public CmsJspCategoryAccessBean(CmsObject cms, CmsResource resource)
cms - the current CmsObject.resource - the resource for which the categories should be read.public java.util.List<CmsCategory> getAllItems()
public boolean getIsEmpty()
true if there is no category wrapped, otherwise false.true if there is no category wrapped, otherwise false.public java.util.List<CmsCategory> getLeafItems()
public java.util.Map<java.lang.String,CmsJspCategoryAccessBean> getSubCategories()
public java.util.List<CmsCategory> getTopItems()