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.
|
List<ClassificationSummary> |
getAllClassifications(String key,
String domain)
Get all ClassificationSummaries with the given key.
|
Classification |
getClassification(String key,
String domain)
Get the Classification for key and domain.
|
List<ClassificationSummary> |
getClassificationTree()
Get all available Classification summaries as a tree.
|
Classification |
newClassification(String domain,
String key,
String type)
Creating a new
Classification with unchangeable default values. |
Classification |
updateClassification(Classification classification)
Update a Classification.
|
List<ClassificationSummary> getClassificationTree()
List<ClassificationSummary> getAllClassifications(String key, String domain)
key - the key of the searched-for classificationsdomain - the domain of the searched-for classificationsClassification 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.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
classification - the Classification to updateClassificationNotFoundException - when the classification does not exist already.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.