Class WorkServiceImpl
java.lang.Object
de.digitalcollections.cudami.server.business.impl.service.UniqueObjectServiceImpl<I,R>
de.digitalcollections.cudami.server.business.impl.service.identifiable.IdentifiableServiceImpl<E,EntityRepository<E>>
de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.EntityServiceImpl<de.digitalcollections.model.identifiable.entity.work.Work>
de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.work.WorkServiceImpl
- All Implemented Interfaces:
EntityService<de.digitalcollections.model.identifiable.entity.work.Work>,WorkService,IdentifiableService<de.digitalcollections.model.identifiable.entity.work.Work>,UniqueObjectService<de.digitalcollections.model.identifiable.entity.work.Work>
@Service
public class WorkServiceImpl
extends EntityServiceImpl<de.digitalcollections.model.identifiable.entity.work.Work>
implements WorkService
-
Field Summary
Fields inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.EntityServiceImpl
hookProperties, httpClientFields inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.IdentifiableServiceImpl
identifierServiceFields inherited from class de.digitalcollections.cudami.server.business.impl.service.UniqueObjectServiceImpl
repository -
Constructor Summary
ConstructorsConstructorDescriptionWorkServiceImpl(WorkRepository repository, IdentifierService identifierService, UrlAliasService urlAliasService, HookProperties hookProperties, LocaleService localeService, EntityToEntityRelationService entityRelationService, CudamiConfig cudamiConfig) -
Method Summary
Modifier and TypeMethodDescriptionde.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.work.Work>findEmbeddedWorks(de.digitalcollections.model.identifiable.entity.work.Work work, de.digitalcollections.model.list.paging.PageRequest pageRequest) de.digitalcollections.model.identifiable.entity.work.WorkgetByItem(de.digitalcollections.model.identifiable.entity.item.Item item) Set<de.digitalcollections.model.identifiable.entity.work.Work>getByPerson(de.digitalcollections.model.identifiable.entity.agent.Person person) voidsave(de.digitalcollections.model.identifiable.entity.work.Work work) Persist anUniqueObject(with validation)voidupdate(de.digitalcollections.model.identifiable.entity.work.Work work) Updates an persistedUniqueObjectMethods inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.EntityServiceImpl
addRelatedFileresource, buildNotificationUrl, getByRefId, sendNotificationMethods inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.IdentifiableServiceImpl
addRelatedEntity, find, findByLanguageAndInitial, findRelatedEntities, findRelatedFileResources, getByExampleAndLocale, getByIdentifier, getLanguages, reduceMultilanguageFieldsToGivenLocale, setRelatedEntities, setRelatedFileResources, validateMethods inherited from class de.digitalcollections.cudami.server.business.impl.service.UniqueObjectServiceImpl
count, create, delete, delete, getAll, getByExample, getByExampleAndFiltering, getRandom, setDefaultSortingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.entity.EntityService
getByRefIdMethods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.IdentifiableService
addRelatedEntity, addRelatedFileresource, cleanupLabelFromUnwantedLocales, findByLanguageAndInitial, findRelatedEntities, findRelatedFileResources, getByExampleAndLocale, getByIdentifier, getLanguages, setRelatedEntities, setRelatedFileResources, validateMethods inherited from interface de.digitalcollections.cudami.server.business.api.service.UniqueObjectService
count, create, delete, delete, find, getAll, getByExample, getByExampleAndFiltering, getRandom
-
Constructor Details
-
WorkServiceImpl
public WorkServiceImpl(@Qualifier("workRepository") WorkRepository repository, IdentifierService identifierService, UrlAliasService urlAliasService, HookProperties hookProperties, LocaleService localeService, EntityToEntityRelationService entityRelationService, CudamiConfig cudamiConfig)
-
-
Method Details
-
findEmbeddedWorks
public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.work.Work> findEmbeddedWorks(de.digitalcollections.model.identifiable.entity.work.Work work, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Specified by:
findEmbeddedWorksin interfaceWorkService- Throws:
ServiceException
-
getByItem
public de.digitalcollections.model.identifiable.entity.work.Work getByItem(de.digitalcollections.model.identifiable.entity.item.Item item) throws ServiceException - Specified by:
getByItemin interfaceWorkService- Throws:
ServiceException
-
getByPerson
public Set<de.digitalcollections.model.identifiable.entity.work.Work> getByPerson(de.digitalcollections.model.identifiable.entity.agent.Person person) throws ServiceException - Specified by:
getByPersonin interfaceWorkService- Throws:
ServiceException
-
save
public void save(de.digitalcollections.model.identifiable.entity.work.Work work) throws ServiceException, ValidationException Description copied from interface:UniqueObjectServicePersist anUniqueObject(with validation)- Specified by:
savein interfaceUniqueObjectService<de.digitalcollections.model.identifiable.entity.work.Work>- Overrides:
savein classEntityServiceImpl<de.digitalcollections.model.identifiable.entity.work.Work>- Parameters:
work- theUniqueObject(not yet stored)- Throws:
ServiceException- in case of an errorValidationException- in case of a validation error
-
update
public void update(de.digitalcollections.model.identifiable.entity.work.Work work) throws ServiceException, ValidationException Description copied from interface:UniqueObjectServiceUpdates an persistedUniqueObject- Specified by:
updatein interfaceUniqueObjectService<de.digitalcollections.model.identifiable.entity.work.Work>- Overrides:
updatein classEntityServiceImpl<de.digitalcollections.model.identifiable.entity.work.Work>- Parameters:
work- theUniqueObject(with set UUID)- Throws:
ServiceException- in case of an errorValidationException- in case of a validation error
-