Package org.opencms.ui.apps
Class CmsAppCategory
java.lang.Object
org.opencms.ui.apps.CmsAppCategory
- All Implemented Interfaces:
I_CmsAppCategory,I_CmsHasOrder
Bean representing a category for workplace apps.
App categories should have a unique id. Nesting of categories is defined by the parent category id of each category. A category whose parent category id is null will be displayed at the root level, and similarly, a workplace app whose category id is null will be displayed at the root level.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsAppCategory(String id, String parentId, int order, int priority) Creates a new instance. -
Method Summary
-
Constructor Details
-
CmsAppCategory
Creates a new instance.- Parameters:
id- the category idparentId- the parent category idorder- the orderpriority- the priority
-
-
Method Details
-
getId
Description copied from interface:I_CmsAppCategoryReturns the id.- Specified by:
getIdin interfaceI_CmsAppCategory- Returns:
- the id
- See Also:
-
getName
Description copied from interface:I_CmsAppCategoryGets the user readable name for the category for a given locale.- Specified by:
getNamein interfaceI_CmsAppCategory- Parameters:
locale- the locale for which to get the name- Returns:
- the localized name
- See Also:
-
getOrder
Description copied from interface:I_CmsHasOrderGets an integer used to sort items.- Specified by:
getOrderin interfaceI_CmsHasOrder- Returns:
- the integer used as a sort key
- See Also:
-
getParentId
Description copied from interface:I_CmsAppCategoryReturns the parentId.App categories can be nested. The method must return the id of the parent category if the category is nested. If it is on top level,
nullshould be returned.- Specified by:
getParentIdin interfaceI_CmsAppCategory- Returns:
- the parentId
- See Also:
-
getPriority
Description copied from interface:I_CmsAppCategoryReturns the priority.If more than one category with the same id is present, the one with higher priority is shown. The other categories with this id are discarded.
- Specified by:
getPriorityin interfaceI_CmsAppCategory- Returns:
- the priority
- See Also:
-