Interface UniqueObjectService<U extends de.digitalcollections.model.UniqueObject>
- All Known Subinterfaces:
AgentService<A>,ApplicationFileResourceService,ArticleService,AudioFileResourceService,CanyonService,CaveService,CollectionService,ContinentService,CorporateBodyService,CountryService,CreekService,DigitalObjectService,EntityService<E>,EventService,FamilyNameService,FileResourceMetadataService<F>,GeoLocationService<G>,GivenNameService,HeadwordEntryService,HeadwordService,HumanSettlementService,IdentifiableService<I>,IdentifierService,IdentifierTypeService,ImageFileResourceService,ItemService,LakeService,LicenseService,LinkedDataFileResourceService,ManifestationService,MountainService,NodeService<N>,OceanService,PersonService,PredicateService,ProjectService,RenderingTemplateService,RiverService,SeaService,StillWatersService,SubjectService,TagService,TextFileResourceService,TopicService,UrlAliasService,UserService,ValleyService,VideoFileResourceService,WebpageService,WebsiteService,WorkService
- All Known Implementing Classes:
AgentServiceImpl,ApplicationFileResourceServiceImpl,ArticleServiceImpl,AudioFileResourceServiceImpl,CanyonServiceImpl,CaveServiceImpl,CollectionServiceImpl,ContinentServiceImpl,CorporateBodyServiceImpl,CountryServiceImpl,CreekServiceImpl,DigitalObjectServiceImpl,EntityServiceImpl,EventServiceImpl,FamilyNameServiceImpl,FileResourceMetadataServiceImpl,GeoLocationServiceImpl,GivenNameServiceImpl,HeadwordEntryServiceImpl,HeadwordServiceImpl,HumanSettlementServiceImpl,IdentifiableServiceImpl,IdentifierServiceImpl,IdentifierTypeServiceImpl,ImageFileResourceServiceImpl,ItemServiceImpl,LakeServiceImpl,LicenseServiceImpl,LinkedDataFileResourceServiceImpl,ManifestationServiceImpl,MountainServiceImpl,OceanServiceImpl,PersonServiceImpl,PredicateServiceImpl,ProjectServiceImpl,RenderingTemplateServiceImpl,RiverServiceImpl,SeaServiceImpl,StillWatersServiceImpl,SubjectServiceImpl,TagServiceImpl,TextFileResourceServiceImpl,TopicServiceImpl,UniqueObjectServiceImpl,UrlAliasServiceImpl,UserServiceImpl,ValleyServiceImpl,VideoFileResourceServiceImpl,WebpageServiceImpl,WebsiteServiceImpl,WorkServiceImpl
public interface UniqueObjectService<U extends de.digitalcollections.model.UniqueObject>
-
Method Summary
Modifier and TypeMethodDescriptionlongcount()create()intbooleande.digitalcollections.model.list.paging.PageResponse<U>find(de.digitalcollections.model.list.paging.PageRequest pageRequest) getAll()default UgetByExample(U uniqueObject) Retrieve oneUniqueObjectby given properties in example instance.default UgetByExampleAndLocale(U uniqueObject, Locale locale) getByExamples(List<U> uniqueObjects) RetrieveUniqueObjects by given properties in example instances.getByExamplesAndFiltering(List<U> uniqueObjects, de.digitalcollections.model.list.filtering.Filtering filtering) RetrieveUniqueObjects by given properties in example instances and given filtering.getRandom(int count) voidPersist anUniqueObject(with validation)voidUpdates an persistedUniqueObject
-
Method Details
-
count
- Returns:
- the count of all unique objects
- Throws:
ServiceException
-
create
- Throws:
ServiceException
-
delete
- Throws:
ConflictExceptionServiceException
-
delete
- Throws:
ConflictExceptionServiceException
-
find
de.digitalcollections.model.list.paging.PageResponse<U> find(de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Throws:
ServiceException
-
getAll
- Throws:
ServiceException
-
getByExample
Retrieve oneUniqueObjectby given properties in example instance.- Parameters:
uniqueObject- example instance containing unique property- Returns:
- the found
UniqueObjector null - Throws:
ServiceException- in case of problems
-
getByExamples
RetrieveUniqueObjects by given properties in example instances.- Parameters:
uniqueObjects- example instances containing unique property- Returns:
- List of found
UniqueObjects - Throws:
ServiceException- in case of problems
-
getByExamplesAndFiltering
List<U> getByExamplesAndFiltering(List<U> uniqueObjects, de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException RetrieveUniqueObjects by given properties in example instances and given filtering.- Parameters:
uniqueObjects- example instances containing unique propertyfiltering- filtering params- Returns:
- List of found
UniqueObjects - Throws:
ServiceException- in case of problems
-
getRandom
- Throws:
ServiceException
-
save
Persist anUniqueObject(with validation)- Parameters:
uniqueObject- theUniqueObject(not yet stored)- Throws:
ServiceException- in case of an errorValidationException- in case of a validation error
-
update
Updates an persistedUniqueObject- Parameters:
uniqueObject- theUniqueObject(with set UUID)- Throws:
ServiceException- in case of an errorValidationException- in case of a validation error
-
getByExampleAndLocale
- Throws:
ServiceException
-