Class SubjectServiceImpl
java.lang.Object
de.digitalcollections.cudami.server.business.impl.service.UniqueObjectServiceImpl<de.digitalcollections.model.identifiable.semantic.Subject,SubjectRepository>
de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.semantic.SubjectServiceImpl
- All Implemented Interfaces:
SubjectService,UniqueObjectService<de.digitalcollections.model.identifiable.semantic.Subject>
@Service
@Transactional(rollbackFor=java.lang.Exception.class,
isolation=SERIALIZABLE)
public class SubjectServiceImpl
extends UniqueObjectServiceImpl<de.digitalcollections.model.identifiable.semantic.Subject,SubjectRepository>
implements SubjectService
-
Field Summary
Fields inherited from class de.digitalcollections.cudami.server.business.impl.service.UniqueObjectServiceImpl
repository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandelete(de.digitalcollections.model.identifiable.semantic.Subject uniqueObject) intde.digitalcollections.model.identifiable.semantic.SubjectgetByTypeAndIdentifier(String type, de.digitalcollections.model.identifiable.Identifier identifier) Return list of languages of all subjectsvoidsave(de.digitalcollections.model.identifiable.semantic.Subject uniqueObject) Persist anUniqueObject(with validation)voidupdate(de.digitalcollections.model.identifiable.semantic.Subject uniqueObject) Updates an persistedUniqueObjectMethods inherited from class de.digitalcollections.cudami.server.business.impl.service.UniqueObjectServiceImpl
count, create, find, getAll, getByExamples, getByExamplesAndFiltering, 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.UniqueObjectService
count, create, find, getAll, getByExample, getByExampleAndLocale, getByExamples, getByExamplesAndFiltering, getRandom
-
Constructor Details
-
SubjectServiceImpl
-
-
Method Details
-
getByTypeAndIdentifier
public de.digitalcollections.model.identifiable.semantic.Subject getByTypeAndIdentifier(String type, de.digitalcollections.model.identifiable.Identifier identifier) throws ServiceException - Specified by:
getByTypeAndIdentifierin interfaceSubjectService- Throws:
ServiceException
-
getLanguages
Description copied from interface:SubjectServiceReturn list of languages of all subjects- Specified by:
getLanguagesin interfaceSubjectService- Returns:
- list of languages
- Throws:
ServiceException
-
save
public void save(de.digitalcollections.model.identifiable.semantic.Subject uniqueObject) throws ValidationException, ServiceException Description copied from interface:UniqueObjectServicePersist anUniqueObject(with validation)- Specified by:
savein interfaceUniqueObjectService<de.digitalcollections.model.identifiable.semantic.Subject>- Overrides:
savein classUniqueObjectServiceImpl<de.digitalcollections.model.identifiable.semantic.Subject,SubjectRepository> - Parameters:
uniqueObject- theUniqueObject(not yet stored)- Throws:
ValidationException- in case of a validation errorServiceException- in case of an error
-
update
public void update(de.digitalcollections.model.identifiable.semantic.Subject uniqueObject) throws ValidationException, ServiceException Description copied from interface:UniqueObjectServiceUpdates an persistedUniqueObject- Specified by:
updatein interfaceUniqueObjectService<de.digitalcollections.model.identifiable.semantic.Subject>- Overrides:
updatein classUniqueObjectServiceImpl<de.digitalcollections.model.identifiable.semantic.Subject,SubjectRepository> - Parameters:
uniqueObject- theUniqueObject(with set UUID)- Throws:
ValidationException- in case of a validation errorServiceException- in case of an error
-
delete
public int delete(Set<de.digitalcollections.model.identifiable.semantic.Subject> uniqueObjects) throws ConflictException, ServiceException - Specified by:
deletein interfaceUniqueObjectService<de.digitalcollections.model.identifiable.semantic.Subject>- Overrides:
deletein classUniqueObjectServiceImpl<de.digitalcollections.model.identifiable.semantic.Subject,SubjectRepository> - Throws:
ConflictExceptionServiceException
-
delete
public boolean delete(de.digitalcollections.model.identifiable.semantic.Subject uniqueObject) throws ConflictException, ServiceException - Specified by:
deletein interfaceUniqueObjectService<de.digitalcollections.model.identifiable.semantic.Subject>- Overrides:
deletein classUniqueObjectServiceImpl<de.digitalcollections.model.identifiable.semantic.Subject,SubjectRepository> - Throws:
ConflictExceptionServiceException
-