7.0 Action Request System Java API

com.remedy.arsys.api
Class EscalationTmInfo

java.lang.Object
  extended bycom.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()
          Returns the hash code value for this instance of the current class.
 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

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.

Throws:
java.lang.CloneNotSupportedException

equals

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


hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.


7.0 Action Request System Java API