Interface NodeService<N extends de.digitalcollections.model.api.identifiable.Node>

    • Method Detail

      • getParent

        N getParent​(N node)
      • getParent

        N getParent​(UUID nodeUuid)
      • getChildren

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

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

        de.digitalcollections.model.api.paging.PageResponse<N> getChildren​(UUID uuid,
                                                                           de.digitalcollections.model.api.paging.PageRequest pageRequest)
      • getBreadcrumbNavigation

        de.digitalcollections.model.api.view.BreadcrumbNavigation getBreadcrumbNavigation​(UUID nodeUuid)
        Build and return the breadcrumb navigation for the given node UUID
        Parameters:
        nodeUuid - the uuid of the node.
        Returns:
        BreadcrumbNavigation with labels in all available languages
      • getBreadcrumbNavigation

        default de.digitalcollections.model.api.view.BreadcrumbNavigation getBreadcrumbNavigation​(UUID nodeUuid,
                                                                                                  Locale locale,
                                                                                                  Locale fallbackLocale)
        Build and return the breadcrumb navigation for the given webpage UUID and desired locale. If no label for that locale exists, use the label for the fallbackLocale, and if even this fails, use the first locale.
        Parameters:
        nodeUuid - the uuid of the webpage
        locale - the desired locale for the navigation item labels
        fallbackLocale - the fallback locale for the navigation item labels
        Returns:
        Breadcrumb navigation with labels in the desired language (if possible)