Public Member Functions

cern.laser.business.data.Source Class Reference

Inherits java::io::Serializable.

List of all members.

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)

Detailed Description

Version:
Revision:
1.4
Date:
2006/09/25 08:52:36
Author:
Niall Stapley
Katarina Sigerud

.class table="SOURCE_DEFINITION"


Constructor & Destructor Documentation

cern.laser.business.data.Source.Source (  ) 

Empty constructor for Hibernate.

cern.laser.business.data.Source.Source ( SourceDefinition  definition,
ResponsiblePerson  responsiblePerson 
)

Member Function Documentation

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.

Parameters:
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 (  ) 
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.

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 (  ) 
Returns:
Returns the connectionTimeout. .property name="getConnectionTimeout" column="CONNECTION_TIMEOUT" not-null="false" unique="false"

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 (  ) 
String cern.laser.business.data.Source.getDescription (  ) 
Returns:
Returns the description. .property name="getDescription" column="DESCRIPTION" 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.getHostName (  ) 

.property name="getPhysicalMachine" column="HOSTNAME" not-null="false" unique="false"

Returns:
String

Referenced by cern.laser.business.data.Source.getDefinition(), and cern.laser.business.data.Source.toString().

String cern.laser.business.data.Source.getName (  ) 
ResponsiblePerson cern.laser.business.data.Source.getResponsiblePerson (  ) 
Returns:
Returns the responsible. .many-to-one column="RESPONSIBLE_ID" class="cern.laser.business.data.ResponsiblePerson"

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 (  ) 
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 (  ) 
Returns:
Returns the surveillanceAlarmId. .property name="getSurveillanceAlarmId" column="SURVEILLANCE_ALARM_ID" not-null="false" unique="false"

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 (  ) 
Boolean cern.laser.business.data.Source.isConnected (  ) 
Boolean cern.laser.business.data.Source.isEnabled (  ) 
void cern.laser.business.data.Source.setAlarmIds ( Set  newAlarmIds  ) 
Parameters:
alarms The alarms to set.

Referenced by alma.alarmsystem.alarmmessage.AlarmMessageConversion.getAlarm().

void cern.laser.business.data.Source.setConnectionTimeout ( Integer  connectionTimeout  ) 
Parameters:
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  ) 
void cern.laser.business.data.Source.setDescription ( String  description  ) 
void cern.laser.business.data.Source.setHostName ( String  hostName  ) 
void cern.laser.business.data.Source.setResponsiblePerson ( ResponsiblePerson  responsible  ) 
void cern.laser.business.data.Source.setSourceId ( String  sourceId  ) 
void cern.laser.business.data.Source.setStatus ( SourceStatus  status  ) 
void cern.laser.business.data.Source.setSurveillanceAlarmId ( String  surveillanceAlarmId  ) 
Parameters:
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 (  ) 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties