Interface PredicateService
- All Superinterfaces:
UniqueObjectService<de.digitalcollections.model.relation.Predicate>
- All Known Implementing Classes:
PredicateServiceImpl
public interface PredicateService
extends UniqueObjectService<de.digitalcollections.model.relation.Predicate>
Service for predicates
-
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteByValue(String value) de.digitalcollections.model.relation.PredicategetByValue(String value) Returns a predicate, if availableReturn list of languages of all predicatesvoidsaveOrUpdate(de.digitalcollections.model.relation.Predicate predicate) Update an existing or insert a new predicate.Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.UniqueObjectService
count, create, delete, delete, find, getAll, getByExample, getByExampleAndFiltering, getByExampleAndLocale, getRandom, save, update
-
Method Details
-
deleteByValue
- Throws:
ServiceException
-
getByValue
Returns a predicate, if available- Parameters:
value- unique value of predicate, e.g. "is_part_of"- Returns:
- Predicate or null
- Throws:
ServiceException
-
getLanguages
Return list of languages of all predicates- Returns:
- list of languages
- Throws:
ServiceException
-
saveOrUpdate
void saveOrUpdate(de.digitalcollections.model.relation.Predicate predicate) throws ValidationException, ServiceException Update an existing or insert a new predicate.- Parameters:
predicate- the predicate to be updated or inserted- Throws:
ServiceExceptionValidationException
-