|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intland.codebeamer.persistence.dto.base.IdentifiableDto
com.intland.codebeamer.persistence.dto.TrackerItemEscalationRuleDto
com.intland.codebeamer.persistence.dto.ReadOnlyEscalationRuleDto
public class ReadOnlyEscalationRuleDto
A special TrackerItemEscalationRuleDto that doesn't allow to change it's attributes All attempts to invoke a property setter method will throw an UnsupportedOperationException
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.TrackerItemEscalationRuleDto |
---|
TrackerItemEscalationRuleDto.Anchor |
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto |
---|
IdentifiableDto.IdComparator |
Field Summary |
---|
Fields inherited from class com.intland.codebeamer.persistence.dto.TrackerItemEscalationRuleDto |
---|
DAYS, HOURS, MINUTES, NOTIFY_ADDITIONAL_LISTENERS, NOTIFY_ISSUE_ASSIGNEES, NOTIFY_ISSUE_SUBMITTER, NOTIFY_ISSUE_SUPERVISORS, SECONDS |
Constructor Summary | |
---|---|
ReadOnlyEscalationRuleDto(TrackerItemEscalationRuleDto rule)
Create a read-only copy of the specified TrackerItemEscalationRuleDto |
Method Summary | |
---|---|
java.lang.Object |
clone()
Create a writable copy of this ReadOnlyDto Caution: The semantics are different than the standard Object.clone() method,
because the returned object's class is typically different from the ReadOnlyDtos's class |
void |
setAnchor(TrackerItemEscalationRuleDto.Anchor anchor)
Set how to compute the escalation firing date and time based on the specified offset and tracker item anchor field |
void |
setAudience(java.lang.Integer audience)
Set the target audience for notification mails emitted by this notification rule. |
void |
setCompiledOffset(TrackerItemCompiledExpression<java.lang.Number> compiledOffset)
Set the compiled script/formula to calculate the time offset |
void |
setFieldId(java.lang.Integer fieldId)
Set the ID of the anchor field for this escalation level. |
void |
setId(java.lang.Integer id)
Sets its unique identifier. |
void |
setLevel(int level)
Set the escalation level |
void |
setListeners(java.util.List<? extends NamedDto> listeners)
Set the list of additional listeners (other than issue submitter/assignees/supervisors) for notifications emitted by this rule |
void |
setOffset(java.lang.String offset)
Set the formula to compute the time offset measured in unit, relative to the field according to anchor |
void |
setOnlyMembers(java.lang.Boolean onlyMembers)
Set whether only direct project members in the specified role should be notified (true), or also indirect members (false) |
void |
setPredicate(NamedDto predicate)
Set the tracker item filter/predicate, to determine which tracker items are subject of escalation |
void |
setStatusId(java.lang.Integer statusId)
Set the ID of the escalation target status (if any). |
void |
setUnit(java.lang.Integer unit)
Set the time unit of the specified offset, defaults to HOURS if null |
Methods inherited from class com.intland.codebeamer.persistence.dto.TrackerItemEscalationRuleDto |
---|
compareTo, equals, getAnchor, getAudience, getCompiledOffset, getFieldId, getId, getLevel, getListeners, getOffset, getOffset, getOffset, getOffset, getOnlyMembers, getPredicate, getStatusId, getUnit, isAudience, toString |
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto |
---|
compare, compareInteger, equals, hashCode, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReadOnlyEscalationRuleDto(TrackerItemEscalationRuleDto rule)
rule
- to copyMethod Detail |
---|
public java.lang.Object clone()
ReadOnlyDto
Object.clone()
method,
because the returned object's class is typically different from the ReadOnlyDtos's class
clone
in interface ReadOnlyDto
clone
in class IdentifiableDto
public void setId(java.lang.Integer id)
IdentifiableDto
setId
in class IdentifiableDto
public void setLevel(int level)
TrackerItemEscalationRuleDto
setLevel
in class TrackerItemEscalationRuleDto
level
- is the escalation level, that must be unique within a tracker and predicate/grouppublic void setPredicate(NamedDto predicate)
TrackerItemEscalationRuleDto
setPredicate
in class TrackerItemEscalationRuleDto
predicate
- is the tracker item filter/predicate, to determine which tracker items are subject of escalationpublic void setOffset(java.lang.String offset)
TrackerItemEscalationRuleDto
setOffset
in class TrackerItemEscalationRuleDto
offset
- is the formula to compute the time offset in the specified unit, relative to the specified field according to anchorpublic void setCompiledOffset(TrackerItemCompiledExpression<java.lang.Number> compiledOffset)
TrackerItemEscalationRuleDto
setCompiledOffset
in class TrackerItemEscalationRuleDto
compiledOffset
- is the compiled script/formula to calculate the time offset, or nullpublic void setUnit(java.lang.Integer unit)
TrackerItemEscalationRuleDto
setUnit
in class TrackerItemEscalationRuleDto
public void setAnchor(TrackerItemEscalationRuleDto.Anchor anchor)
TrackerItemEscalationRuleDto
setAnchor
in class TrackerItemEscalationRuleDto
anchor
- is the TrackerItemEscalationRuleDto.Anchor
that determines the relation between the specified offset and tracker item fieldpublic void setFieldId(java.lang.Integer fieldId)
TrackerItemEscalationRuleDto
setFieldId
in class TrackerItemEscalationRuleDto
fieldId
- is the ID of the anchor field for this escalation levelpublic void setStatusId(java.lang.Integer statusId)
TrackerItemEscalationRuleDto
setStatusId
in class TrackerItemEscalationRuleDto
statusId
- is the ID of the new status for the target tracker item upon escalation, or null to not change the item statuspublic void setAudience(java.lang.Integer audience)
TrackerItemEscalationRuleDto
TrackerItemEscalationRuleDto.NOTIFY_ISSUE_SUBMITTER
TrackerItemEscalationRuleDto.NOTIFY_ISSUE_ASSIGNEES
TrackerItemEscalationRuleDto.NOTIFY_ISSUE_SUPERVISORS
TrackerItemEscalationRuleDto.NOTIFY_ADDITIONAL_LISTENERS
defined in TrackerItemEscalationRuleDto.getListeners()
setAudience
in class TrackerItemEscalationRuleDto
audience
- is the target audience for notification mails emitted by this notification rule.public void setListeners(java.util.List<? extends NamedDto> listeners)
TrackerItemEscalationRuleDto
setListeners
in class TrackerItemEscalationRuleDto
listeners
- is a list of additional listeners (users and/or roles) for notifications emitted by this rulepublic void setOnlyMembers(java.lang.Boolean onlyMembers)
TrackerItemEscalationRuleDto
setOnlyMembers
in class TrackerItemEscalationRuleDto
onlyMembers
- true if only direct project members in the specified role should be notified, or false to also notify indirect members
|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |