public class CmsAppHierarchyBuilder extends java.lang.Object
Constructor and Description |
---|
CmsAppHierarchyBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAppConfigToCategory(I_CmsWorkplaceAppConfiguration appConfig)
Adds an app configuration to the node belonging to its parent category id.
|
void |
addAppConfiguration(I_CmsWorkplaceAppConfiguration appConfig)
Adds an app configuration.
|
void |
addCategory(I_CmsAppCategory category)
Adds an app category.
|
protected void |
addNodeToItsParent(CmsAppCategoryNode node)
Adds a category node to the category node belonging to its parent id.
|
CmsAppCategoryNode |
buildHierarchy()
Builds the tree of categories and apps.
|
CmsAppCategoryNode |
getRootNode()
Gets the root node.
|
public CmsAppHierarchyBuilder()
public void addAppConfiguration(I_CmsWorkplaceAppConfiguration appConfig)
appConfig
- the app configuration to addpublic void addCategory(I_CmsAppCategory category)
category
- the app category to addpublic CmsAppCategoryNode buildHierarchy()
This tree will only include those categories which are reachable by following the parent chain of an available app configuration up to the root category (null).
public CmsAppCategoryNode getRootNode()
protected void addAppConfigToCategory(I_CmsWorkplaceAppConfiguration appConfig)
appConfig
- the app configuration to add to its parent nodeprotected void addNodeToItsParent(CmsAppCategoryNode node)
node
- the node which should be attached to its parent