public class CmsAppCategory extends java.lang.Object implements I_CmsAppCategory
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 and Description |
|---|
CmsAppCategory(java.lang.String id,
java.lang.String parentId,
int order,
int priority)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns the id.
|
java.lang.String |
getName(java.util.Locale locale)
Gets the user readable name for the category for a given locale.
|
int |
getOrder()
Gets an integer used to sort items.
|
java.lang.String |
getParentId()
Returns the parentId.
|
int |
getPriority()
Returns the priority.
|
public CmsAppCategory(java.lang.String id, java.lang.String parentId, int order, int priority)
id - the category idparentId - the parent category idorder - the orderpriority - the prioritypublic java.lang.String getId()
I_CmsAppCategorygetId in interface I_CmsAppCategoryI_CmsAppCategory.getId()public java.lang.String getName(java.util.Locale locale)
I_CmsAppCategorygetName in interface I_CmsAppCategorylocale - the locale for which to get the nameI_CmsAppCategory.getName(java.util.Locale)public int getOrder()
I_CmsHasOrdergetOrder in interface I_CmsHasOrderI_CmsHasOrder.getOrder()public java.lang.String getParentId()
I_CmsAppCategory
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, null should be
returned.
getParentId in interface I_CmsAppCategoryI_CmsAppCategory.getParentId()public int getPriority()
I_CmsAppCategoryIf 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.
getPriority in interface I_CmsAppCategoryI_CmsAppCategory.getPriority()