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 Details

    • addRelatedEntity

      default void addRelatedEntity(I identifiable, de.digitalcollections.model.identifiable.entity.Entity entity) throws RepositoryException
      Throws:
      RepositoryException
    • addRelatedEntity

      void addRelatedEntity(UUID identifiableUuid, UUID entityUuid) throws RepositoryException
      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

      default List<I> getByIdentifiables(List<I> identifiables) throws RepositoryException
      Throws:
      RepositoryException
    • getByIdentifier

      default I getByIdentifier(de.digitalcollections.model.identifiable.Identifier identifier) throws RepositoryException
      Throws:
      RepositoryException
    • getByIdentifier

      I getByIdentifier(String namespace, String id) throws RepositoryException
      Throws:
      RepositoryException
    • getLanguages

      List<Locale> getLanguages() throws RepositoryException
      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 to
      entities - 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 to
      fileResources - 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