Interface EntityService<E extends de.digitalcollections.model.api.identifiable.entity.Entity>

Type Parameters:
E - entity instance
All Superinterfaces:
IdentifiableService<E>
All Known Subinterfaces:
AgentService, ArticleService, CollectionService, CorporateBodyService, DigitalObjectService, GeoLocationService, HumanSettlementService, ItemService, PersonService, ProjectService, TopicService, WebsiteService, WorkService
All Known Implementing Classes:
AgentServiceImpl, ArticleServiceImpl, CollectionServiceImpl, CorporateBodyServiceImpl, DigitalObjectServiceImpl, EntityServiceImpl, GeoLocationServiceImpl, HumanSettlementServiceImpl, ItemServiceImpl, PersonServiceImpl, ProjectServiceImpl, TopicServiceImpl, WebsiteServiceImpl, WorkServiceImpl

public interface EntityService<E extends de.digitalcollections.model.api.identifiable.entity.Entity>
extends IdentifiableService<E>
  • Method Details

    • addRelatedFileresource

      default void addRelatedFileresource​(E entity, de.digitalcollections.model.api.identifiable.resource.FileResource fileResource)
    • addRelatedFileresource

      void addRelatedFileresource​(java.util.UUID entityUuid, java.util.UUID fileResourceUuid)
    • getByRefId

      E getByRefId​(long refId)
    • getRandom

      java.util.List<E> getRandom​(int count)
    • getRelatedFileResources

      default java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> getRelatedFileResources​(E entity)
    • getRelatedFileResources

      java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> getRelatedFileResources​(java.util.UUID entityUuid)
    • saveRelatedFileResources

      default java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> saveRelatedFileResources​(E entity, java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)
      Save list of file resources related to an entity. Prerequisite: file resources have been saved before (exist already)
      Parameters:
      entity - entity the fileresources are related to
      fileResources - the fileresources that are related to the entity
      Returns:
      the list of the related fileresources
    • saveRelatedFileResources

      java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> saveRelatedFileResources​(java.util.UUID entityUuid, java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)