
Public Member Functions | |
| void | setAdminUserDAO (AdminUserDAO adminUserDAO) |
| void | setCategoryDAO (CategoryDAO categoryDAO) |
| void | setAlarmDAO (AlarmDAO alarmDAO) |
| void | setAlarmCache (AlarmCache alarmCache) |
| CategoryDefinition | getCategoryDefinition (Integer categoryId) throws LaserDefinitionException |
| CategoryDefinition | getCategoryDefinition (String path) throws LaserDefinitionException |
| Collection | getCategoryDefinitions (String userId) throws LaserDefinitionException |
| void | createCategory (String userId, CategoryDefinition categoryDefinition) throws LaserDefinitionException |
| void | createCategories (String userId, Collection categories) throws LaserDefinitionException |
| void | updateCategory (String userId, CategoryDefinition categoryDefinition) throws LaserDefinitionException |
| void | updateCategories (String userId, Collection categories) throws LaserDefinitionException |
| void | removeCategory (String userId, CategoryDefinition categoryDefinition) throws LaserDefinitionException |
| void | removeCategories (String userId, Collection categories) throws LaserDefinitionException |
| void | createCategoryLink (String userId, CategoryLink link) throws LaserDefinitionException |
| void | createCategoryLinks (String userId, Collection categoryLinks) throws LaserDefinitionException |
| void | removeCategoryLink (String userId, CategoryLink link) throws LaserDefinitionException |
| void | removeCategoryLinks (String userId, Collection categoryLinks) throws LaserDefinitionException |
| void | uploadCategories (String userId, Collection toBeCreated, Collection toBeUpdated, Collection toBeRemoved) throws LaserDefinitionException |
| void | uploadCategoryLinks (String userId, Collection toBeCreated, Collection toBeRemoved) throws LaserDefinitionException |
Private Attributes | |
| AdminUserDAO | adminUserDAO |
| AlarmDAO | alarmDAO |
| CategoryDAO | categoryDAO |
| AlarmCache | alarmCache |
| AdminUserDefinitionServiceImpl | adminUserDefinitionService |
Static Private Attributes | |
| static final Logger | LOGGER = Logger.getLogger(CategoryDefinitionServiceImpl.class.getName()) |
| static final String | SOURCE_CATEGORY_PATH_PREFIX = "CERN.SOURCES." |
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::createCategories | ( | String | userId, | |
| Collection | categories | |||
| ) | throws LaserDefinitionException [inline] |
References createCategory(), and LOGGER.
Referenced by uploadCategories().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::createCategory | ( | String | userId, | |
| CategoryDefinition | categoryDefinition | |||
| ) | throws LaserDefinitionException [inline] |
References cern::laser::business::data::AdminUser::addAdministeredCategory(), cern::laser::business::data::Category::addChildCategory(), cern::laser::business::data::AdminUser::administersCategory(), adminUserDAO, categoryDAO, cern::laser::business::dao::AdminUserDAO::findAdminUser(), cern::laser::business::dao::AdminUserDAO::findByLaserAdminUser(), cern::laser::business::dao::CategoryDAO::getCategoryByPath(), cern::laser::business::data::Category::getCategoryId(), cern::laser::business::data::ConsoleUser::getName(), LOGGER, cern::laser::business::dao::CategoryDAO::saveCategory(), and cern::laser::business::dao::AdminUserDAO::updateAdminUser().
Referenced by createCategories(), and com::cosylab::acs::laser::LaserComponent::createCategory().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::createCategoryLink | ( | String | userId, | |
| CategoryLink | link | |||
| ) | throws LaserDefinitionException [inline] |
References cern::laser::business::data::AdminUser::administersCategory(), adminUserDAO, alarmCache, alarmDAO, categoryDAO, cern::laser::business::data::Category::containsAlarm(), cern::laser::business::dao::AdminUserDAO::findAdminUser(), cern::laser::business::dao::AlarmDAO::findAlarm(), cern::laser::business::dao::AlarmDAO::getAlarm(), cern::laser::business::data::Alarm::getAlarmId(), cern::laser::business::dao::CategoryDAO::getCategoryByPath(), cern::laser::business::data::Category::getCategoryId(), cern::laser::business::data::ConsoleUser::getName(), cern::laser::business::data::Alarm::getSource(), cern::laser::business::data::Source::getSurveillanceAlarmId(), cern::laser::business::cache::AlarmCache::invalidate(), LOGGER, and cern::laser::business::dao::CategoryDAO::updateCategory().
Referenced by createCategoryLinks().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::createCategoryLinks | ( | String | userId, | |
| Collection | categoryLinks | |||
| ) | throws LaserDefinitionException [inline] |
References createCategoryLink(), and LOGGER.
Referenced by uploadCategoryLinks().
| CategoryDefinition cern::laser::business::pojo::CategoryDefinitionServiceImpl::getCategoryDefinition | ( | String | path | ) | throws LaserDefinitionException [inline] |
| CategoryDefinition cern::laser::business::pojo::CategoryDefinitionServiceImpl::getCategoryDefinition | ( | Integer | categoryId | ) | throws LaserDefinitionException [inline] |
| Collection cern::laser::business::pojo::CategoryDefinitionServiceImpl::getCategoryDefinitions | ( | String | userId | ) | throws LaserDefinitionException [inline] |
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::removeCategories | ( | String | userId, | |
| Collection | categories | |||
| ) | throws LaserDefinitionException [inline] |
References LOGGER, and removeCategory().
Referenced by uploadCategories().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::removeCategory | ( | String | userId, | |
| CategoryDefinition | categoryDefinition | |||
| ) | throws LaserDefinitionException [inline] |
References cern::laser::business::data::AdminUser::administersCategory(), adminUserDAO, categoryDAO, cern::laser::business::dao::CategoryDAO::deleteCategory(), cern::laser::business::dao::AdminUserDAO::findAdminUser(), cern::laser::business::dao::AdminUserDAO::findByLaserAdminUser(), cern::laser::business::dao::CategoryDAO::getAlarms(), cern::laser::business::dao::CategoryDAO::getCategoryByPath(), cern::laser::business::data::Category::getCategoryId(), cern::laser::business::data::ConsoleUser::getName(), LOGGER, cern::laser::business::data::AdminUser::removeAdministeredCategory(), and cern::laser::business::dao::AdminUserDAO::updateAdminUser().
Referenced by removeCategories().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::removeCategoryLink | ( | String | userId, | |
| CategoryLink | link | |||
| ) | throws LaserDefinitionException [inline] |
References cern::laser::business::data::AdminUser::administersCategory(), adminUserDAO, alarmCache, alarmDAO, categoryDAO, cern::laser::business::data::Category::containsAlarm(), cern::laser::business::dao::AdminUserDAO::findAdminUser(), cern::laser::business::dao::CategoryDAO::flushCategory(), cern::laser::business::dao::AlarmDAO::getAlarm(), cern::laser::business::data::Alarm::getAlarmId(), cern::laser::business::dao::CategoryDAO::getCategoryByPath(), cern::laser::business::data::Category::getCategoryId(), cern::laser::business::data::ConsoleUser::getName(), cern::laser::business::cache::AlarmCache::invalidate(), LOGGER, and cern::laser::business::data::Category::removeAlarm().
Referenced by removeCategoryLinks().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::removeCategoryLinks | ( | String | userId, | |
| Collection | categoryLinks | |||
| ) | throws LaserDefinitionException [inline] |
References LOGGER, and removeCategoryLink().
Referenced by uploadCategoryLinks().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::setAdminUserDAO | ( | AdminUserDAO | adminUserDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::setAlarmCache | ( | AlarmCache | alarmCache | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::setAlarmDAO | ( | AlarmDAO | alarmDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::setCategoryDAO | ( | CategoryDAO | categoryDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::updateCategories | ( | String | userId, | |
| Collection | categories | |||
| ) | throws LaserDefinitionException [inline] |
References LOGGER, and updateCategory().
Referenced by uploadCategories().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::updateCategory | ( | String | userId, | |
| CategoryDefinition | categoryDefinition | |||
| ) | throws LaserDefinitionException [inline] |
References cern::laser::business::data::Category::addChildCategory(), cern::laser::business::data::AdminUser::administersCategory(), adminUserDAO, categoryDAO, cern::laser::business::dao::AdminUserDAO::findAdminUser(), cern::laser::business::dao::CategoryDAO::findCategoryByPath(), cern::laser::business::data::Category::getCategoryId(), cern::laser::business::data::ConsoleUser::getName(), cern::laser::business::data::Category::getParentId(), LOGGER, cern::laser::business::data::Category::removeChildCategory(), cern::laser::business::data::Category::setDefinition(), and cern::laser::business::dao::CategoryDAO::updateCategory().
Referenced by updateCategories().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::uploadCategories | ( | String | userId, | |
| Collection | toBeCreated, | |||
| Collection | toBeUpdated, | |||
| Collection | toBeRemoved | |||
| ) | throws LaserDefinitionException [inline] |
References createCategories(), LOGGER, removeCategories(), and updateCategories().
| void cern::laser::business::pojo::CategoryDefinitionServiceImpl::uploadCategoryLinks | ( | String | userId, | |
| Collection | toBeCreated, | |||
| Collection | toBeRemoved | |||
| ) | throws LaserDefinitionException [inline] |
References createCategoryLinks(), LOGGER, and removeCategoryLinks().
Referenced by createCategory(), createCategoryLink(), getCategoryDefinitions(), removeCategory(), removeCategoryLink(), and updateCategory().
AdminUserDefinitionServiceImpl cern::laser::business::pojo::CategoryDefinitionServiceImpl::adminUserDefinitionService [private] |
Referenced by createCategoryLink(), and removeCategoryLink().
Referenced by createCategoryLink(), and removeCategoryLink().
Referenced by createCategory(), createCategoryLink(), getCategoryDefinition(), removeCategory(), removeCategoryLink(), and updateCategory().
final Logger cern::laser::business::pojo::CategoryDefinitionServiceImpl::LOGGER = Logger.getLogger(CategoryDefinitionServiceImpl.class.getName()) [static, private] |
final String cern::laser::business::pojo::CategoryDefinitionServiceImpl::SOURCE_CATEGORY_PATH_PREFIX = "CERN.SOURCES." [static, private] |
1.6.2