Interface CMSNavigationService
- All Known Implementing Classes:
DefaultCMSNavigationService
public interface CMSNavigationService
The Interface CMSNavigationService for managing cms navigation nodes. In addition, this service contains methods to
fetch and create super root nodes with the provided catalog version. A super root node is the first hidden node of
every catalog that contains the visible root children nodes.
- Catalog
- Hidden Super Root Node
- Visible Root Node
- Visible Root Node
- Hidden Super Root Node
- Spring Bean ID:
- cmsNavigationService
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendRelatedItems(CMSNavigationNodeModel cmsNavigationNode, Collection<ItemModel> items) Adds selected items to specificCMSNavigationNodeModelnavigation node.createCmsNavigationEntry(CatalogVersionModel catalogVersion, ItemModel item) Creates an orphan entry for a givenitem.createCmsNavigationEntry(CMSNavigationNodeModel cmsNavigationNode, String entryName, ItemModel item) Adds aitemto givencmsNavigationNodenavigation node.createNavigationNode(ItemModel parentNode, String navigationNodeName, boolean visible, Collection<ItemModel> relatedItems) Deprecated, for removal: This API element is subject to removal in a future version.createSuperRootNavigationNode(CatalogVersionModel catalogVersion) Creates super root navigation node for given catalog version.voiddelete(CMSNavigationNodeModel cmsNavigationNode) Deprecated, for removal: This API element is subject to removal in a future version.since 1811, no longer needed.Finds allCMSNavigationEntryModelassociated with aAbstractPageModel.getNavigationEntryForId(String id, CatalogVersionModel catalogVersion) Returns a Navigation Entry identified via its id and the given catalog versionReturns a Navigation Node identified via its idReturns a list of all Navigation Nodes which contain the given pageReturns a list of all Navigation Nodes which contain the given pagegetRootNavigationNodes(CatalogVersionModel catalogVersion) Returns all root navigation nodes for given catalog version.Returns a list of all root Navigation Nodes which have this page assigned, or which have a children in their navigation tree which has this page assignedReturns a list of all root Navigation Nodes which have this page assigned, or which have a children in their navigation tree which has this page assignedgetSuperRootNavigationNode(CatalogVersionModel catalogVersionModel) Returns super root navigation node for given catalog version.booleanisSuperRootNavigationNode(CMSNavigationNodeModel navigationNodeModel) Tests if a navigation node is a super root node.voidmove(CMSNavigationNodeModel sourceNode, CMSNavigationNodeModel targetModel) Moves given nodeModel at last position of the child nodes list of targetModel.voidmove(CMSNavigationNodeModel source, CMSNavigationNodeModel target, boolean asChild, boolean append) Moves source nod to targert node.voidmove(CMSNavigationNodeModel cmsNavigationNode, ItemModel sourceItem, ItemModel targetnItem) Moves given items within given navigation node.voidmove(ItemModel item, CMSNavigationNodeModel sourceNode, CMSNavigationNodeModel targetNode) Moves given item from sourceNode to targetNode.voidremove(CMSNavigationNodeModel cmsNavigationNode, ItemModel item) Removes given item from given navigation node.booleanremoveNavigationEntryByUid(CMSNavigationNodeModel cmsNavigationNode, String navigationEntryUid) Deprecated, for removal: This API element is subject to removal in a future version.since 1811, no longer needed.setSuperRootNodeOnNavigationNode(CMSNavigationNodeModel navigationNodeModel, CatalogVersionModel catalogVersionModel) Sets the super root node onto the passed CMS navigation node model.
-
Method Details
CMSItemFacade.createItem(Map)instead.