CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto
Class TrackerItemEscalationScheduleDto

java.lang.Object
  extended by com.intland.codebeamer.persistence.dto.base.IdentifiableDto
      extended by com.intland.codebeamer.persistence.dto.TrackerItemEscalationScheduleDto
All Implemented Interfaces:
BaseDto, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class TrackerItemEscalationScheduleDto
extends IdentifiableDto

The definition of an entry in the tracker item escalation schedule.

See Also:
Serialized Form

Nested Class Summary
static class TrackerItemEscalationScheduleDto.DueDateComparator
          A special Comparator to compare TrackerItemEscalationScheduleDtos by their due dates
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
IdentifiableDto.IdComparator
 
Constructor Summary
TrackerItemEscalationScheduleDto()
          Create a default TrackerItemEscalationScheduleDto
TrackerItemEscalationScheduleDto(java.lang.Integer taskId, NamedDto predicate, int level, java.util.Date dueAt, boolean fired)
          Create a new TrackerItemEscalationScheduleDto with the specified attributes
TrackerItemEscalationScheduleDto(TrackerItemDto item, TrackerItemEscalationRuleDto rule, java.util.Date dueAt)
          Create a new TrackerItemEscalationScheduleDto with the specified attributes
TrackerItemEscalationScheduleDto(TrackerItemEscalationScheduleDto base)
          TrackerItemEscalationScheduleDto copy constructor
 
Method Summary
 int compareTo(java.lang.Object obj)
          Two TrackerItemEscalationScheduleDtos are compared by their primary key attributes id, predicate and level.
 boolean equals(java.lang.Object obj)
          Two TrackerItemEscalationScheduleDtos are equal if their primary key attributes id, predicate and level are equal.
 java.util.Date getDueAt()
          Get the date and time this escalation entry is due at (should be fired at)
 java.lang.Integer getId()
          Get the ID of the tracker item, this escalation entry belongs to
 int getLevel()
          Get the escalation level of this entry
 NamedDto getPredicate()
          Get the tracker item filter/predicate of this entry
 TrackerItemEscalationRuleDto getRule()
          Get the escalation rule that defines this schedule entry
 boolean isFired()
          Check if this escalation schedule entry has already been fired
 void setDueAt(java.util.Date dueAt)
          Set the date and time this escalation entry is due at (should be fired at)
 void setFired(boolean fired)
          Set whether this escalation schedule entry has already been fired
 void setLevel(int level)
          Set the escalation level of this entry
 void setPredicate(NamedDto predicate)
          Set the tracker item filter/predicate of this entry
 void setRule(TrackerItemEscalationRuleDto rule)
          Set the escalation rule that defines this schedule entry
 java.lang.String toString()
           
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
clone, compare, compareInteger, equals, hashCode, hashCode, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrackerItemEscalationScheduleDto

public TrackerItemEscalationScheduleDto()
Create a default TrackerItemEscalationScheduleDto


TrackerItemEscalationScheduleDto

public TrackerItemEscalationScheduleDto(java.lang.Integer taskId,
                                        NamedDto predicate,
                                        int level,
                                        java.util.Date dueAt,
                                        boolean fired)
Create a new TrackerItemEscalationScheduleDto with the specified attributes

Parameters:
taskId - is the ID of the TrackerItemDto the entry belongs to
level - is the escalation level number [1 ... n] (must be unique within tracker)
predicate - is the tracker item filter/predicate
dueAt - is the date and time this escalation entry should be fired
fired - is the status of this entry

TrackerItemEscalationScheduleDto

public TrackerItemEscalationScheduleDto(TrackerItemDto item,
                                        TrackerItemEscalationRuleDto rule,
                                        java.util.Date dueAt)
Create a new TrackerItemEscalationScheduleDto with the specified attributes

Parameters:
item - is the item the entry belongs to
rule - is the defining escalation rule of this entry
dueAt - is the date and time this escalation entry should be fired

TrackerItemEscalationScheduleDto

public TrackerItemEscalationScheduleDto(TrackerItemEscalationScheduleDto base)
TrackerItemEscalationScheduleDto copy constructor

Parameters:
base - escalation entry to copy
Method Detail

getId

public java.lang.Integer getId()
Get the ID of the tracker item, this escalation entry belongs to

Overrides:
getId in class IdentifiableDto
Returns:
the ID of the owning tracker item for this escalation schedule entry

getPredicate

public NamedDto getPredicate()
Get the tracker item filter/predicate of this entry

Returns:
the tracker item filter/predicate of this entry

setPredicate

public void setPredicate(NamedDto predicate)
Set the tracker item filter/predicate of this entry

Parameters:
predicate - is the tracker item filter/predicate of this entry

getLevel

public int getLevel()
Get the escalation level of this entry

Returns:
the escalation level

setLevel

public void setLevel(int level)
Set the escalation level of this entry

Parameters:
level - is the escalation level, that must be unique within a tracker

getDueAt

public java.util.Date getDueAt()
Get the date and time this escalation entry is due at (should be fired at)

Returns:
the the date and time this escalation entry is due at (should be fired at)

setDueAt

public void setDueAt(java.util.Date dueAt)
Set the date and time this escalation entry is due at (should be fired at)

Parameters:
dueAt - is the due date and time of this entry

isFired

public boolean isFired()
Check if this escalation schedule entry has already been fired

Returns:
true if this escalation schedule entry has already been fired

setFired

public void setFired(boolean fired)
Set whether this escalation schedule entry has already been fired

Parameters:
fired - is true if this escalation schedule entry has already been fired, otherwise false

getRule

public TrackerItemEscalationRuleDto getRule()
Get the escalation rule that defines this schedule entry

Returns:
the defining escalation rule for this entry

setRule

public void setRule(TrackerItemEscalationRuleDto rule)
Set the escalation rule that defines this schedule entry

Parameters:
rule - is the defining escalation rule for this entry

equals

public boolean equals(java.lang.Object obj)
Two TrackerItemEscalationScheduleDtos are equal if their primary key attributes id, predicate and level are equal. The attributes dueAt and fired are not considered!

Overrides:
equals in class IdentifiableDto

compareTo

public int compareTo(java.lang.Object obj)
Two TrackerItemEscalationScheduleDtos are compared by their primary key attributes id, predicate and level.

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class IdentifiableDto

toString

public java.lang.String toString()
Overrides:
toString in class IdentifiableDto

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.