
Public Member Functions | |
| void | createAlarm (AlarmDefinition definition) throws LaserDefinitionException |
| void | download (Writer xmlDefinitionsWriter) throws LaserDefinitionException |
| void | removeAlarm (AlarmDefinition definition) throws LaserDefinitionException |
| void | updateAlarm (AlarmDefinition definition) throws LaserDefinitionException |
| void | upload (Collection toBeCreated, Collection toBeUpdated, Collection toBeRemoved) throws LaserDefinitionException |
| void | upload (Reader xmlDefinitionsReader) throws LaserDefinitionException |
Provides the service to handle alarm definitions. Alarm definitions are partitioned with respect to alarm sources. Alarm definition handling permissions inherit from the respective source permissions.
| void cern::laser::definition::AlarmDefinitionHandler::createAlarm | ( | AlarmDefinition | definition | ) | throws LaserDefinitionException |
Create a new alarm definition.
| definition | the alarm definition |
| LaserDefinitionNotValidException | if the definition failed validation | |
| LaserDefinitionNotAllowedException | if the user is not allowed | |
| LaserDefinitionException | if the request can not be served |
Implemented in cern::laser::definition::impl::AlarmDefinitionHandlerImpl.
| void cern::laser::definition::AlarmDefinitionHandler::download | ( | Writer | xmlDefinitionsWriter | ) | throws LaserDefinitionException |
Dump the user definitions in XML format.
| xmlDefinitionsWriter | the XML definitions writer |
| LaserDefinitionXMLException | if the XML marshalling failed | |
| LaserDefinitionException | if the request can not be served |
Implemented in cern::laser::definition::impl::AlarmDefinitionHandlerImpl.
| void cern::laser::definition::AlarmDefinitionHandler::removeAlarm | ( | AlarmDefinition | definition | ) | throws LaserDefinitionException |
Remove an alarm definition by its identifier.
| definition | the alarm definition |
| LaserDefinitionNotFoundException | if the alarm definition was not found | |
| LaserDefinitionNotAllowedException | if the user is not allowed | |
| LaserDefinitionException | if the request can not be served |
Implemented in cern::laser::definition::impl::AlarmDefinitionHandlerImpl.
| void cern::laser::definition::AlarmDefinitionHandler::updateAlarm | ( | AlarmDefinition | definition | ) | throws LaserDefinitionException |
Update an alarm definition.
| definition | the new alarm definition |
| LaserDefinitionNotFoundException | if the alarm definition was not found | |
| LaserDefinitionNotValidException | if the definition failed validation | |
| LaserDefinitionNotAllowedException | if the user is not allowed | |
| LaserDefinitionException | if the request can not be served |
Implemented in cern::laser::definition::impl::AlarmDefinitionHandlerImpl.
| void cern::laser::definition::AlarmDefinitionHandler::upload | ( | Reader | xmlDefinitionsReader | ) | throws LaserDefinitionException |
Execute a bulk update within one single transaction.
| xmlDefinitionsReader | the XML definitions reader |
| LaserDefinitionXMLException | if the XML unmarshalling failed | |
| LaserDefinitionNotValidException | if the definition failed validation | |
| LaserDefinitionNotFoundException | if the definition was not found | |
| LaserDefinitionNotAllowedException | if the user is not allowed | |
| LaserDefinitionException | if the request can not be served |
Implemented in cern::laser::definition::impl::AlarmDefinitionHandlerImpl.
| void cern::laser::definition::AlarmDefinitionHandler::upload | ( | Collection | toBeCreated, | |
| Collection | toBeUpdated, | |||
| Collection | toBeRemoved | |||
| ) | throws LaserDefinitionException |
Execute a bulk update within one single transaction.
| toBeCreated | the definitions to create | |
| toBeUpdated | the definitions to update | |
| toBeRemoved | the definitions to remove |
| LaserDefinitionNotValidException | if the definition failed validation | |
| LaserDefinitionNotFoundException | if the definition was not found | |
| LaserDefinitionNotAllowedException | if the user is not allowed | |
| LaserDefinitionException | if the request can not be served |
Implemented in cern::laser::definition::impl::AlarmDefinitionHandlerImpl.
Referenced by cern::laser::definition::impl::TestAdminUser::TestAdminUser(), and cern::laser::definition::impl::TestXmlUpload::TestXmlUpload().
1.6.2