CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto
Enum TrackerItemEscalationRuleDto.Anchor

java.lang.Object
  extended by java.lang.Enum<TrackerItemEscalationRuleDto.Anchor>
      extended by com.intland.codebeamer.persistence.dto.TrackerItemEscalationRuleDto.Anchor
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TrackerItemEscalationRuleDto.Anchor>, org.apache.commons.collections.Predicate
Enclosing class:
TrackerItemEscalationRuleDto

public static enum TrackerItemEscalationRuleDto.Anchor
extends java.lang.Enum<TrackerItemEscalationRuleDto.Anchor>
implements org.apache.commons.collections.Predicate

The anchor defines how to compute the escalation firing date and time based on the specified time offset and the (Date) value/last modification date of the tracker item anchor field


Enum Constant Summary
AFTER
          The offset is added to the value of the specified field, which must contain a Date
AFTER_LAST_ESCALATION
          The offset is added to the date of the last/previous tracker item escalation (if any)
AFTER_LAST_MODIFICATION
          The offset is added to the last modification date of the specified field, which can be any field
BEFORE
          The offset is subtracted from the value of the specified field, which must contain a Date
 
Method Summary
 boolean evaluate(java.lang.Object object)
           
 java.lang.Integer getFieldType()
          Get the type of fields this anchor is applicable for
 boolean isApplicable(TrackerLayoutLabelDto field)
          Check if this type of anchor is applicable for the specified tracker item field
static TrackerItemEscalationRuleDto.Anchor valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TrackerItemEscalationRuleDto.Anchor[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BEFORE

public static final TrackerItemEscalationRuleDto.Anchor BEFORE
The offset is subtracted from the value of the specified field, which must contain a Date


AFTER

public static final TrackerItemEscalationRuleDto.Anchor AFTER
The offset is added to the value of the specified field, which must contain a Date


AFTER_LAST_MODIFICATION

public static final TrackerItemEscalationRuleDto.Anchor AFTER_LAST_MODIFICATION
The offset is added to the last modification date of the specified field, which can be any field


AFTER_LAST_ESCALATION

public static final TrackerItemEscalationRuleDto.Anchor AFTER_LAST_ESCALATION
The offset is added to the date of the last/previous tracker item escalation (if any)

Method Detail

values

public static final TrackerItemEscalationRuleDto.Anchor[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TrackerItemEscalationRuleDto.Anchor c : TrackerItemEscalationRuleDto.Anchor.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static TrackerItemEscalationRuleDto.Anchor valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getFieldType

public java.lang.Integer getFieldType()
Get the type of fields this anchor is applicable for

Returns:
the type of fields this anchor is applicable for, or null if this anchor is applicable for any field

isApplicable

public boolean isApplicable(TrackerLayoutLabelDto field)
Check if this type of anchor is applicable for the specified tracker item field

Parameters:
field - to check
Returns:
true if type of anchor is applicable for the specified tracker item field, otherwise false

evaluate

public boolean evaluate(java.lang.Object object)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate

CodeBeamer 5.4.0.1-RC API

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