Read the categories from the CDB.
When the categories are available, the alarms are assigned to the categories (this complete the alarms initialization initiated by ACSAlarmDAOImpl)
com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.ACSCategoryDAOImpl | ( | Logger | log, | |
ACSAlarmDAOImpl | alarmDAO | |||
) |
Constructor
log | The log (not null) |
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.alarmDao, and com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.logger.
void com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.deleteCategory | ( | Category | category | ) |
Category [] com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findAllCategories | ( | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.categories.
Category com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findByCategoryTreeRoot | ( | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.categoryTreeRoot, and com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findCategoryByPath().
Category com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findBySurveillanceCategory | ( | ) |
Category com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findCategory | ( | Integer | identifier | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategory().
Category com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findCategoryByPath | ( | String | path | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategoryByPath().
Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findByCategoryTreeRoot(), and com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findBySurveillanceCategory().
void com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.flushCategory | ( | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.alarmDao, com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.catPathToCategory, com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.conf, cern.laser.business.dao.AlarmDAO.getAlarm(), cern.laser.business.data.CategoryImpl.getAlarmIds(), cern.laser.business.data.CategoryImpl.getDescription(), cern.laser.business.data.Triplet.getFaultCode(), cern.laser.business.data.Triplet.getFaultFamily(), cern.laser.business.data.Triplet.getFaultMember(), cern.laser.business.data.CategoryImpl.getPath(), cern.laser.business.data.Alarm.getTriplet(), com.cosylab.acs.laser.dao.ConfigurationAccessor.isWriteable(), and com.cosylab.acs.laser.dao.ConfigurationAccessor.setConfiguration().
String [] com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getAlarms | ( | Integer | categoryId | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategory().
Integer [] com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getAllCategoryIDs | ( | ) |
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
Category com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategory | ( | Integer | identifier | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.categories.
Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findCategory(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getAlarms(), and com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getChildren().
Category com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategoryByPath | ( | String | path | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.catPathToCategory.
Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findCategoryByPath(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategoryByPathInitialized(), and com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.linkWithAlarms().
Category com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategoryByPathInitialized | ( | String | path | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategoryByPath().
Integer [] com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getChildren | ( | Integer | parentId | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.categories, com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategory(), cern.laser.business.data.Category.getCategoryId(), and cern.laser.business.data.Category.getParentId().
Category com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getDefaultCategory | ( | ) |
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
void com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.linkWithAlarms | ( | ) |
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References cern.laser.business.data.CategoryImpl.addChildCategory(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.alarmDao, com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.catPathToCategory, com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.conf, cern.laser.business.dao.AlarmDAO.getAlarm(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategoryByPath(), com.cosylab.acs.laser.dao.ConfigurationAccessor.getConfiguration(), and cern.laser.business.data.Category.getPath().
alma.acs.alarmsystem.generated.Category [] com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.loadCategories | ( | ) | throws Exception |
Load the categories from the CDB.
Loads all the category from the CDB and build an internal representation of category. The category is also added to all the alarms having the fault family specified in the XML.
All the categories derive from ROOT that is built here as default (in this way the user does ot need to add the ROOT entry in the CDB).
Exception | In case of error reading the values from the CDB |
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.categories, com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.catPathToCategory, com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.conf, cern.laser.business.data.CategoryImpl.getCategoryId(), com.cosylab.acs.laser.dao.ConfigurationAccessor.getConfiguration(), cern.laser.business.data.CategoryImpl.getName(), cern.laser.business.data.Category.getPath(), cern.laser.business.data.CategoryImpl.getPath(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.logger, com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.nextCatID, cern.laser.business.data.CategoryImpl.setAlarmIds(), cern.laser.business.data.CategoryImpl.setCategoryId(), cern.laser.business.data.CategoryImpl.setChildrenIds(), cern.laser.business.data.CategoryImpl.setDescription(), cern.laser.business.data.CategoryImpl.setName(), cern.laser.business.data.CategoryImpl.setPath(), org.exolab.castor.xml.Unmarshaller.setValidation(), org.exolab.castor.xml.Unmarshaller.setWhitespacePreserve(), and org.exolab.castor.xml.Unmarshaller.unmarshal().
Referenced by com.cosylab.cdb.jdal.hibernate.plugin.HibernateWDALAlarmPluginImpl.importAlarms(), and com.cosylab.acs.laser.LaserComponent.initialize().
void com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.saveCategory | ( | Category | category | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.categories, com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.catPathToCategory, cern.laser.business.data.CategoryImpl.getCategoryId(), cern.laser.business.data.CategoryImpl.getPath(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.nextCatID, and cern.laser.business.data.CategoryImpl.setCategoryId().
void com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.setCategoryTreeRoot | ( | String | categoryTreeRoot | ) |
void com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.setConfAccessor | ( | ConfigurationAccessor | conf | ) |
void com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.setSurveillanceCategoryPath | ( | String | surveillanceCategoryPath | ) |
void com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.updateCategory | ( | Category | category | ) |
Implements cern.laser.business.dao.CategoryDAO.
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
References com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.categories, com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.catPathToCategory, cern.laser.business.data.Category.getCategoryId(), and cern.laser.business.data.Category.getPath().
HashMap<Integer, Category> com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.categories = new HashMap<Integer, Category>() [package] |
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.deleteCategory(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findAllCategories(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategory(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getChildren(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.loadCategories(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.saveCategory(), and com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.updateCategory().
String com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.categoryTreeRoot [package] |
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findByCategoryTreeRoot().
HashMap<String, Category> com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.catPathToCategory = new HashMap<String, Category>() [package] |
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.deleteCategory(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.flushCategory(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.getCategoryByPath(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.linkWithAlarms(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.loadCategories(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.saveCategory(), and com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.updateCategory().
Logger com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.logger [package] |
int com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.nextCatID = 1 [package] |
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.loadCategories(), and com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.saveCategory().
Reimplemented in cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.
Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.findBySurveillanceCategory().