Interface IdentifiableRepository<I extends de.digitalcollections.model.identifiable.Identifiable>
- All Superinterfaces:
PagingSortingFilteringRepository<I>,UniqueObjectRepository<I>
- All Known Subinterfaces:
AgentRepository<A>,ApplicationFileResourceRepository,ArticleRepository,AudioFileResourceRepository,CanyonRepository,CaveRepository,CollectionRepository,ContinentRepository,CorporateBodyRepository,CountryRepository,CreekRepository,DigitalObjectRepository,EntityRepository<E>,EventRepository,FamilyNameRepository,FileResourceMetadataRepository<F>,GeoLocationRepository<G>,GivenNameRepository,HeadwordEntryRepository,HumanSettlementRepository,ImageFileResourceRepository,ItemRepository,LakeRepository,LinkedDataFileResourceRepository,ManifestationRepository,MountainRepository,NodeRepository<N>,OceanRepository,PersonRepository,ProjectRepository,RiverRepository,SeaRepository,StillWatersRepository,TextFileResourceRepository,TopicRepository,ValleyRepository,VideoFileResourceRepository,WebpageRepository,WebsiteRepository,WorkRepository
public interface IdentifiableRepository<I extends de.digitalcollections.model.identifiable.Identifiable>
extends UniqueObjectRepository<I>
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddRelatedEntity(I identifiable, de.digitalcollections.model.identifiable.entity.Entity entity) voidaddRelatedEntity(UUID identifiableUuid, UUID entityUuid) default voidaddRelatedFileresource(I identifiable, de.digitalcollections.model.identifiable.resource.FileResource fileResource) voidaddRelatedFileresource(UUID identifiableUuid, UUID fileResourceUuid) de.digitalcollections.model.list.paging.PageResponse<I>findByLanguageAndInitial(de.digitalcollections.model.list.paging.PageRequest pageRequest, String language, String initial) default de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity>findRelatedEntities(I identifiable, de.digitalcollections.model.list.paging.PageRequest pageRequest) de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity>findRelatedEntities(UUID identifiableUuid, de.digitalcollections.model.list.paging.PageRequest pageRequest) default de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource>findRelatedFileResources(I identifiable, de.digitalcollections.model.list.paging.PageRequest pageRequest) de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource>findRelatedFileResources(UUID identifiableUuid, de.digitalcollections.model.list.paging.PageRequest pageRequest) getByIdentifiables(List<I> identifiables) default IgetByIdentifier(de.digitalcollections.model.identifiable.Identifier identifier) getByIdentifier(String namespace, String id) default List<de.digitalcollections.model.identifiable.entity.Entity>setRelatedEntities(I identifiable, List<de.digitalcollections.model.identifiable.entity.Entity> entities) Save list of entities related to an identifiable.Prerequisite: entities have been saved before (exist already)List<de.digitalcollections.model.identifiable.entity.Entity>setRelatedEntities(UUID identifiableUuid, List<de.digitalcollections.model.identifiable.entity.Entity> entities) default List<de.digitalcollections.model.identifiable.resource.FileResource>setRelatedFileResources(I identifiable, List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources) Save list of file resources related to an entity.List<de.digitalcollections.model.identifiable.resource.FileResource>setRelatedFileResources(UUID identifiableUuid, List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources) Methods 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
-
addRelatedEntity
default void addRelatedEntity(I identifiable, de.digitalcollections.model.identifiable.entity.Entity entity) throws RepositoryException - Throws:
RepositoryException
-
addRelatedEntity
- Throws:
RepositoryException
-
addRelatedFileresource
default void addRelatedFileresource(I identifiable, de.digitalcollections.model.identifiable.resource.FileResource fileResource) throws RepositoryException - Throws:
RepositoryException
-
addRelatedFileresource
void addRelatedFileresource(UUID identifiableUuid, UUID fileResourceUuid) throws RepositoryException - Throws:
RepositoryException
-
findByLanguageAndInitial
de.digitalcollections.model.list.paging.PageResponse<I> findByLanguageAndInitial(de.digitalcollections.model.list.paging.PageRequest pageRequest, String language, String initial) throws RepositoryException - Throws:
RepositoryException
-
findRelatedEntities
default de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity> findRelatedEntities(I identifiable, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws RepositoryException - Throws:
RepositoryException
-
findRelatedEntities
de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity> findRelatedEntities(UUID identifiableUuid, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws RepositoryException - Throws:
RepositoryException
-
findRelatedFileResources
default de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> findRelatedFileResources(I identifiable, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws RepositoryException - Throws:
RepositoryException
-
findRelatedFileResources
de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> findRelatedFileResources(UUID identifiableUuid, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws RepositoryException - Throws:
RepositoryException
-
getByIdentifiables
- Throws:
RepositoryException
-
getByIdentifier
default I getByIdentifier(de.digitalcollections.model.identifiable.Identifier identifier) throws RepositoryException - Throws:
RepositoryException
-
getByIdentifier
- Throws:
RepositoryException
-
getLanguages
- Throws:
RepositoryException
-
setRelatedEntities
default List<de.digitalcollections.model.identifiable.entity.Entity> setRelatedEntities(I identifiable, List<de.digitalcollections.model.identifiable.entity.Entity> entities) throws RepositoryException Save list of entities related to an identifiable.Prerequisite: entities have been saved before (exist already)- Parameters:
identifiable- identifiable the entities are related toentities- the entities that are related to the identifiable- Returns:
- the list of the related entities
- Throws:
RepositoryException
-
setRelatedEntities
List<de.digitalcollections.model.identifiable.entity.Entity> setRelatedEntities(UUID identifiableUuid, List<de.digitalcollections.model.identifiable.entity.Entity> entities) throws RepositoryException - Throws:
RepositoryException
-
setRelatedFileResources
default List<de.digitalcollections.model.identifiable.resource.FileResource> setRelatedFileResources(I identifiable, List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources) throws RepositoryException Save list of file resources related to an entity. Prerequisite: file resources have been saved before (exist already)- Parameters:
identifiable- identifiable the file resources are related tofileResources- the file resources that are related to the identifiable- Returns:
- the list of the related file resources
- Throws:
RepositoryException
-
setRelatedFileResources
List<de.digitalcollections.model.identifiable.resource.FileResource> setRelatedFileResources(UUID identifiableUuid, List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources) throws RepositoryException - Throws:
RepositoryException
-