Class ItemServiceImpl
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.item.Item>
de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.work.ItemServiceImpl
- All Implemented Interfaces:
EntityService<de.digitalcollections.model.identifiable.entity.item.Item>,ItemService,IdentifiableService<de.digitalcollections.model.identifiable.entity.item.Item>,UniqueObjectService<de.digitalcollections.model.identifiable.entity.item.Item>
@Service
public class ItemServiceImpl
extends EntityServiceImpl<de.digitalcollections.model.identifiable.entity.item.Item>
implements ItemService
-
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
ConstructorsConstructorDescriptionItemServiceImpl(ItemRepository repository, IdentifierService identifierService, UrlAliasService urlAliasService, HookProperties hookProperties, LocaleService localeService, CudamiConfig cudamiConfig) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclearPartOfItem(de.digitalcollections.model.identifiable.entity.item.Item item, de.digitalcollections.model.identifiable.entity.item.Item parentItem) Clears and saves the partOfItem attribute of an itemde.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject>findDigitalObjects(de.digitalcollections.model.identifiable.entity.item.Item item, de.digitalcollections.model.list.paging.PageRequest pageRequest) de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.item.Item>findItemsByManifestation(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation, de.digitalcollections.model.list.paging.PageRequest pageRequest) getLanguagesOfDigitalObjects(de.digitalcollections.model.identifiable.entity.item.Item item) getLanguagesOfItemsForManifestation(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation) booleanremoveParentItemChildren(de.digitalcollections.model.identifiable.entity.item.Item parentItem) Methods inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.EntityServiceImpl
addRelatedFileresource, buildNotificationUrl, getByRefId, save, sendNotification, updateMethods 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, save, update
-
Constructor Details
-
ItemServiceImpl
@Autowired public ItemServiceImpl(ItemRepository repository, IdentifierService identifierService, UrlAliasService urlAliasService, HookProperties hookProperties, LocaleService localeService, CudamiConfig cudamiConfig)
-
-
Method Details
-
clearPartOfItem
public boolean clearPartOfItem(de.digitalcollections.model.identifiable.entity.item.Item item, de.digitalcollections.model.identifiable.entity.item.Item parentItem) throws ServiceException Description copied from interface:ItemServiceClears and saves the partOfItem attribute of an item- Specified by:
clearPartOfItemin interfaceItemService- Returns:
- boolean value for success
- Throws:
ServiceException
-
findDigitalObjects
public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> findDigitalObjects(de.digitalcollections.model.identifiable.entity.item.Item item, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Specified by:
findDigitalObjectsin interfaceItemService- Throws:
ServiceException
-
findItemsByManifestation
public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.item.Item> findItemsByManifestation(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation, de.digitalcollections.model.list.paging.PageRequest pageRequest) throws ServiceException - Specified by:
findItemsByManifestationin interfaceItemService- Throws:
ServiceException
-
getLanguagesOfDigitalObjects
public List<Locale> getLanguagesOfDigitalObjects(de.digitalcollections.model.identifiable.entity.item.Item item) throws ServiceException - Specified by:
getLanguagesOfDigitalObjectsin interfaceItemService- Throws:
ServiceException
-
getLanguagesOfItemsForManifestation
public List<Locale> getLanguagesOfItemsForManifestation(de.digitalcollections.model.identifiable.entity.manifestation.Manifestation manifestation) throws ServiceException - Specified by:
getLanguagesOfItemsForManifestationin interfaceItemService- Throws:
ServiceException
-
removeParentItemChildren
public boolean removeParentItemChildren(de.digitalcollections.model.identifiable.entity.item.Item parentItem) throws ServiceException - Specified by:
removeParentItemChildrenin interfaceItemService- Throws:
ServiceException
-