CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto
Class WorkflowTransitionDto

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

public class WorkflowTransitionDto
extends NamedDto

Wraps a workflow transition.

See Also:
Serialized Form

Nested Class Summary
static class WorkflowTransitionDto.SourceStatusComparator
          A special Comparator to compare/sort transitions by source/from status
static class WorkflowTransitionDto.TargetStatusComparator
          A special Comparator to compare/sort transitions by target/to status
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.NamedDto
NamedDto.NameComparator
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
IdentifiableDto.IdComparator
 
Constructor Summary
WorkflowTransitionDto()
           
 
Method Summary
 java.lang.String getActionClass()
           
 java.util.List<TrackerLayoutLabelDto> getFieldUpdates()
          Get the fields whose values to update when this transition is executed
 NamedDto getFromStatus()
          Get the origin status of this transition
 java.lang.Integer getFromStatusId()
           
 java.lang.String getFromStatusName()
           
 java.lang.Boolean getGrantedToAssignee()
           
 java.lang.Boolean getGrantedToSubmitter()
           
 java.lang.String getLabel()
          Deprecated. use NamedDto.getName()
 java.util.List<RoleDto> getRolesGranted()
           
 NamedDto getToStatus()
          Get the target/destination status of this transition
 java.lang.Integer getToStatusId()
           
 java.lang.String getToStatusName()
           
 TrackerDto getTracker()
          Get the tracker this transition belongs to
 void setActionClass(java.lang.String actionClass)
           
 void setFieldUpdates(java.util.List<TrackerLayoutLabelDto> fieldUpdates)
          Set the fields whose values to update when this transition is executed
 void setFromStatus(NamedDto fromStatus)
          Set the origin status of this transition
 void setGrantedToAssignee(java.lang.Boolean grantToAssignee)
           
 void setGrantedToSubmitter(java.lang.Boolean grantToSubmitter)
           
 void setRolesGranted(java.util.List<RoleDto> grantToRoles)
           
 void setToStatus(NamedDto toStatus)
          Set the target/destination status of this transition
 void setTracker(TrackerDto tracker)
          Set the tracker this transition belongs to
 java.lang.String toString()
           
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.NamedDto
compareNames, compareString, compareStringIgnoreCase, compareTo, createLookupMap, equals, getName, hashCode, setName
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
clone, compare, compareInteger, equals, getId, hashCode, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkflowTransitionDto

public WorkflowTransitionDto()
Method Detail

getTracker

public TrackerDto getTracker()
Get the tracker this transition belongs to

Returns:
the owning tracker

setTracker

public void setTracker(TrackerDto tracker)
Set the tracker this transition belongs to

Parameters:
tracker - is the Tracker

getFromStatus

public NamedDto getFromStatus()
Get the origin status of this transition

Returns:
the origin status

setFromStatus

public void setFromStatus(NamedDto fromStatus)
Set the origin status of this transition

Parameters:
fromStatus - is the origin status

getFromStatusId

public java.lang.Integer getFromStatusId()

getFromStatusName

public java.lang.String getFromStatusName()

getToStatus

public NamedDto getToStatus()
Get the target/destination status of this transition

Returns:
the target/destination status

setToStatus

public void setToStatus(NamedDto toStatus)
Set the target/destination status of this transition

Parameters:
toStatus - is the target/destination status

getToStatusId

public java.lang.Integer getToStatusId()

getToStatusName

public java.lang.String getToStatusName()

getLabel

public java.lang.String getLabel()
Deprecated. use NamedDto.getName()


getGrantedToSubmitter

public java.lang.Boolean getGrantedToSubmitter()

setGrantedToSubmitter

public void setGrantedToSubmitter(java.lang.Boolean grantToSubmitter)

getGrantedToAssignee

public java.lang.Boolean getGrantedToAssignee()

setGrantedToAssignee

public void setGrantedToAssignee(java.lang.Boolean grantToAssignee)

getRolesGranted

public java.util.List<RoleDto> getRolesGranted()

setRolesGranted

public void setRolesGranted(java.util.List<RoleDto> grantToRoles)

getFieldUpdates

public java.util.List<TrackerLayoutLabelDto> getFieldUpdates()
Get the fields whose values to update when this transition is executed

Returns:
a List of fields (id plus value) to update during this transition

setFieldUpdates

public void setFieldUpdates(java.util.List<TrackerLayoutLabelDto> fieldUpdates)
Set the fields whose values to update when this transition is executed

Parameters:
fieldUpdates - is a List of fields (id plus value) to update during this transition

getActionClass

public java.lang.String getActionClass()

setActionClass

public void setActionClass(java.lang.String actionClass)

toString

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

CodeBeamer 5.4.0.1-RC API

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