Public Member Functions | |
void | connectToManager () throws Exception |
void | connectToDAL () throws AcsJContainerServicesEx |
void | loadFromCDB () |
String | checkCDB () |
void | saveToCDB () |
void | disconnectFromManager () |
AlarmManager | getAlarmManager () |
SourceManager | getSourceManager () |
CategoryManager | getCategoryManager () throws IllegalStateException |
ReductionManager | getReductionManager () |
UserAuthenticator.Role | getRole () |
void | setConfigurationProperty (String ct, String val) |
String | getConfigurationPrperty (String ct) |
Static Public Member Functions | |
static AlarmSystemManager | getInstance (UserAuthenticator.Role role) |
static AlarmSystemManager | getInstance () |
static void | destroy () |
Class representing the whole instance of the Alarm System configuration. It includes the other entities managers of this package.
String cl.utfsm.acs.acg.core.AlarmSystemManager.checkCDB | ( | ) |
void cl.utfsm.acs.acg.core.AlarmSystemManager.connectToDAL | ( | ) | throws AcsJContainerServicesEx |
Gets a reference to the CDB DAL.
AcsJContainerServicesEx | If there is an error while getting the DAL reference. |
References cl.utfsm.acs.acg.core.DAOManager.connect().
void cl.utfsm.acs.acg.core.AlarmSystemManager.connectToManager | ( | ) | throws Exception |
Connects the application to the ACS Manager and initializes the DAO Manager for ACG.
Exception | If the connection to the Manager is unsuccessful |
References cl.utfsm.acs.acg.core.AcsInformation.getContainerServices().
static void cl.utfsm.acs.acg.core.AlarmSystemManager.destroy | ( | ) | [static] |
Destroys the singleton instance of this class. This is needed to renew the internal references to the DAOs if a new connection to the DAL and the ACS Manager has been performed
void cl.utfsm.acs.acg.core.AlarmSystemManager.disconnectFromManager | ( | ) |
AlarmManager cl.utfsm.acs.acg.core.AlarmSystemManager.getAlarmManager | ( | ) |
References cl.utfsm.acs.acg.core.DAOManager.getAlarmDAO(), and cl.utfsm.acs.acg.core.AlarmManager.getInstance().
Referenced by cl.utfsm.acs.acg.core.AlarmSystemManager.getCategoryManager(), cl.utfsm.acs.acg.core.AlarmSystemManager.loadFromCDB(), and cl.utfsm.acs.acg.core.AlarmSystemManager.saveToCDB().
CategoryManager cl.utfsm.acs.acg.core.AlarmSystemManager.getCategoryManager | ( | ) | throws IllegalStateException |
References cl.utfsm.acs.acg.core.AlarmSystemManager.getAlarmManager(), cl.utfsm.acs.acg.core.DAOManager.getCategoryDAO(), and cl.utfsm.acs.acg.core.CategoryManager.getInstance().
Referenced by cl.utfsm.acs.acg.core.AlarmSystemManager.loadFromCDB(), and cl.utfsm.acs.acg.core.AlarmSystemManager.saveToCDB().
String cl.utfsm.acs.acg.core.AlarmSystemManager.getConfigurationPrperty | ( | String | ct | ) |
This method retrieves the current value of a given configuration-property.
ct | The configuration-property type that will be queried. |
Referenced by cl.utfsm.acs.acg.gui.AlarmSystemView.refreshContents().
static AlarmSystemManager cl.utfsm.acs.acg.core.AlarmSystemManager.getInstance | ( | UserAuthenticator.Role | role | ) | [static] |
Referenced by cl.utfsm.acs.acg.gui.AlarmSystemView.refreshContents().
static AlarmSystemManager cl.utfsm.acs.acg.core.AlarmSystemManager.getInstance | ( | ) | [static] |
ReductionManager cl.utfsm.acs.acg.core.AlarmSystemManager.getReductionManager | ( | ) |
UserAuthenticator.Role cl.utfsm.acs.acg.core.AlarmSystemManager.getRole | ( | ) |
SourceManager cl.utfsm.acs.acg.core.AlarmSystemManager.getSourceManager | ( | ) |
void cl.utfsm.acs.acg.core.AlarmSystemManager.loadFromCDB | ( | ) |
Performs a full reload of the contents of the Manager. All the current internal contents of the EntityManager are cleared, and replaced by the ones that are currently available on the CDB. Therefore, this call should be done with great care.
Implements cl.utfsm.acs.acg.core.EntityManager.
References cl.utfsm.acs.acg.core.AlarmSystemManager.getAlarmManager(), cl.utfsm.acs.acg.core.DAOManager.getAlarmSystemDAO(), cl.utfsm.acs.acg.core.AlarmSystemManager.getCategoryManager(), cl.utfsm.acs.acg.core.AlarmSystemManager.getReductionManager(), cl.utfsm.acs.acg.core.AlarmSystemManager.getSourceManager(), cl.utfsm.acs.acg.dao.ACSAlarmSystemDAOImpl.loadConfigurations(), cl.utfsm.acs.acg.core.ReductionManager.loadFromCDB(), cl.utfsm.acs.acg.core.CategoryManager.loadFromCDB(), cl.utfsm.acs.acg.core.SourceManager.loadFromCDB(), and cl.utfsm.acs.acg.core.AlarmManager.loadFromCDB().
void cl.utfsm.acs.acg.core.AlarmSystemManager.saveToCDB | ( | ) |
Performs a full save of the contents of the Manager to the CDB. All the modified contents of the CDB are updated, and replaced by the ones that are currently available on the EntityManager. Therefore, this call should be done with great care.
Implements cl.utfsm.acs.acg.core.EntityManager.
References cl.utfsm.acs.acg.core.DAOManager.backupCDB(), cl.utfsm.acs.acg.dao.ACSAlarmSystemDAOImpl.flushConfiguration(), cl.utfsm.acs.acg.core.AlarmSystemManager.getAlarmManager(), cl.utfsm.acs.acg.core.DAOManager.getAlarmSystemDAO(), cl.utfsm.acs.acg.core.AlarmSystemManager.getCategoryManager(), cl.utfsm.acs.acg.core.AlarmSystemManager.getReductionManager(), cl.utfsm.acs.acg.core.AlarmSystemManager.getSourceManager(), cl.utfsm.acs.acg.core.ReductionManager.saveToCDB(), cl.utfsm.acs.acg.core.CategoryManager.saveToCDB(), and cl.utfsm.acs.acg.core.AlarmManager.saveToCDB().
void cl.utfsm.acs.acg.core.AlarmSystemManager.setConfigurationProperty | ( | String | ct, | |
String | val | |||
) |
This method modifies the current value of a given configuration-property. As this 'value' is stored in a Hashtable it first checks if a previous 'value' existed (most likely) and removes it (if it existed) to prevent more than one 'value' for the same 'key'.
ct | The configuration-property type that will be modified. | |
at | The new value for the given configuration-property type. |
Referenced by cl.utfsm.acs.acg.gui.AlarmSystemView.createPartControl().