public interface CategoryDefinitionHandler
AdminUser| Modifier and Type | Method and Description |
|---|---|
void |
createCategory(CategoryDefinition definition)
Create a new category definition.
|
void |
download(java.io.Writer xmlDefinitionsWriter)
Dump the user definitions in XML format.
|
void |
removeCategory(CategoryDefinition definition)
Remove an category definition by its identifier.
|
void |
updateCategory(CategoryDefinition definition)
Update a category definition.
|
void |
upload(java.util.Collection toBeCreated,
java.util.Collection toBeUpdated,
java.util.Collection toBeRemoved)
Execute a bulk update within one single transaction.
|
void |
upload(java.io.Reader xmlDefinitionsReader)
Execute a bulk update within one single transaction.
|
void createCategory(CategoryDefinition definition) throws LaserDefinitionException
definition - the category definitionLaserDefinitionNotValidException - if the definition failed validationLaserDefinitionNotAllowedException - if the user is not allowedLaserDefinitionException - if the request can not be servedvoid download(java.io.Writer xmlDefinitionsWriter)
throws LaserDefinitionException
xmlDefinitionsWriter - the XML definitions writerLaserDefinitionXMLException - if the XML marshalling failedLaserDefinitionException - if the request can not be servedvoid removeCategory(CategoryDefinition definition) throws LaserDefinitionException
definition - the category definitionLaserDefinitionNotFoundException - if the category definition was not foundLaserDefinitionNotAllowedException - if the user is not allowedLaserDefinitionException - if the request can not be servedvoid updateCategory(CategoryDefinition definition) throws LaserDefinitionException
definition - the new category definitionLaserDefinitionNotFoundException - if the category definition was not foundLaserDefinitionNotValidException - if the definition failed validationLaserDefinitionNotAllowedException - if the user is not allowedLaserDefinitionException - if the request can not be servedvoid upload(java.util.Collection toBeCreated,
java.util.Collection toBeUpdated,
java.util.Collection toBeRemoved)
throws LaserDefinitionException
toBeCreated - the definitions to createtoBeUpdated - the definitions to updatetoBeRemoved - the definitions to removeLaserDefinitionNotValidException - if the definition failed validationLaserDefinitionNotFoundException - if the definition was not foundLaserDefinitionNotAllowedException - if the user is not allowedLaserDefinitionException - if the request can not be servedvoid upload(java.io.Reader xmlDefinitionsReader)
throws LaserDefinitionException
xmlDefinitionsReader - the XML definitions readerLaserDefinitionXMLException - if the XML unmarshalling failedLaserDefinitionNotValidException - if the definition failed validationLaserDefinitionNotFoundException - if the definition was not foundLaserDefinitionNotAllowedException - if the user is not allowedLaserDefinitionException - if the request can not be served