5.1 Action Request System Java API

com.remedy.arsys.api
Class EscalationTmInfo

java.lang.Object
  |
  +--com.remedy.arsys.api.EscalationTmInfo
All Implemented Interfaces:
java.lang.Cloneable

public class EscalationTmInfo
extends java.lang.Object
implements java.lang.Cloneable

The EscalationTmInfo class represents the time specification for evaluating the escalation condition. This parameter can take one of two forms:


Constructor Summary
EscalationTmInfo()
          Constructor
EscalationTmInfo(DayInfo date)
          Constructs a new EscalationTmInfo object using Constants.AR_ESCALATION_TYPE_TIMEMARK to define a particular day
EscalationTmInfo(long interval)
          Constructs a new EscalationTmInfo object using Constants.AR_ESCALATION_TYPE_INTERVAL to define a time interval
 
Method Summary
 java.lang.Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(java.lang.Object anObject)
          Use this method for checking equality.
 DayInfo getDate()
          Returns time information for specified escalation.
 int getEscalationTmType()
          Returns the time specification for evaluating the escalation condition.
 long getInterval()
          Returns interval information for specified escalation.
 int hashCode()
          This method can be used to populate a hash table.
 void setDate(DayInfo date)
          Sets time information for specified escalation.
 void setEscalationTmType(int escalationTmType)
          Sets the time specification for evaluating the escalation condition.
 void setInterval(long interval)
          Sets interval information for specified escalation.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EscalationTmInfo

public EscalationTmInfo()
Constructor

EscalationTmInfo

public EscalationTmInfo(long interval)
Constructs a new EscalationTmInfo object using Constants.AR_ESCALATION_TYPE_INTERVAL to define a time interval
Parameters:
interval - escalation fire time in seconds

EscalationTmInfo

public EscalationTmInfo(DayInfo date)
Constructs a new EscalationTmInfo object using Constants.AR_ESCALATION_TYPE_TIMEMARK to define a particular day
Parameters:
DayInfo - escalation fire date
Method Detail

getInterval

public long getInterval()
Returns interval information for specified escalation.

setInterval

public void setInterval(long interval)
Sets interval information for specified escalation.

getDate

public DayInfo getDate()
Returns time information for specified escalation.

setDate

public void setDate(DayInfo date)
Sets time information for specified escalation.

getEscalationTmType

public int getEscalationTmType()
Returns the time specification for evaluating the escalation condition.

setEscalationTmType

public void setEscalationTmType(int escalationTmType)
Sets the time specification for evaluating the escalation condition. Valid values are: Constants.AR_ESCALATION_TYPE_INTERVAL that defines how frequently the server checks the escalation condition (in seconds) Constants.AR_ESCALATION_TYPE_TIMEMARK that defines a particular day (by month or week)and time (hour and minute)for the server to check the condition.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object anObject)
Use this method for checking equality. The result is true if and only if the argument is not null, is of same type and represents the same content.
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
This method can be used to populate a hash table. Implicitly used method to test equality of objects.
Overrides:
hashCode in class java.lang.Object

5.1 Action Request System Java API