Class DefaultCMSNavigationService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSNavigationService
- All Implemented Interfaces:
CMSNavigationService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
Default implementation of
CMSNavigationService interface.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
CURRENTCATALOGVERSION, CURRENTSITEFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
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 node, String entryName, ItemModel entryContent) Adds aitemto givencmsNavigationNodenavigation node.protected CMSNavigationEntryModelcreateCmsNavigationEntry(ItemModel entryContent, CatalogVersionModel catalogVersionModel) createNavigationNode(ItemModel parentNode, String navigationNodeName, boolean visible, Collection<ItemModel> relatedItems) Creates a navigation node accordingly to specified attributes.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.protected voiddeleteRecursively(CMSNavigationNodeModel cmsNavigationNode) Deletes all children all way down to leafs.extractCmsNavigationEntries(CMSNavigationNodeModel navigatioNode) Extracts items from given navigation node.protected CatalogVersionServiceprotected CMSAdminSiteServiceprotected CMSNavigationDaoprotected CMSPageServiceFinds 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 idprotected List<CMSNavigationNodeModel>Returns a list of all Navigation Nodes which contain the given pageReturns a list of all Navigation Nodes which contain the given pageprotected KeyGeneratorReturns all root navigation nodes for given catalog version.protected List<CMSNavigationNodeModel>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 sourceNode, CMSNavigationNodeModel targetModel, boolean asChild, boolean append) Moves source nod to targert node.voidmove(CMSNavigationNodeModel cmsNavigationNode, ItemModel sourceEntry, ItemModel targetnEntry) 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.voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCmsAdminSiteService(CMSAdminSiteService cmsAdminSiteService) voidsetCmsNavigationDao(CMSNavigationDao cmsNavigationDao) voidsetCmsPageService(CMSPageService cmsPageService) voidsetProcessCodeGenerator(KeyGenerator keyGenerator) setSuperRootNodeOnNavigationNode(CMSNavigationNodeModel navigationNodeModel, CatalogVersionModel catalogVersionModel) Sets the super root node onto the passed CMS navigation node model.protected List<CMSNavigationEntryModel>wrapItemModel(Collection<ItemModel> items, CatalogVersionModel catalogVersionModel) Wrap given items to become aCMSNavigationEntryModel.Methods inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserServiceMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultCMSNavigationService
public DefaultCMSNavigationService()
-
-
Method Details
-
wrapItemModel
protected List<CMSNavigationEntryModel> wrapItemModel(Collection<ItemModel> items, CatalogVersionModel catalogVersionModel) Wrap given items to become aCMSNavigationEntryModel. -
getCatalogVersionService
-
setCatalogVersionService
-
getCmsPageService
-
setCmsPageService
-
getProcessCodeGenerator
-
setProcessCodeGenerator
-
getCmsAdminSiteService
-
setCmsAdminSiteService