public interface CMSNavigationService
| Modifier and Type | Method and Description |
|---|---|
void |
appendRelatedItems(CMSNavigationNodeModel cmsNavigationNode,
java.util.Collection<ItemModel> items)
Adds selected items to specific
CMSNavigationNodeModel navigation node. |
CMSNavigationEntryModel |
createCmsNavigationEntry(CatalogVersionModel catalogVersion,
ItemModel item)
Creates an orphan entry for a given
item. |
CMSNavigationEntryModel |
createCmsNavigationEntry(CMSNavigationNodeModel cmsNavigationNode,
java.lang.String entryName,
ItemModel item)
Adds a
item to given cmsNavigationNode navigation node. |
CMSNavigationNodeModel |
createNavigationNode(ItemModel parentNode,
java.lang.String navigationNodeName,
boolean visible,
java.util.Collection<ItemModel> relatedItems)
Deprecated.
since 1811, please use
CMSItemFacade.createItem(Map)
instead. |
CMSNavigationNodeModel |
createSuperRootNavigationNode(CatalogVersionModel catalogVersion)
Creates super root navigation node for given catalog version.
|
void |
delete(CMSNavigationNodeModel cmsNavigationNode)
Deprecated.
since 1811, no longer needed.
|
java.util.List<CMSNavigationEntryModel> |
getNavigationEntriesByPage(AbstractPageModel page)
Finds all
CMSNavigationEntryModel associated with a AbstractPageModel. |
java.util.Optional<CMSNavigationEntryModel> |
getNavigationEntryForId(java.lang.String id,
CatalogVersionModel catalogVersion)
Returns a Navigation Entry identified via its id and the given catalog version
|
CMSNavigationNodeModel |
getNavigationNodeForId(java.lang.String id)
Returns a Navigation Node identified via its id
|
java.util.List<CMSNavigationNodeModel> |
getNavigationNodesForContentPage(ContentPageModel page)
Returns a list of all Navigation Nodes which contain the given page
|
java.util.List<CMSNavigationNodeModel> |
getNavigationNodesForContentPageId(java.lang.String pageId)
Returns a list of all Navigation Nodes which contain the given page
|
java.util.List<CMSNavigationNodeModel> |
getRootNavigationNodes() |
java.util.List<CMSNavigationNodeModel> |
getRootNavigationNodes(CatalogVersionModel catalogVersion)
Returns all root navigation nodes for given catalog version.
|
java.util.List<CMSNavigationNodeModel> |
getRootNavigationNodesForContentPage(ContentPageModel page)
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 assigned
|
java.util.List<CMSNavigationNodeModel> |
getRootNavigationNodesForContentPageId(java.lang.String pageId)
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 assigned
|
CMSNavigationNodeModel |
getSuperRootNavigationNode(CatalogVersionModel catalogVersionModel)
Returns super root navigation node for given catalog version.
|
boolean |
isSuperRootNavigationNode(CMSNavigationNodeModel navigationNodeModel)
Tests if a navigation node is a super root node.
|
void |
move(CMSNavigationNodeModel sourceNode,
CMSNavigationNodeModel targetModel)
Moves given nodeModel at last position of the child nodes list of targetModel.
|
void |
move(CMSNavigationNodeModel source,
CMSNavigationNodeModel target,
boolean asChild,
boolean append)
Moves source nod to targert node.
|
void |
move(CMSNavigationNodeModel cmsNavigationNode,
ItemModel sourceItem,
ItemModel targetnItem)
Moves given items within given navigation node.
|
void |
move(ItemModel item,
CMSNavigationNodeModel sourceNode,
CMSNavigationNodeModel targetNode)
Moves given item from sourceNode to targetNode.
|
void |
remove(CMSNavigationNodeModel cmsNavigationNode,
ItemModel item)
Removes given item from given navigation node.
|
boolean |
removeNavigationEntryByUid(CMSNavigationNodeModel cmsNavigationNode,
java.lang.String navigationEntryUid)
Deprecated.
since 1811, no longer needed.
|
CMSNavigationNodeModel |
setSuperRootNodeOnNavigationNode(CMSNavigationNodeModel navigationNodeModel,
CatalogVersionModel catalogVersionModel)
Sets the super root node onto the passed CMS navigation node model.
|
CMSNavigationNodeModel getNavigationNodeForId(java.lang.String id) throws CMSItemNotFoundException
id - id of the Navigation NodeCMSItemNotFoundException - if no Navigation Node with the given id could be foundjava.util.List<CMSNavigationNodeModel> getNavigationNodesForContentPage(ContentPageModel page)
page - Page to lookupjava.util.List<CMSNavigationNodeModel> getNavigationNodesForContentPageId(java.lang.String pageId) throws CMSItemNotFoundException
pageId - id of the pageCMSItemNotFoundException - if the page with the given id could not be foundjava.util.List<CMSNavigationNodeModel> getRootNavigationNodes()
java.util.List<CMSNavigationNodeModel> getRootNavigationNodesForContentPage(ContentPageModel page)
page - page to lookupjava.util.List<CMSNavigationNodeModel> getRootNavigationNodesForContentPageId(java.lang.String pageId) throws CMSItemNotFoundException
pageId - id of the pageCMSItemNotFoundException - if the page with the given id could not be foundjava.util.List<CMSNavigationEntryModel> getNavigationEntriesByPage(AbstractPageModel page)
CMSNavigationEntryModel associated with a AbstractPageModel.page - the AbstractPageModelCMSNavigationEntryModel, or an empty List if not foundjava.util.Optional<CMSNavigationEntryModel> getNavigationEntryForId(java.lang.String id, CatalogVersionModel catalogVersion)
id - id of the Navigation EntrycatalogVersion - catalog versionCMSNavigationEntryModel createCmsNavigationEntry(CMSNavigationNodeModel cmsNavigationNode, java.lang.String entryName, ItemModel item)
item to given cmsNavigationNode navigation node.
Note:cmsNavigationNode is saved!item - item that will be addedentryName - the navigation entry namecmsNavigationNode - given navigation nodeCMSNavigationEntryModel createCmsNavigationEntry(CatalogVersionModel catalogVersion, ItemModel item)
item.
Note:catalogVersion - catalog versionitem - item that will be addedjava.util.List<CMSNavigationNodeModel> getRootNavigationNodes(CatalogVersionModel catalogVersion)
catalogVersion - catalog versionvoid move(CMSNavigationNodeModel sourceNode, CMSNavigationNodeModel targetModel)
nodeModel and targetModel are saved!sourceNode - node that will be movedtargetModel - a new target nodevoid move(CMSNavigationNodeModel cmsNavigationNode, ItemModel sourceItem, ItemModel targetnItem)
naviNode is saved with new items order!cmsNavigationNode - current navigation nodesourceItem - a source nodetargetnItem - a new target nodevoid move(ItemModel item, CMSNavigationNodeModel sourceNode, CMSNavigationNodeModel targetNode)
sourceNode and targetNode is
saved with new item order!item - item that will be movedsourceNode - a source nodetargetNode - a new target node@Deprecated void delete(CMSNavigationNodeModel cmsNavigationNode)
cmsNavigationNode - navigation node to removevoid remove(CMSNavigationNodeModel cmsNavigationNode, ItemModel item)
cmsNavigationNode is saved!cmsNavigationNode - given navigation nodeitem - given item to remove from cmsNavigationNode@Deprecated boolean removeNavigationEntryByUid(CMSNavigationNodeModel cmsNavigationNode, java.lang.String navigationEntryUid)
cmsNavigationNode is saved.cmsNavigationNode - given navigation nodenavigationEntryUid - given navigation entry uid.@Deprecated CMSNavigationNodeModel createNavigationNode(ItemModel parentNode, java.lang.String navigationNodeName, boolean visible, java.util.Collection<ItemModel> relatedItems)
CMSItemFacade.createItem(Map)
instead.CMSNavigationNodeModel is not saved!parentNode - parent for created navigation nodenavigationNodeName - given navigation node namevisible - flag determines navigation node visibilityrelatedItems - given related itemsboolean isSuperRootNavigationNode(CMSNavigationNodeModel navigationNodeModel)
navigationNodeModel - node model to test if it's a super root nodeCMSNavigationNodeModel setSuperRootNodeOnNavigationNode(CMSNavigationNodeModel navigationNodeModel, CatalogVersionModel catalogVersionModel)
navigationNodeModel - node model to set the super root node oncatalogVersionModel - the belonging catalog version model of the super root nodeCMSNavigationNodeModel getSuperRootNavigationNode(CatalogVersionModel catalogVersionModel)
catalogVersionModel - current catalog versionvoid appendRelatedItems(CMSNavigationNodeModel cmsNavigationNode, java.util.Collection<ItemModel> items)
CMSNavigationNodeModel navigation node.
cmsNavigationNode - given navigation nodeitems - that will be addedCMSNavigationNodeModel createSuperRootNavigationNode(CatalogVersionModel catalogVersion)
catalogVersion - catalog version for which the super root node will be createdvoid move(CMSNavigationNodeModel source, CMSNavigationNodeModel target, boolean asChild, boolean append)
source - node to be movedtarget - node to be dropped atasChild - if true source node will be come target node's child otherwise source will become target's siblingappend - if true source will be added as last (child node)/next(sibling) else as first/previousCopyright © 2018 SAP SE. All Rights Reserved.