public interface ClassificationService
| Modifier and Type | Method and Description |
|---|---|
Classification |
createClassification(Classification classification)
Persists a new classification after adding default values.
|
ClassificationQuery |
createClassificationQuery()
This method provides a query builder for quering the database.
|
void |
deleteClassification(String classificationKey,
String domain)
Delete a classification with all child classifications.
|
Classification |
getClassification(String key,
String domain)
Get the Classification for key and domain.
|
Classification |
newClassification(String domain,
String key,
String type)
Creating a new
Classification with unchangeable default values. |
Classification |
updateClassification(Classification classification)
Update a Classification.
|
Classification getClassification(String key, String domain) throws ClassificationNotFoundException
key - the key of the searched-for classificationsdomain - the domain of the searched-for classificationsClassificationNotFoundException - if no classification is found that matches the key either in domain or in the root domain.void deleteClassification(String classificationKey, String domain) throws ClassificationInUseException, ClassificationNotFoundException
classificationKey - the key of the classification you want to delete.domain - the domains for which you want to delete the classification. if "", the function tries to delete the
"master domain" classification and any other classification with this key.ClassificationInUseException - if there are Task existing, which refer to this classification.ClassificationNotFoundException - if for an domain no classification specification is found.Classification createClassification(Classification classification) throws ClassificationAlreadyExistException
classification - the classification to insertClassificationAlreadyExistException - when the classification does already exists at the given domain.Classification updateClassification(Classification classification) throws ClassificationNotFoundException, NotAuthorizedException
classification - the Classification to updateClassificationNotFoundException - when the classification does not exist already.NotAuthorizedException - when a user got no permissions for WB content tasks.ClassificationQuery createClassificationQuery()
ClassificationQueryClassification newClassification(String domain, String key, String type)
Classification with unchangeable default values. It will be only generated and is not
persisted until CREATE-call.domain - the domain of the new classificationkey - the key of the classificationtype - the type of the new classificationCopyright © 2018. All rights reserved.