Class ManifestationServiceImpl
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.manifestation.Manifestation>
de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.work.ManifestationServiceImpl
- All Implemented Interfaces:
EntityService<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation>,ManifestationService,IdentifiableService<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation>,UniqueObjectService<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation>
@Service
public class ManifestationServiceImpl
extends EntityServiceImpl<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation>
implements ManifestationService
-
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
ConstructorsConstructorDescriptionManifestationServiceImpl(ManifestationRepository repository, IdentifierService identifierService, UrlAliasService urlAliasService, HookProperties hookProperties, LocaleService localeService, EntityToEntityRelationService entityRealationService, CudamiConfig cudamiConfig) -
Method Summary
Modifier and TypeMethodDescriptionde.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation>findManifestationsByWork(de.digitalcollections.model.identifiable.entity.work.Work work, de.digitalcollections.model.list.paging.PageRequest pageRequest) de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation>findSubParts(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation, de.digitalcollections.model.list.paging.PageRequest pageRequest) getLanguagesOfManifestationsForWork(de.digitalcollections.model.identifiable.entity.work.Work work) booleanremoveParent(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation, de.digitalcollections.model.identifiable.entity.manifestation.Manifestation parentManifestation) voidsave(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation) Persist anUniqueObject(with validation)voidupdate(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation) 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
-
ManifestationServiceImpl
public ManifestationServiceImpl(ManifestationRepository repository, IdentifierService identifierService, UrlAliasService urlAliasService, HookProperties hookProperties, LocaleService localeService, EntityToEntityRelationService entityRealationService, CudamiConfig cudamiConfig)
-
-
Method Details
-
findManifestationsByWork
public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation> findManifestationsByWork(de.digitalcollections.model.identifiable.entity.work.Work work, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Specified by:
findManifestationsByWorkin interfaceManifestationService- Throws:
ServiceException
-
findSubParts
public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation> findSubParts(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Specified by:
findSubPartsin interfaceManifestationService- Throws:
ServiceException
-
getLanguagesOfManifestationsForWork
public List<Locale> getLanguagesOfManifestationsForWork(de.digitalcollections.model.identifiable.entity.work.Work work) throws ServiceException - Specified by:
getLanguagesOfManifestationsForWorkin interfaceManifestationService- Throws:
ServiceException
-
removeParent
public boolean removeParent(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation, de.digitalcollections.model.identifiable.entity.manifestation.Manifestation parentManifestation) throws ServiceException - Specified by:
removeParentin interfaceManifestationService- Throws:
ServiceException
-
save
public void save(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation) throws ServiceException, ValidationException Description copied from interface:UniqueObjectServicePersist anUniqueObject(with validation)- Specified by:
savein interfaceUniqueObjectService<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation>- Overrides:
savein classEntityServiceImpl<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation>- Parameters:
manifestation- 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.manifestation.Manifestation manifestation) throws ServiceException, ValidationException Description copied from interface:UniqueObjectServiceUpdates an persistedUniqueObject- Specified by:
updatein interfaceUniqueObjectService<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation>- Overrides:
updatein classEntityServiceImpl<de.digitalcollections.model.identifiable.entity.manifestation.Manifestation>- Parameters:
manifestation- theUniqueObject(with set UUID)- Throws:
ServiceException- in case of an errorValidationException- in case of a validation error
-