Interface NodeRepository<N extends de.digitalcollections.model.identifiable.Identifiable>

    • Method Detail

      • addChild

        default boolean addChild​(N parent,
                                 N child)
      • addChild

        default boolean addChild​(UUID parentUuid,
                                 UUID childUuid)
      • addChildren

        default boolean addChildren​(N parent,
                                    List<N> children)
      • addChildren

        boolean addChildren​(UUID parentUuid,
                            List<UUID> childrenUUIDs)
      • getBreadcrumbNavigation

        de.digitalcollections.model.view.BreadcrumbNavigation getBreadcrumbNavigation​(UUID nodeUuid)
        Parameters:
        nodeUuid - the uuid of the current node
        Returns:
        the breadcrumb navigation
      • getChildren

        default List<N> getChildren​(N node)
      • getChildren

        List<N> getChildren​(UUID nodeUuid)
      • findChildren

        de.digitalcollections.model.list.paging.PageResponse<N> findChildren​(UUID nodeUuid,
                                                                             de.digitalcollections.model.list.paging.PageRequest pageRequest)
      • getParent

        N getParent​(UUID nodeUuid)
      • getParents

        List<N> getParents​(UUID uuid)
      • findRootNodes

        de.digitalcollections.model.list.paging.PageResponse<N> findRootNodes​(de.digitalcollections.model.list.paging.PageRequest pageRequest)
      • getRootNodesLanguages

        List<Locale> getRootNodesLanguages()
      • removeChild

        default boolean removeChild​(N parent,
                                    N child)
      • removeChild

        boolean removeChild​(UUID parentUuid,
                            UUID childUuid)
      • saveWithParent

        N saveWithParent​(UUID childUuid,
                         UUID parentUUID)
        Parameters:
        childUuid - newly created child node
        parentUUID - parent node the new node is child of
        Returns:
        saved child node
      • updateChildrenOrder

        boolean updateChildrenOrder​(UUID parentUuid,
                                    List<N> children)