Interface WebpageRepository

  • All Superinterfaces:
    IdentifiableRepository<de.digitalcollections.model.identifiable.web.Webpage>, NodeRepository<de.digitalcollections.model.identifiable.web.Webpage>

    public interface WebpageRepository
    extends NodeRepository<de.digitalcollections.model.identifiable.web.Webpage>
    Repository for Webpage persistence handling.
    • Method Detail

      • findRootWebpagesForWebsite

        de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage> findRootWebpagesForWebsite​(UUID websiteUuid,
                                                                                                                                              de.digitalcollections.model.list.paging.PageRequest pageRequest)
      • getWebsite

        de.digitalcollections.model.identifiable.entity.Website getWebsite​(UUID rootWebpageUuid)
        Parameters:
        rootWebpageUuid - uuid of a webpage (webpage must be a top level webpage of the website)
        Returns:
        the website the given root-webpage belongs to (webpage is top level webpage)
      • saveWithParentWebsite

        de.digitalcollections.model.identifiable.web.Webpage saveWithParentWebsite​(UUID webpageUuid,
                                                                                   UUID parentWebsiteUUID)
        Parameters:
        webpageUuid - UUID of newly created webpage to be saved
        parentWebsiteUUID - website the (root) webpage belongs to
        Returns:
        saved webpage
      • updateChildrenOrder

        default boolean updateChildrenOrder​(de.digitalcollections.model.identifiable.web.Webpage webpage,
                                            List<de.digitalcollections.model.identifiable.web.Webpage> children)