Class DefaultNavigationFacade

    • Constructor Detail

      • DefaultNavigationFacade

        public DefaultNavigationFacade()
    • Method Detail

      • findAllNavigationNodes

        public java.util.List<NavigationNodeData> findAllNavigationNodes​(java.lang.String parentUid)
        Description copied from interface: NavigationFacade
        Finds all navigation nodes by parentUid. Returns a list of navigation nodes where the parentUid equals the parentUid parameter, otherwise returns a list of all navigation nodes, excluding the root node. If the parentUid is not an existing item, then it returns an empty list.
        Specified by:
        findAllNavigationNodes in interface NavigationFacade
        Parameters:
        parentUid - the parent unique identifier, optional.
        Returns:
        a list of NavigationNodeData
      • getAllNavigationNodes

        @Deprecated(since="1811",
                    forRemoval=true)
        protected java.util.List<NavigationNodeData> getAllNavigationNodes()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Get all Navigation nodes.
        Returns:
        a list of all the navigation nodes data.
      • addAllNavigationNodes

        @Deprecated(since="1811",
                    forRemoval=true)
        protected void addAllNavigationNodes​(java.util.List<CMSNavigationNodeModel> nodeModels,
                                             java.util.List<CMSNavigationNodeModel> navigationNodes)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811, please use CMSItemFacade.createItem(Map) instead.
        Recursively adds navigation nodes to the reference list
        Parameters:
        nodeModels - the reference list where all the navigation nodes will be added to.
        navigationNodes - the navigation nodes starting point
      • getRootNavigationNodes

        protected java.util.List<NavigationNodeData> getRootNavigationNodes()
        Get the CatalogVersion's navigation nodes.
        Returns:
        the root navigation nodes for the current catalog version.
      • updateNavigationNode

        @Deprecated(since="1811",
                    forRemoval=true)
        public NavigationNodeData updateNavigationNode​(java.lang.String navigationNodeUid,
                                                       NavigationNodeData navigationNodeData)
                                                throws CMSItemNotFoundException
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811, please use CMSItemFacade.updateItem(String, Map) instead.
        Description copied from interface: NavigationFacade
        Updates a NavigationNodeData. This method can also be used to move the node to a different tree structure (changing the parentUid), its position in relation to its siblings, the name and title.
        Specified by:
        updateNavigationNode in interface NavigationFacade
        Parameters:
        navigationNodeUid - the navigation node unique identifier
        navigationNodeData - the navigation node data representing the model to be updated.
        Returns:
        the updated navigation node data.
        Throws:
        CMSItemNotFoundException - when the item does not exist
      • populateParentNavigationNode

        protected void populateParentNavigationNode​(java.util.List<CMSNavigationNodeModel> navigationNodes,
                                                    CMSNavigationNodeModel node)
        Recursively add self and parent nodes to the navigationNodes list.
        Parameters:
        navigationNodes - the list containing all navigation nodes.
        node - the node to be added to the list with its parents.
      • setNavigationService

        public void setNavigationService​(CMSNavigationService navigationService)
      • getModelService

        protected ModelService getModelService()
      • setModelService

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setModelService​(ModelService modelService)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 - no longer needed
      • setAdminSiteService

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setAdminSiteService​(CMSAdminSiteService adminSiteService)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 - no longer needed
      • setNavigationNodeDataToModelUpdatePopulator

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setNavigationNodeDataToModelUpdatePopulator​(Populator<NavigationNodeData,​CMSNavigationNodeModel> navigationNodeDataToModelUpdatePopulator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 - no longer needed
      • setNavigationNodeDataToModelCreatePopulator

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setNavigationNodeDataToModelCreatePopulator​(Populator<NavigationNodeData,​CMSNavigationNodeModel> navigationNodeDataToModelCreatePopulator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 - no longer needed
      • setFacadeValidationService

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setFacadeValidationService​(FacadeValidationService facadeValidationService)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 - no longer needed
      • getCreateNavigationNodeValidator

        protected org.springframework.validation.Validator getCreateNavigationNodeValidator()
      • setCreateNavigationNodeValidator

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setCreateNavigationNodeValidator​(org.springframework.validation.Validator createNavigationNodeValidator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 - no longer needed
      • getUpdateNavigationNodeValidator

        protected org.springframework.validation.Validator getUpdateNavigationNodeValidator()
      • setUpdateNavigationNodeValidator

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setUpdateNavigationNodeValidator​(org.springframework.validation.Validator updateNavigationNodeValidator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 - no longer needed
      • getTransactionManager

        protected org.springframework.transaction.PlatformTransactionManager getTransactionManager()
      • setTransactionManager

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setTransactionManager​(org.springframework.transaction.PlatformTransactionManager transactionManager)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 - no longer needed
      • setNavigationEntryService

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setNavigationEntryService​(NavigationEntryService navigationEntryService)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 - no longer needed
      • getNavigationNodeEntriesValidator

        protected org.springframework.validation.Validator getNavigationNodeEntriesValidator()
      • setNavigationNodeEntriesValidator

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setNavigationNodeEntriesValidator​(org.springframework.validation.Validator navigationNodeEntriesValidator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811 - no longer needed