Interface WebpageRepository
- 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 Summary
Modifier and TypeMethodDescriptiondefault 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) de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage>findRootWebpagesForWebsite(UUID websiteUuid, de.digitalcollections.model.list.paging.PageRequest pageRequest) default de.digitalcollections.model.identifiable.entity.WebsitegetWebsite(de.digitalcollections.model.identifiable.web.Webpage webpage) de.digitalcollections.model.identifiable.entity.WebsitegetWebsite(UUID rootWebpageUuid) default de.digitalcollections.model.identifiable.web.WebpagesaveWithParentWebsite(de.digitalcollections.model.identifiable.web.Webpage webpage, de.digitalcollections.model.identifiable.entity.Website website) de.digitalcollections.model.identifiable.web.WebpagesaveWithParentWebsite(UUID webpageUuid, UUID parentWebsiteUUID) Methods inherited from interface de.digitalcollections.cudami.server.backend.api.repository.identifiable.IdentifiableRepository
addRelatedEntity, addRelatedEntity, addRelatedFileresource, addRelatedFileresource, findByLanguageAndInitial, findRelatedEntities, findRelatedEntities, findRelatedFileResources, findRelatedFileResources, getByIdentifiables, getByIdentifier, getByIdentifier, getLanguages, setRelatedEntities, setRelatedEntities, setRelatedFileResources, setRelatedFileResourcesMethods inherited from interface de.digitalcollections.cudami.server.backend.api.repository.identifiable.NodeRepository
addChild, addChild, addChildren, addChildren, findChildren, findChildren, findRootNodes, getBreadcrumbNavigation, getBreadcrumbNavigation, getChildren, getChildren, getParent, getParent, getParents, getParents, getRootNodesLanguages, removeChild, removeChild, saveParentRelation, saveParentRelation, updateChildrenOrder, updateChildrenOrderMethods inherited from interface de.digitalcollections.cudami.server.backend.api.repository.PagingSortingFilteringRepository
findMethods inherited from interface de.digitalcollections.cudami.server.backend.api.repository.UniqueObjectRepository
count, create, delete, delete, deleteByUuid, deleteByUuids, getByExample, getByExampleAndFiltering, getByExamples, getByExamplesAndFiltering, getByUuid, getByUuidAndFiltering, getByUuids, getByUuidsAndFiltering, getRandom, save, save, saveOrUpdate, update, update
-
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 savedparentWebsiteUUID- website the (root) webpage belongs to- Returns:
- saved webpage
- Throws:
RepositoryException
-