
Public Member Functions | |
| void | setAdminUserDAO (AdminUserDAO adminUserDAO) |
| void | setResponsiblePersonDAO (ResponsiblePersonDAO responsiblePersonDAO) |
| void | setCategoryDAO (CategoryDAO categoryDAO) |
| void | setSourceDAO (SourceDAO sourceDAO) |
| void | setAlarmDAO (AlarmDAO alarmDAO) |
| void | setAlarmCache (AlarmCache alarmCache) |
| void | setAlarmDefinitionService (AlarmDefinitionServiceImpl alarmDefinitionService) |
| SourceDefinition | getSourceDefinition (String sourceId) throws LaserDefinitionException |
| Collection | getSourceDefinitions (String userId) throws LaserDefinitionException |
| void | createSource (String userId, SourceDefinition sourceDefinition) throws LaserDefinitionException |
| void | createSources (String userId, Collection sources) throws LaserDefinitionException |
| void | updateSource (String userId, SourceDefinition sourceDefinition) throws LaserDefinitionException |
| void | updateSources (String userId, Collection sources) throws LaserDefinitionException |
| void | removeSource (String userId, SourceDefinition sourceDefinition) throws LaserDefinitionException |
| void | removeSources (String userId, Collection sources) throws LaserDefinitionException |
| void | uploadSources (String userId, Collection toBeCreated, Collection toBeUpdated, Collection toBeRemoved) throws LaserDefinitionException |
Private Attributes | |
| AdminUserDAO | adminUserDAO |
| AlarmDAO | alarmDAO |
| CategoryDAO | categoryDAO |
| ResponsiblePersonDAO | responsiblePersonDAO |
| SourceDAO | sourceDAO |
| AlarmCache | alarmCache |
| AlarmDefinitionServiceImpl | alarmDefinitionService |
| AdminUserDefinitionServiceImpl | adminUserDefinitionService |
Static Private Attributes | |
| static final Logger | LOGGER = Logger.getLogger(SourceDefinitionServiceImpl.class.getName()) |
| static final String | SOURCES_CATEGORY_ROOT_PATH = "CERN.SOURCES" |
| static final String | SOURCE_CATEGORY_PATH_PREFIX = "CERN.SOURCES." |
| static final AlarmDefinition | SOURCE_SURVEILLANCE_ALARM_DEFINITION |
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::createSource | ( | String | userId, | |
| SourceDefinition | sourceDefinition | |||
| ) | throws LaserDefinitionException [inline] |
References cern::laser::business::data::AdminUser::addAdministeredCategory(), cern::laser::business::data::AdminUser::addAdministeredSource(), adminUserDAO, alarmDAO, categoryDAO, cern::laser::business::definition::data::AlarmDefinition::clone(), cern::laser::business::dao::AdminUserDAO::findAdminUser(), cern::laser::business::dao::AdminUserDAO::findByLaserAdminUser(), cern::laser::business::dao::CategoryDAO::findBySurveillanceCategory(), cern::laser::business::dao::CategoryDAO::findCategoryByPath(), cern::laser::business::dao::AlarmDAO::findLaserSurveillanceAlarmId(), cern::laser::business::data::Alarm::getAlarmId(), cern::laser::business::data::ConsoleUser::getName(), cern::laser::business::definition::data::CategoryDefinition::getParentPath(), cern::laser::business::definition::data::CategoryDefinition::getPath(), cern::laser::business::dao::ResponsiblePersonDAO::getResponsiblePerson(), cern::laser::business::dao::SourceDAO::getSource(), LOGGER, responsiblePersonDAO, cern::laser::business::dao::AlarmDAO::saveAlarm(), cern::laser::business::dao::CategoryDAO::saveCategory(), cern::laser::business::dao::SourceDAO::saveSource(), cern::laser::business::definition::data::AlarmDefinition::setFaultMember(), cern::laser::business::definition::data::AlarmDefinition::setIdentifier(), cern::laser::business::data::Source::setSurveillanceAlarmId(), SOURCE_CATEGORY_PATH_PREFIX, SOURCE_SURVEILLANCE_ALARM_DEFINITION, sourceDAO, cern::laser::business::dao::AdminUserDAO::updateAdminUser(), cern::laser::business::dao::CategoryDAO::updateCategory(), and cern::laser::business::dao::SourceDAO::updateSource().
Referenced by com::cosylab::acs::laser::LaserComponent::createSource(), and createSources().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::createSources | ( | String | userId, | |
| Collection | sources | |||
| ) | throws LaserDefinitionException [inline] |
References createSource(), and LOGGER.
Referenced by uploadSources().
| SourceDefinition cern::laser::business::pojo::SourceDefinitionServiceImpl::getSourceDefinition | ( | String | sourceId | ) | throws LaserDefinitionException [inline] |
References cern::laser::business::data::Source::getDefinition(), cern::laser::business::dao::SourceDAO::getSource(), and sourceDAO.
Referenced by getSourceDefinitions().
| Collection cern::laser::business::pojo::SourceDefinitionServiceImpl::getSourceDefinitions | ( | String | userId | ) | throws LaserDefinitionException [inline] |
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::removeSource | ( | String | userId, | |
| SourceDefinition | sourceDefinition | |||
| ) | throws LaserDefinitionException [inline] |
References cern::laser::business::data::AdminUser::administersSource(), adminUserDAO, alarmDAO, alarmDefinitionService, categoryDAO, cern::laser::business::dao::CategoryDAO::deleteCategory(), cern::laser::business::dao::SourceDAO::deleteSource(), cern::laser::business::dao::AdminUserDAO::findAdminUser(), cern::laser::business::dao::AlarmDAO::findAlarm(), cern::laser::business::dao::AdminUserDAO::findByLaserAdminUser(), cern::laser::business::dao::CategoryDAO::findCategoryByPath(), cern::laser::business::dao::SourceDAO::findSource(), cern::laser::business::dao::SourceDAO::getAlarms(), cern::laser::business::data::ConsoleUser::getName(), cern::laser::business::data::Source::getSurveillanceAlarmId(), cern::laser::business::data::ConsoleUser::getUserId(), LOGGER, cern::laser::business::data::AdminUser::removeAdministeredCategory(), cern::laser::business::data::AdminUser::removeAdministeredSource(), cern::laser::business::pojo::AlarmDefinitionServiceImpl::removeAlarm(), cern::laser::business::data::Category::removeChildCategory(), SOURCE_CATEGORY_PATH_PREFIX, sourceDAO, SOURCES_CATEGORY_ROOT_PATH, and cern::laser::business::dao::AdminUserDAO::updateAdminUser().
Referenced by removeSources().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::removeSources | ( | String | userId, | |
| Collection | sources | |||
| ) | throws LaserDefinitionException [inline] |
References LOGGER, and removeSource().
Referenced by uploadSources().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::setAdminUserDAO | ( | AdminUserDAO | adminUserDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::setAlarmCache | ( | AlarmCache | alarmCache | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::setAlarmDAO | ( | AlarmDAO | alarmDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::setAlarmDefinitionService | ( | AlarmDefinitionServiceImpl | alarmDefinitionService | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::setCategoryDAO | ( | CategoryDAO | categoryDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::setResponsiblePersonDAO | ( | ResponsiblePersonDAO | responsiblePersonDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::setSourceDAO | ( | SourceDAO | sourceDAO | ) | [inline] |
Referenced by com::cosylab::acs::laser::LaserComponent::initialize().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::updateSource | ( | String | userId, | |
| SourceDefinition | sourceDefinition | |||
| ) | throws LaserDefinitionException [inline] |
References cern::laser::business::data::AdminUser::administersSource(), adminUserDAO, alarmCache, cern::laser::business::dao::AdminUserDAO::findAdminUser(), cern::laser::business::dao::SourceDAO::findSource(), cern::laser::business::dao::SourceDAO::getAlarms(), cern::laser::business::data::ConsoleUser::getName(), cern::laser::business::data::Source::getName(), cern::laser::business::data::Source::getSourceId(), cern::laser::business::cache::AlarmCache::invalidate(), LOGGER, cern::laser::business::data::Source::setDefinition(), sourceDAO, and cern::laser::business::dao::SourceDAO::updateSource().
Referenced by updateSources().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::updateSources | ( | String | userId, | |
| Collection | sources | |||
| ) | throws LaserDefinitionException [inline] |
References LOGGER, and updateSource().
Referenced by uploadSources().
| void cern::laser::business::pojo::SourceDefinitionServiceImpl::uploadSources | ( | String | userId, | |
| Collection | toBeCreated, | |||
| Collection | toBeUpdated, | |||
| Collection | toBeRemoved | |||
| ) | throws LaserDefinitionException [inline] |
References createSources(), LOGGER, removeSources(), and updateSources().
Referenced by createSource(), getSourceDefinitions(), removeSource(), and updateSource().
AdminUserDefinitionServiceImpl cern::laser::business::pojo::SourceDefinitionServiceImpl::adminUserDefinitionService [private] |
Referenced by updateSource().
Referenced by createSource(), and removeSource().
AlarmDefinitionServiceImpl cern::laser::business::pojo::SourceDefinitionServiceImpl::alarmDefinitionService [private] |
Referenced by removeSource().
Referenced by createSource(), and removeSource().
final Logger cern::laser::business::pojo::SourceDefinitionServiceImpl::LOGGER = Logger.getLogger(SourceDefinitionServiceImpl.class.getName()) [static, private] |
Referenced by createSource(), createSources(), getSourceDefinitions(), removeSource(), removeSources(), updateSource(), updateSources(), and uploadSources().
ResponsiblePersonDAO cern::laser::business::pojo::SourceDefinitionServiceImpl::responsiblePersonDAO [private] |
Referenced by createSource().
final String cern::laser::business::pojo::SourceDefinitionServiceImpl::SOURCE_CATEGORY_PATH_PREFIX = "CERN.SOURCES." [static, private] |
Referenced by createSource(), and removeSource().
final AlarmDefinition cern::laser::business::pojo::SourceDefinitionServiceImpl::SOURCE_SURVEILLANCE_ALARM_DEFINITION [static, private] |
new AlarmDefinition("SURVEILLANCE", "<FAULT MEMBER>", new Integer(1), "SURVEILLANCE", "<IDENTIFIER>", "Not connected", new Integer(1), "Backup not received", "Contact source responsible person", "Source status not guaranteed", Boolean.FALSE, null, "LASER", null, null, null, null, null, new Integer(0), null, null)
Referenced by createSource().
Referenced by createSource(), getSourceDefinition(), removeSource(), and updateSource().
final String cern::laser::business::pojo::SourceDefinitionServiceImpl::SOURCES_CATEGORY_ROOT_PATH = "CERN.SOURCES" [static, private] |
Referenced by removeSource().
1.6.2