Inherits java::io::Serializable.
Public Member Functions | |
Source () | |
Source (SourceDefinition definition, ResponsiblePerson responsiblePerson) | |
Integer | getConnectionTimeout () |
String | getDescription () |
String | getName () |
ResponsiblePerson | getResponsiblePerson () |
String | getSourceId () |
String | getSurveillanceAlarmId () |
void | addAlarm (Alarm alarm) |
void | setConnectionTimeout (Integer connectionTimeout) |
void | setDescription (String description) |
void | setResponsiblePerson (ResponsiblePerson responsible) |
void | setSourceId (String sourceId) |
void | setSurveillanceAlarmId (String surveillanceAlarmId) |
SourceStatus | getStatus () |
void | setStatus (SourceStatus status) |
Boolean | isConnected () |
Boolean | isEnabled () |
String | getHostName () |
void | setHostName (String hostName) |
SourceDefinition | getDefinition () |
void | setDefinition (SourceDefinition definition) |
int | hashCode () |
boolean | equals (Object obj) |
Object | clone () |
String | toString () |
Set | getAlarmIds () |
void | setAlarmIds (Set newAlarmIds) |
.class table="SOURCE_DEFINITION"
cern.laser.business.data.Source.Source | ( | ) |
Empty constructor for Hibernate.
cern.laser.business.data.Source.Source | ( | SourceDefinition | definition, | |
ResponsiblePerson | responsiblePerson | |||
) |
References cern.laser.business.data.SourceStatus.clone(), cern.laser.business.data.Source.getSourceId(), cern.laser.business.definition.data.SourceDefinition.getSourceId(), cern.laser.business.data.SourceStatus.INITIAL_STATUS, cern.laser.business.data.Source.setDefinition(), cern.laser.business.data.Source.setResponsiblePerson(), cern.laser.business.data.Source.setSourceId(), and cern.laser.business.data.SourceStatus.setStatusId().
void cern.laser.business.data.Source.addAlarm | ( | Alarm | alarm | ) |
Sets up the bi-directional relationship between this source and the given alarm. If the alarm is already associate to a source, it is removed from the old source.
alarm | the alarm to add to this source. |
References cern.laser.business.data.Alarm.getAlarmId(), cern.laser.business.data.Source.getAlarmIds(), cern.laser.business.data.Alarm.getSource(), and cern.laser.business.data.Alarm.setSource().
Referenced by cern.laser.business.pojo.AlarmDefinitionServiceImpl.updateAlarm().
Object cern.laser.business.data.Source.clone | ( | ) |
References cern.laser.business.data.ResponsiblePerson.clone(), cern.laser.business.data.SourceStatus.clone(), cern.laser.business.data.Source.setResponsiblePerson(), cern.laser.business.data.Source.setSourceId(), and cern.laser.business.data.Source.setStatus().
Referenced by cern.laser.business.data.AlarmImpl.clone().
boolean cern.laser.business.data.Source.equals | ( | Object | obj | ) |
Set cern.laser.business.data.Source.getAlarmIds | ( | ) |
Returns the ids of the alarms for this source, or an empty collection if there are none.
.set name="getAlarmIds" table="ALARM_DEFINITION" inverse="true" lazy="true" outer-join="false" .collection-key column="SOURCE_ID" .collection-element column="ALARM_ID" type="string"
Referenced by cern.laser.business.data.Source.addAlarm().
Integer cern.laser.business.data.Source.getConnectionTimeout | ( | ) |
Referenced by cern.laser.business.pojo.AlarmSourceMonitorImpl.check(), cern.laser.business.data.Source.getDefinition(), and cern.laser.business.data.Source.toString().
SourceDefinition cern.laser.business.data.Source.getDefinition | ( | ) |
References cern.laser.business.data.Source.getConnectionTimeout(), cern.laser.business.data.Source.getDescription(), cern.laser.business.data.Source.getHostName(), cern.laser.business.data.Source.getName(), cern.laser.business.data.Source.getResponsiblePerson(), cern.laser.business.definition.data.SourceDefinition.setConnectionTimeout(), cern.laser.business.definition.data.SourceDefinition.setDescription(), cern.laser.business.definition.data.SourceDefinition.setHostName(), and cern.laser.business.definition.data.SourceDefinition.setResponsiblePersonId().
Referenced by cern.laser.business.pojo.SourceDefinitionServiceImpl.getSourceDefinition().
String cern.laser.business.data.Source.getDescription | ( | ) |
Referenced by cern.laser.business.data.Source.getDefinition(), and cern.laser.business.data.Source.toString().
String cern.laser.business.data.Source.getHostName | ( | ) |
.property name="getPhysicalMachine" column="HOSTNAME" not-null="false" unique="false"
Referenced by cern.laser.business.data.Source.getDefinition(), and cern.laser.business.data.Source.toString().
String cern.laser.business.data.Source.getName | ( | ) |
References cern.laser.business.data.Source.getSourceId().
Referenced by cern.laser.business.pojo.AlarmSourceMonitorImpl.check(), cern.laser.business.pojo.AlarmDefinitionServiceImpl.createAlarm(), cern.laser.business.pojo.AlarmDefinitionServiceImpl.createAlarms(), com.cosylab.acs.laser.dao.ACSAlarmDAOImpl.encodeToXML(), cl.utfsm.acs.acg.dao.ACSAlarmDAOImpl.generateAlarmsMap(), cern.laser.business.data.Source.getDefinition(), cern.laser.business.pojo.AlarmMessageProcessorImpl.processChange(), cern.laser.business.data.Source.toString(), cern.laser.business.pojo.AlarmDefinitionServiceImpl.updateAlarm(), and cern.laser.business.pojo.SourceDefinitionServiceImpl.updateSource().
ResponsiblePerson cern.laser.business.data.Source.getResponsiblePerson | ( | ) |
Referenced by cern.laser.business.data.Source.getDefinition(), cern.laser.business.data.Source.toString(), and cern.laser.business.pojo.AlarmDefinitionServiceImpl.updateAlarm().
String cern.laser.business.data.Source.getSourceId | ( | ) |
.id generator-class="assigned" column="SOURCE_ID"
Referenced by cern.laser.business.data.AdminUser.addAdministeredSource(), cern.laser.business.data.AdminUser.administersSource(), com.cosylab.acs.laser.dao.ACSSourceDAOImpl.deleteSource(), cern.laser.business.data.Source.equals(), cl.utfsm.acs.acg.dao.ACSAlarmDAOImpl.generateAlarmsMap(), cern.laser.business.pojo.AlarmDefinitionServiceImpl.getAlarmDefinitions(), com.cosylab.acs.laser.dao.ACSSourceDAOImpl.getAlarms(), cern.laser.business.data.Source.getName(), cern.laser.business.data.Source.hashCode(), cern.laser.business.data.AdminUser.removeAdministeredSource(), com.cosylab.acs.laser.dao.ACSSourceDAOImpl.saveSource(), cern.laser.business.data.Source.Source(), cern.laser.business.data.Source.toString(), cern.laser.business.pojo.SourceDefinitionServiceImpl.updateSource(), and com.cosylab.acs.laser.dao.ACSSourceDAOImpl.updateSource().
SourceStatus cern.laser.business.data.Source.getStatus | ( | ) |
.many-to-one column="STATUS_ID" class="cern.laser.business.data.SourceStatus" cascade="all" unique="true"
Referenced by cern.laser.business.pojo.AlarmSourceMonitorImpl.check(), and cern.laser.business.pojo.AlarmSourceMonitorImpl.isUpToDate().
String cern.laser.business.data.Source.getSurveillanceAlarmId | ( | ) |
Referenced by cern.laser.business.pojo.AlarmSourceMonitorImpl.check(), cern.laser.business.pojo.CategoryDefinitionServiceImpl.createCategoryLink(), and cern.laser.business.pojo.SourceDefinitionServiceImpl.removeSource().
int cern.laser.business.data.Source.hashCode | ( | ) |
References cern.laser.business.data.Source.getSourceId().
Boolean cern.laser.business.data.Source.isConnected | ( | ) |
Boolean cern.laser.business.data.Source.isEnabled | ( | ) |
void cern.laser.business.data.Source.setAlarmIds | ( | Set | newAlarmIds | ) |
alarms | The alarms to set. |
Referenced by alma.alarmsystem.alarmmessage.AlarmMessageConversion.getAlarm().
void cern.laser.business.data.Source.setConnectionTimeout | ( | Integer | connectionTimeout | ) |
connected | The connected to set. | |
connectionTimeout | The connectionTimeout to set. |
Referenced by alma.alarmsystem.alarmmessage.AlarmMessageConversion.getAlarm(), and cern.laser.business.data.Source.setDefinition().
void cern.laser.business.data.Source.setDefinition | ( | SourceDefinition | definition | ) |
References cern.laser.business.definition.data.SourceDefinition.getConnectionTimeout(), cern.laser.business.definition.data.SourceDefinition.getDescription(), cern.laser.business.definition.data.SourceDefinition.getHostName(), cern.laser.business.data.Source.setConnectionTimeout(), cern.laser.business.data.Source.setDescription(), and cern.laser.business.data.Source.setHostName().
Referenced by cern.laser.business.data.Source.Source(), and cern.laser.business.pojo.SourceDefinitionServiceImpl.updateSource().
void cern.laser.business.data.Source.setDescription | ( | String | description | ) |
description | The description to set. |
Referenced by alma.alarmsystem.alarmmessage.AlarmMessageConversion.getAlarm(), and cern.laser.business.data.Source.setDefinition().
void cern.laser.business.data.Source.setHostName | ( | String | hostName | ) |
void cern.laser.business.data.Source.setResponsiblePerson | ( | ResponsiblePerson | responsible | ) |
responsible | The responsible to set. |
Referenced by cern.laser.business.data.Source.clone(), alma.alarmsystem.alarmmessage.AlarmMessageConversion.getAlarm(), and cern.laser.business.data.Source.Source().
void cern.laser.business.data.Source.setSourceId | ( | String | sourceId | ) |
sourceId | The sourceId to set. |
Referenced by cern.laser.business.data.Source.clone(), alma.alarmsystem.alarmmessage.AlarmMessageConversion.getAlarm(), cern.laser.business.data.Source.Source(), and cl.utfsm.acs.acg.gui.SourcesView.updateSource().
void cern.laser.business.data.Source.setStatus | ( | SourceStatus | status | ) |
void cern.laser.business.data.Source.setSurveillanceAlarmId | ( | String | surveillanceAlarmId | ) |
surveillanceAlarmId | The surveillanceAlarmId to set. |
Referenced by cern.laser.business.pojo.SourceDefinitionServiceImpl.createSource(), and alma.alarmsystem.alarmmessage.AlarmMessageConversion.getAlarm().
String cern.laser.business.data.Source.toString | ( | ) |
References cern.laser.business.data.Source.getConnectionTimeout(), cern.laser.business.data.Source.getDescription(), cern.laser.business.data.Source.getHostName(), cern.laser.business.data.SourceStatus.getLastContact(), cern.laser.business.data.Source.getName(), cern.laser.business.data.Source.getResponsiblePerson(), cern.laser.business.data.Source.getSourceId(), cern.laser.business.data.Source.isConnected(), and cern.laser.business.data.Source.isEnabled().