Interface HeadwordService
- All Superinterfaces:
UniqueObjectService<de.digitalcollections.model.semantic.Headword>
- All Known Implementing Classes:
HeadwordServiceImpl
public interface HeadwordService
extends UniqueObjectService<de.digitalcollections.model.semantic.Headword>
Service for Headword.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelatedEntity(de.digitalcollections.model.semantic.Headword headword, de.digitalcollections.model.identifiable.entity.Entity entity) voidaddRelatedFileresource(de.digitalcollections.model.semantic.Headword headword, de.digitalcollections.model.identifiable.resource.FileResource fileResource) de.digitalcollections.model.list.buckets.BucketObjectsResponse<de.digitalcollections.model.semantic.Headword>find(de.digitalcollections.model.list.buckets.BucketObjectsRequest<de.digitalcollections.model.semantic.Headword> bucketObjectsRequest) de.digitalcollections.model.list.buckets.BucketsResponse<de.digitalcollections.model.semantic.Headword>find(de.digitalcollections.model.list.buckets.BucketsRequest<de.digitalcollections.model.semantic.Headword> bucketsRequest) de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.semantic.Headword>findByLanguageAndInitial(de.digitalcollections.model.list.paging.PageRequest pageRequest, String language, String initial) de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity>findRelatedEntities(de.digitalcollections.model.semantic.Headword headword, de.digitalcollections.model.list.paging.PageRequest pageRequest) de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource>findRelatedFileResources(de.digitalcollections.model.semantic.Headword headword, de.digitalcollections.model.list.paging.PageRequest pageRequest) List<de.digitalcollections.model.semantic.Headword>getByLabelAndLocale(String label, Locale locale) List<de.digitalcollections.model.semantic.Headword>getRandom(int count) List<de.digitalcollections.model.identifiable.entity.Entity>getRelatedEntities(de.digitalcollections.model.semantic.Headword headword) List<de.digitalcollections.model.identifiable.resource.FileResource>getRelatedFileResources(de.digitalcollections.model.semantic.Headword headword) List<de.digitalcollections.model.identifiable.entity.Entity>setRelatedEntities(de.digitalcollections.model.semantic.Headword headword, List<de.digitalcollections.model.identifiable.entity.Entity> entities) Save list of entities related to an Headword.List<de.digitalcollections.model.identifiable.resource.FileResource>setRelatedFileResources(de.digitalcollections.model.semantic.Headword headword, List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources) Save list of file resources related to an Headword.Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.UniqueObjectService
count, create, delete, delete, find, getAll, getByExample, getByExampleAndLocale, getByExamples, getByExamplesAndFiltering, save, update
-
Method Details
-
addRelatedEntity
void addRelatedEntity(de.digitalcollections.model.semantic.Headword headword, de.digitalcollections.model.identifiable.entity.Entity entity) throws ServiceException - Throws:
ServiceException
-
addRelatedFileresource
void addRelatedFileresource(de.digitalcollections.model.semantic.Headword headword, de.digitalcollections.model.identifiable.resource.FileResource fileResource) throws ServiceException - Throws:
ServiceException
-
find
de.digitalcollections.model.list.buckets.BucketObjectsResponse<de.digitalcollections.model.semantic.Headword> find(de.digitalcollections.model.list.buckets.BucketObjectsRequest<de.digitalcollections.model.semantic.Headword> bucketObjectsRequest) throws ServiceException - Throws:
ServiceException
-
find
de.digitalcollections.model.list.buckets.BucketsResponse<de.digitalcollections.model.semantic.Headword> find(de.digitalcollections.model.list.buckets.BucketsRequest<de.digitalcollections.model.semantic.Headword> bucketsRequest) throws ServiceException - Throws:
ServiceException
-
findByLanguageAndInitial
de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.semantic.Headword> findByLanguageAndInitial(de.digitalcollections.model.list.paging.PageRequest pageRequest, String language, String initial) throws ServiceException - Throws:
ServiceException
-
findRelatedEntities
de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity> findRelatedEntities(de.digitalcollections.model.semantic.Headword headword, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Throws:
ServiceException
-
findRelatedFileResources
de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.resource.FileResource> findRelatedFileResources(de.digitalcollections.model.semantic.Headword headword, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Throws:
ServiceException
-
getByLabelAndLocale
List<de.digitalcollections.model.semantic.Headword> getByLabelAndLocale(String label, Locale locale) throws ServiceException - Throws:
ServiceException
-
getLanguages
- Throws:
ServiceException
-
getRandom
- Specified by:
getRandomin interfaceUniqueObjectService<de.digitalcollections.model.semantic.Headword>- Throws:
ServiceException
-
getRelatedEntities
List<de.digitalcollections.model.identifiable.entity.Entity> getRelatedEntities(de.digitalcollections.model.semantic.Headword headword) throws ServiceException - Throws:
ServiceException
-
getRelatedFileResources
List<de.digitalcollections.model.identifiable.resource.FileResource> getRelatedFileResources(de.digitalcollections.model.semantic.Headword headword) throws ServiceException - Throws:
ServiceException
-
setRelatedEntities
List<de.digitalcollections.model.identifiable.entity.Entity> setRelatedEntities(de.digitalcollections.model.semantic.Headword headword, List<de.digitalcollections.model.identifiable.entity.Entity> entities) throws ServiceException Save list of entities related to an Headword. Prerequisite: entities have been saved before (exist already)- Parameters:
headword- headword the entities are related toentities- the entities that are related to the headword- Returns:
- the list of the related entities
- Throws:
ServiceException
-
setRelatedFileResources
List<de.digitalcollections.model.identifiable.resource.FileResource> setRelatedFileResources(de.digitalcollections.model.semantic.Headword headword, List<de.digitalcollections.model.identifiable.resource.FileResource> fileResources) throws ServiceException Save list of file resources related to an Headword. Prerequisite: file resources have been saved before (exist already)- Parameters:
headword- headword the file resources are related tofileResources- the file resources that are related to the entity part- Returns:
- the list of the related file resources
- Throws:
ServiceException
-