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

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

    • findRootWebpagesForWebsite

      default de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage> findRootWebpagesForWebsite(de.digitalcollections.model.identifiable.entity.Website website, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws RepositoryException
      Throws:
      RepositoryException
    • findRootWebpagesForWebsite

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

      default de.digitalcollections.model.identifiable.entity.Website getWebsite(de.digitalcollections.model.identifiable.web.Webpage webpage) throws RepositoryException
      Throws:
      RepositoryException
    • getWebsite

      de.digitalcollections.model.identifiable.entity.Website getWebsite(UUID rootWebpageUuid) throws RepositoryException
      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)
      Throws:
      RepositoryException
    • saveWithParentWebsite

      default de.digitalcollections.model.identifiable.web.Webpage saveWithParentWebsite(de.digitalcollections.model.identifiable.web.Webpage webpage, de.digitalcollections.model.identifiable.entity.Website website) throws RepositoryException
      Throws:
      RepositoryException
    • saveWithParentWebsite

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