Class WebpageServiceImpl

    • Constructor Detail

      • WebpageServiceImpl

        @Autowired
        public WebpageServiceImpl​(WebpageRepository repository)
    • Method Detail

      • addChildren

        public boolean addChildren​(UUID parentUuid,
                                   List<UUID> childrenUuids)
        Specified by:
        addChildren in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
      • findActiveChildren

        public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.web.Webpage> findActiveChildren​(UUID uuid,
                                                                                                                                              de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
        Specified by:
        findActiveChildren in interface WebpageService
      • findChildren

        public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.web.Webpage> findChildren​(UUID uuid,
                                                                                                                                        de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
        Specified by:
        findChildren in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
      • getActive

        public de.digitalcollections.model.identifiable.web.Webpage getActive​(UUID uuid)
        Specified by:
        getActive in interface WebpageService
      • getActive

        public de.digitalcollections.model.identifiable.web.Webpage getActive​(UUID uuid,
                                                                              Locale pLocale)
        Specified by:
        getActive in interface WebpageService
      • getActiveChildren

        public List<de.digitalcollections.model.identifiable.web.Webpage> getActiveChildren​(UUID uuid)
        Description copied from interface: WebpageService
        Returns a list of children (non recursive)
        Specified by:
        getActiveChildren in interface WebpageService
        Parameters:
        uuid - UUID of the parent webpage
        Returns:
        List of children Webpages
      • getActiveChildrenTree

        public List<de.digitalcollections.model.identifiable.web.Webpage> getActiveChildrenTree​(UUID uuid)
        Description copied from interface: WebpageService
        Returns a list of active children, with recursivly all children have their active children set
        Specified by:
        getActiveChildrenTree in interface WebpageService
        Parameters:
        uuid - UUID of the parent webpage
        Returns:
        List of acrive children Webpages
      • getActiveChildren

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage> getActiveChildren​(UUID uuid,
                                                                                                                                       de.digitalcollections.model.paging.PageRequest pageRequest)
        Specified by:
        getActiveChildren in interface WebpageService
      • getChildrenTree

        public List<de.digitalcollections.model.identifiable.web.Webpage> getChildrenTree​(UUID uuid)
        Description copied from interface: WebpageService
        Returns a list of children, with recursively all children have their children set
        Specified by:
        getChildrenTree in interface WebpageService
        Parameters:
        uuid - UUID of the parent webpage
        Returns:
        List of active children webpages
      • getBreadcrumbNavigation

        public de.digitalcollections.model.view.BreadcrumbNavigation getBreadcrumbNavigation​(UUID uuid)
        Description copied from interface: NodeService
        Build and return the breadcrumb navigation for the given node UUID
        Specified by:
        getBreadcrumbNavigation in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
        Parameters:
        uuid - the uuid of the node.
        Returns:
        BreadcrumbNavigation with labels in all available languages
      • getChildren

        public List<de.digitalcollections.model.identifiable.web.Webpage> getChildren​(de.digitalcollections.model.identifiable.web.Webpage webpage)
        Specified by:
        getChildren in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
      • getChildren

        public List<de.digitalcollections.model.identifiable.web.Webpage> getChildren​(UUID uuid)
        Specified by:
        getChildren in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
      • getChildren

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage> getChildren​(UUID uuid,
                                                                                                                                 de.digitalcollections.model.paging.PageRequest pageRequest)
        Specified by:
        getChildren in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
      • getParent

        public de.digitalcollections.model.identifiable.web.Webpage getParent​(UUID webpageUuid)
        Specified by:
        getParent in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
      • getParents

        public List<de.digitalcollections.model.identifiable.web.Webpage> getParents​(UUID uuid)
        Specified by:
        getParents in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
      • getRootNodes

        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage> getRootNodes​(de.digitalcollections.model.paging.PageRequest pageRequest)
        Specified by:
        getRootNodes in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
      • getWebsite

        public de.digitalcollections.model.identifiable.entity.Website getWebsite​(UUID webpageUuid)
        Specified by:
        getWebsite in interface WebpageService
      • removeChild

        public boolean removeChild​(UUID parentUuid,
                                   UUID childUuid)
        Specified by:
        removeChild in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
      • saveWithParent

        public de.digitalcollections.model.identifiable.web.Webpage saveWithParent​(de.digitalcollections.model.identifiable.web.Webpage child,
                                                                                   UUID parentUuid)
                                                                            throws IdentifiableServiceException
        Specified by:
        saveWithParent in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
        Parameters:
        child - newly created child node to be saved
        parentUuid - parent node the new node is child of
        Returns:
        saved child node
        Throws:
        IdentifiableServiceException - if saving fails
      • updateChildrenOrder

        public boolean updateChildrenOrder​(UUID parentUuid,
                                           List<de.digitalcollections.model.identifiable.web.Webpage> children)
        Specified by:
        updateChildrenOrder in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>
      • findRootNodes

        public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.web.Webpage> findRootNodes​(de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)
        Specified by:
        findRootNodes in interface NodeService<de.digitalcollections.model.identifiable.web.Webpage>