

Class representing the whole instance of the Alarm System configuration. It includes the other entities managers of this package.
| cl::utfsm::acs::acg::core::AlarmSystemManager::AlarmSystemManager | ( | UserAuthenticator.Role | role | ) | [inline, private] |
References _alarmSystemDAO, _configurationProperty, and _role.
Referenced by getInstance().
| void cl::utfsm::acs::acg::core::AlarmSystemManager::connectToDAL | ( | ) | throws AcsJContainerServicesEx [inline] |
Gets a reference to the CDB DAL.
| AcsJContainerServicesEx | If there is an error while getting the DAL reference. |
References _acsInfo, _daoManager, and cl::utfsm::acs::acg::core::DAOManager::connect().
Referenced by cl::utfsm::acs::acg::core::SourceManagerTest::setUp(), cl::utfsm::acs::acg::core::ReductionManagerTest::setUp(), cl::utfsm::acs::acg::core::CategoryManagerTest::setUp(), cl::utfsm::acs::acg::core::SourceManagerTest::testGetInstance(), and cl::utfsm::acs::acg::core::CategoryManagerTest::testGetInstance().
| void cl::utfsm::acs::acg::core::AlarmSystemManager::connectToManager | ( | ) | throws Exception [inline] |
Connects the application to the ACS Manager and initializes the DAO Manager for ACG.
| Exception | If the connection to the Manager is unsuccessful |
References _acsInfo, _daoManager, and cl::utfsm::acs::acg::core::AcsInformation::getContainerServices().
Referenced by cl::utfsm::acs::acg::core::SourceManagerTest::setUp(), cl::utfsm::acs::acg::core::ReductionManagerTest::setUp(), cl::utfsm::acs::acg::core::CategoryManagerTest::setUp(), cl::utfsm::acs::acg::core::SourceManagerTest::testGetInstance(), and cl::utfsm::acs::acg::core::CategoryManagerTest::testGetInstance().
| static void cl::utfsm::acs::acg::core::AlarmSystemManager::destroy | ( | ) | [inline, 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
References _instance.
| void cl::utfsm::acs::acg::core::AlarmSystemManager::disconnectFromManager | ( | ) | [inline] |
| AlarmManager cl::utfsm::acs::acg::core::AlarmSystemManager::getAlarmManager | ( | ) | [inline] |
| CategoryManager cl::utfsm::acs::acg::core::AlarmSystemManager::getCategoryManager | ( | ) | throws IllegalStateException [inline] |
References _categoryManager, _daoManager, getAlarmManager(), cl::utfsm::acs::acg::core::DAOManager::getCategoryDAO(), and cl::utfsm::acs::acg::core::CategoryManager::getInstance().
Referenced by loadFromCDB(), saveToCDB(), cl::utfsm::acs::acg::core::CategoryManagerTest::setUp(), cl::utfsm::acs::acg::core::CategoryManagerTest::testDeleteCategory(), cl::utfsm::acs::acg::core::CategoryManagerTest::testGetAllCategories(), cl::utfsm::acs::acg::core::CategoryManagerTest::testGetCategoryByPath(), and cl::utfsm::acs::acg::core::CategoryManagerTest::testLoadFromCDB().
| String cl::utfsm::acs::acg::core::AlarmSystemManager::getConfigurationPrperty | ( | String | ct | ) | [inline] |
This method retrieves the current value of a given configuration-property.
| ct | The configuration-property type that will be queried. |
References _configurationProperty.
Referenced by cl::utfsm::acs::acg::gui::AlarmSystemView::refreshContents().
| static AlarmSystemManager cl::utfsm::acs::acg::core::AlarmSystemManager::getInstance | ( | ) | [inline, static] |
References _instance.
| static AlarmSystemManager cl::utfsm::acs::acg::core::AlarmSystemManager::getInstance | ( | UserAuthenticator.Role | role | ) | [inline, static] |
References _instance, and AlarmSystemManager().
Referenced by cl::utfsm::acs::acg::gui::AlarmSystemView::refreshContents(), cl::utfsm::acs::acg::core::SourceManagerTest::setUp(), cl::utfsm::acs::acg::core::ReductionManagerTest::setUp(), cl::utfsm::acs::acg::core::CategoryManagerTest::setUp(), cl::utfsm::acs::acg::core::SourceManagerTest::testGetInstance(), cl::utfsm::acs::acg::core::CategoryManagerTest::testGetInstance(), and cl::utfsm::acs::acg::core::AlarmSystemManagerTest::testGetInstance().
| ReductionManager cl::utfsm::acs::acg::core::AlarmSystemManager::getReductionManager | ( | ) | [inline] |
| UserAuthenticator.Role cl::utfsm::acs::acg::core::AlarmSystemManager::getRole | ( | ) | [inline] |
References _role.
| SourceManager cl::utfsm::acs::acg::core::AlarmSystemManager::getSourceManager | ( | ) | [inline] |
References _daoManager, _sourceManager, cl::utfsm::acs::acg::core::SourceManager::getInstance(), and cl::utfsm::acs::acg::core::DAOManager::getSourceDAO().
Referenced by loadFromCDB(), saveToCDB(), cl::utfsm::acs::acg::core::SourceManagerTest::testAddSource(), cl::utfsm::acs::acg::core::SourceManagerTest::testDeleteSource(), cl::utfsm::acs::acg::core::SourceManagerTest::testGetAllSources(), cl::utfsm::acs::acg::core::SourceManagerTest::testGetSource(), and cl::utfsm::acs::acg::core::SourceManagerTest::testReloadFromCDB().
| void cl::utfsm::acs::acg::core::AlarmSystemManager::loadFromCDB | ( | ) | [inline] |
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 _acsInfo, _alarmManager, _alarmSystemDAO, _categoryManager, _configurationProperty, _daoManager, _reductionManager, _sourceManager, getAlarmManager(), cl::utfsm::acs::acg::core::DAOManager::getAlarmSystemDAO(), getCategoryManager(), getReductionManager(), 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().
Referenced by cl::utfsm::acs::acg::core::ReductionManagerTest::testSaveToCDB().
| void cl::utfsm::acs::acg::core::AlarmSystemManager::saveToCDB | ( | ) | [inline] |
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 _acsInfo, _alarmManager, _alarmSystemDAO, _categoryManager, _configurationProperty, _daoManager, _reductionManager, cl::utfsm::acs::acg::core::DAOManager::backupCDB(), cl::utfsm::acs::acg::dao::ACSAlarmSystemDAOImpl::flushCategories(), getAlarmManager(), cl::utfsm::acs::acg::core::DAOManager::getAlarmSystemDAO(), getCategoryManager(), getReductionManager(), 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 | |||
| ) | [inline] |
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. |
References _configurationProperty.
Referenced by cl::utfsm::acs::acg::gui::AlarmSystemView::createPartControl().
Referenced by connectToDAL(), connectToManager(), disconnectFromManager(), loadFromCDB(), and saveToCDB().
Referenced by getAlarmManager(), loadFromCDB(), and saveToCDB().
Referenced by AlarmSystemManager(), loadFromCDB(), and saveToCDB().
Referenced by getCategoryManager(), loadFromCDB(), and saveToCDB().
Hashtable<String, String> cl::utfsm::acs::acg::core::AlarmSystemManager::_configurationProperty [private] |
Referenced by AlarmSystemManager(), getConfigurationPrperty(), loadFromCDB(), saveToCDB(), and setConfigurationProperty().
Referenced by connectToDAL(), connectToManager(), getAlarmManager(), getCategoryManager(), getReductionManager(), getSourceManager(), loadFromCDB(), and saveToCDB().
AlarmSystemManager cl::utfsm::acs::acg::core::AlarmSystemManager::_instance [static, private] |
Referenced by destroy(), and getInstance().
Referenced by getReductionManager(), loadFromCDB(), and saveToCDB().
In the CDB there can be several kinds of configuration-property types for the Alarm System. Currently only the "Implementation" type is used to choose between the ACS Alarm System and the CERN Alarm System, but more of them could be added. To represent this, an enum (ConfigurationPropertyType) was defined, which has each type available. For each of the values of this enum, a new enum is used to contain the different values this configuration-property can have. For the "Implementation" type the enum is AlarmSystemType. To store the values of the system a Hashtable is used where the 'key' is the ConfigurationPropertyType and the 'value' is an Object of the corresponding type. For example if the ConfigurationPropertyType was "Implementation" then the Object type would be AlarmSystemType.
Note that this schema could be also subsituted by a <String,String> Hashtable, since in a future there could be more configuration-property types for the Alarm System tuning.
Referenced by AlarmSystemManager(), and getRole().
Referenced by getSourceManager(), and loadFromCDB().
1.6.2