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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaddRelatedFileresource(E entity, de.digitalcollections.model.api.identifiable.resource.FileResource fileResource)voidaddRelatedFileresource(UUID entityUuid, UUID fileResourceUuid)EgetByRefId(long refId)List<E>getRandom(int count)default List<de.digitalcollections.model.api.identifiable.resource.FileResource>getRelatedFileResources(E entity)List<de.digitalcollections.model.api.identifiable.resource.FileResource>getRelatedFileResources(UUID entityUuid)default List<de.digitalcollections.model.api.identifiable.resource.FileResource>saveRelatedFileResources(E entity, List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)Save list of file resources related to an entity.List<de.digitalcollections.model.api.identifiable.resource.FileResource>saveRelatedFileResources(UUID entityUuid, List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)-
Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.IdentifiableService
cleanupLabelFromUnwantedLocales, count, delete, delete, find, find, find, findAllFull, findAllReduced, findByLanguageAndInitial, get, get, get, getByIdentifier, save, update
-
-
-
-
Method Detail
-
addRelatedFileresource
default void addRelatedFileresource(E entity, de.digitalcollections.model.api.identifiable.resource.FileResource fileResource)
-
getByRefId
E getByRefId(long refId)
-
getRelatedFileResources
default List<de.digitalcollections.model.api.identifiable.resource.FileResource> getRelatedFileResources(E entity)
-
getRelatedFileResources
List<de.digitalcollections.model.api.identifiable.resource.FileResource> getRelatedFileResources(UUID entityUuid)
-
saveRelatedFileResources
default List<de.digitalcollections.model.api.identifiable.resource.FileResource> saveRelatedFileResources(E entity, 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 tofileResources- the fileresources that are related to the entity- Returns:
- the list of the related fileresources
-
-