org.kuali.rice.kew.actionrequest
Class ActionRequestValue

java.lang.Object
  extended by org.kuali.rice.kew.actionrequest.ActionRequestValue
All Implemented Interfaces:
Serializable, WorkflowPersistable

@Sequence(name="KREW_ACTN_RQST_S",
          property="actionRequestId")
public class ActionRequestValue
extends Object
implements WorkflowPersistable

Bean mapped to DB. Represents ActionRequest to a workgroup, user or role. Contains references to children/parent if a member of a graph

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
private static String ACTION_CODE_RANK
           
private  List<ActionItem> actionItems
           
private  String actionRequested
           
private  Long actionRequestId
           
private  ActionTakenValue actionTaken
           
private  Long actionTakenId
           
private  String annotation
           
private  String approvePolicy
           
private  List<ActionRequestValue> childrenRequests
           
private  Timestamp createDate
           
private  String createDateString
           
private  Boolean currentIndicator
           
private static String DELEGATION_TYPE_RANK
           
private  String delegationType
           
private  String displayStatus
           
private  Integer docVersion
           
private  Boolean forceAction
           
private  String groupId
           
private  String groupName
           
private  Integer jrfVerNbr
           
private static org.apache.log4j.Logger LOG
           
private  RouteNodeInstance nodeInstance
           
private  ActionRequestValue parentActionRequest
           
private  Long parentActionRequestId
           
private  String principalId
           
private  Integer priority
           
private  String qualifiedRoleName
           
private  String qualifiedRoleNameLabel
           
private static String RECIPIENT_TYPE_RANK
           
private  String recipientTypeCd
           
private  String requestLabel
           
private  boolean resolveResponsibility
           
private  String responsibilityDesc
           
private  Long responsibilityId
           
private  String roleName
           
private  DocumentRouteHeaderValue routeHeader
           
private  Long routeHeaderId
           
private  Integer routeLevel
           
private  Long ruleBaseValuesId
           
private static long serialVersionUID
           
private  String status
           
 
Constructor Summary
ActionRequestValue()
           
 
Method Summary
 void beforeInsert()
           
static int compareActionCode(String code1, String code2, boolean completeAndApproveTheSame)
          Allows comparison of action requests to see which is greater responsibility.
static int compareDelegationType(String type1, String type2)
           
static int compareRecipientType(String type1, String type2)
          Allows comparison of action requests to see which is greater responsibility.
 Object copy(boolean preserveKeys)
           
 List<ActionItem> getActionItems()
           
 String getActionRequested()
           
 String getActionRequestedLabel()
           
 Long getActionRequestId()
           
 ActionTakenValue getActionTaken()
           
 Long getActionTakenId()
           
 String getAnnotation()
           
 String getApprovePolicy()
           
 List<ActionRequestValue> getChildrenRequests()
           
 Timestamp getCreateDate()
           
 String getCreateDateString()
           
 Boolean getCurrentIndicator()
           
 String getDelegationType()
           
 String getDisplayName()
           
 String getDisplayStatus()
           
 Integer getDocVersion()
           
 Boolean getForceAction()
           
 Group getGroup()
           
 String getGroupId()
           
 String getGroupName()
           
 boolean getHasApprovePolicy()
           
 Integer getJrfVerNbr()
           
 RouteNodeInstance getNodeInstance()
           
 ActionRequestValue getParentActionRequest()
           
 Long getParentActionRequestId()
           
 Person getPerson()
           
 String getPotentialNodeName()
           
 List<ActionRequestValue> getPrimaryDelegateRequests()
          Used to get primary delegate names on route log in the 'Requested Of' section so primary delegate requests list the delegate and not the delegator as having the request 'IN ACTION LIST'.
 KimPrincipal getPrincipal()
           
 String getPrincipalId()
           
 Integer getPriority()
           
 String getQualifiedRoleName()
           
 String getQualifiedRoleNameLabel()
           
 Recipient getRecipient()
           
 String getRecipientTypeCd()
           
 String getRecipientTypeLabel()
           
 String getRequestLabel()
           
 boolean getResolveResponsibility()
           
 String getResponsibilityDesc()
           
 Long getResponsibilityId()
           
 String getRoleName()
           
 DocumentRouteHeaderValue getRouteHeader()
           
 Long getRouteHeaderId()
           
 Integer getRouteLevel()
           
 String getRouteLevelName()
           
 RuleBaseValues getRuleBaseValues()
           
 Long getRuleBaseValuesId()
           
private  RuleService getRuleService()
           
 String getStatus()
           
 String getStatusLabel()
           
 boolean hasChild(ActionRequestValue actionRequest)
           
 boolean hasParent()
           
 boolean isAcknowledgeRequest()
           
 boolean isActive()
           
 boolean isAdHocRequest()
           
 boolean isApproveOrCompleteRequest()
           
 boolean isApproveRequest()
           
 boolean isCompleteRequst()
           
 boolean isDeactivated()
           
 boolean isDone()
           
 boolean isExceptionRequest()
           
 boolean isFYIRequest()
           
 boolean isGeneratedRequest()
           
 boolean isGroupRequest()
           
 boolean isInitialized()
           
 boolean isPending()
           
 boolean isPrimaryDelegator()
           
 boolean isRecipientRoutedRequest(Recipient recipient)
           
 boolean isRecipientRoutedRequest(String principalId)
           
 boolean isReviewerUser()
           
 boolean isRoleRequest()
           
 boolean isRouteModuleRequest()
           
 boolean isUserRequest()
           
 void setActionItems(List<ActionItem> actionItems)
           
 void setActionRequested(String actionRequested)
           
 void setActionRequestId(Long actionRequestId)
           
 void setActionTaken(ActionTakenValue actionTaken)
           
 void setActionTakenId(Long actionTakenId)
           
 void setAnnotation(String annotation)
           
 void setApprovePolicy(String requestType)
           
 void setChildrenRequests(List<ActionRequestValue> childrenRequests)
           
 void setCreateDate(Timestamp createDate)
           
 void setCreateDateString(String createDateString)
           
 void setCurrentIndicator(Boolean currentIndicator)
           
 void setDelegationType(String delegatePolicy)
           
 void setDisplayStatus(String displayStatus)
           
 void setDocVersion(Integer docVersion)
           
 void setForceAction(Boolean forceAction)
           
 void setGroupId(String groupId)
           
 void setJrfVerNbr(Integer jrfVerNbr)
           
 void setNodeInstance(RouteNodeInstance nodeInstance)
           
 void setParentActionRequest(ActionRequestValue parentActionRequest)
           
 void setParentActionRequestId(Long parentActionRequestId)
           
 void setPrincipalId(String principalId)
           
 void setPriority(Integer priority)
           
 void setQualifiedRoleName(String roleName)
           
 void setQualifiedRoleNameLabel(String qualifiedRoleNameLabel)
           
 void setRecipientTypeCd(String recipientTypeCd)
           
 void setRequestLabel(String requestLabel)
           
 void setResolveResponsibility(boolean resolveResponsibility)
           
 void setResponsibilityDesc(String responsibilityDesc)
           
 void setResponsibilityId(Long responsibilityId)
           
 void setRoleName(String roleName)
           
 void setRouteHeader(DocumentRouteHeaderValue routeHeader)
           
 void setRouteHeaderId(Long routeHeaderId)
           
 void setRouteLevel(Integer routeLevel)
           
 void setRuleBaseValuesId(Long ruleBaseValuesId)
           
 void setStatus(String status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

LOG

private static final org.apache.log4j.Logger LOG

ACTION_CODE_RANK

private static final String ACTION_CODE_RANK
See Also:
Constant Field Values

RECIPIENT_TYPE_RANK

private static final String RECIPIENT_TYPE_RANK
See Also:
Constant Field Values

DELEGATION_TYPE_RANK

private static final String DELEGATION_TYPE_RANK
See Also:
Constant Field Values

actionRequestId

private Long actionRequestId

actionRequested

private String actionRequested

routeHeaderId

private Long routeHeaderId

status

private String status

responsibilityId

private Long responsibilityId

groupId

private String groupId

recipientTypeCd

private String recipientTypeCd

priority

private Integer priority

routeLevel

private Integer routeLevel

actionTakenId

private Long actionTakenId

docVersion

private Integer docVersion

createDate

private Timestamp createDate

responsibilityDesc

private String responsibilityDesc

annotation

private String annotation

jrfVerNbr

private Integer jrfVerNbr

principalId

private String principalId

forceAction

private Boolean forceAction

parentActionRequestId

private Long parentActionRequestId

qualifiedRoleName

private String qualifiedRoleName

roleName

private String roleName

qualifiedRoleNameLabel

private String qualifiedRoleNameLabel

displayStatus

private String displayStatus

ruleBaseValuesId

private Long ruleBaseValuesId

delegationType

private String delegationType

approvePolicy

private String approvePolicy

parentActionRequest

private ActionRequestValue parentActionRequest

childrenRequests

private List<ActionRequestValue> childrenRequests

actionTaken

private ActionTakenValue actionTaken

routeHeader

private DocumentRouteHeaderValue routeHeader

actionItems

private List<ActionItem> actionItems

currentIndicator

private Boolean currentIndicator

createDateString

private String createDateString

groupName

private String groupName

nodeInstance

private RouteNodeInstance nodeInstance

requestLabel

private String requestLabel

resolveResponsibility

private boolean resolveResponsibility
Constructor Detail

ActionRequestValue

public ActionRequestValue()
Method Detail

beforeInsert

public void beforeInsert()

getGroup

public Group getGroup()

getRouteLevelName

public String getRouteLevelName()

isUserRequest

public boolean isUserRequest()

getPrincipal

public KimPrincipal getPrincipal()

getPerson

public Person getPerson()

getDisplayName

public String getDisplayName()

getRecipient

public Recipient getRecipient()

isPending

public boolean isPending()

getRouteHeader

public DocumentRouteHeaderValue getRouteHeader()

getStatusLabel

public String getStatusLabel()

getActionRequestedLabel

public String getActionRequestedLabel()

setRouteHeader

public void setRouteHeader(DocumentRouteHeaderValue routeHeader)
Parameters:
routeHeader - The routeHeader to set.

getActionTaken

public ActionTakenValue getActionTaken()
Returns:
Returns the actionTaken.

setActionTaken

public void setActionTaken(ActionTakenValue actionTaken)
Parameters:
actionTaken - The actionTaken to set.

getActionRequested

public String getActionRequested()
Returns:
Returns the actionRequested.

setActionRequested

public void setActionRequested(String actionRequested)
Parameters:
actionRequested - The actionRequested to set.

getActionRequestId

public Long getActionRequestId()
Returns:
Returns the actionRequestId.

setActionRequestId

public void setActionRequestId(Long actionRequestId)
Parameters:
actionRequestId - The actionRequestId to set.

getActionTakenId

public Long getActionTakenId()
Returns:
Returns the actionTakenId.

setActionTakenId

public void setActionTakenId(Long actionTakenId)
Parameters:
actionTakenId - The actionTakenId to set.

getAnnotation

public String getAnnotation()
Returns:
Returns the annotation.

setAnnotation

public void setAnnotation(String annotation)
Parameters:
annotation - The annotation to set.

getCreateDate

public Timestamp getCreateDate()
Returns:
Returns the createDate.

setCreateDate

public void setCreateDate(Timestamp createDate)
Parameters:
createDate - The createDate to set.

getDocVersion

public Integer getDocVersion()
Returns:
Returns the docVersion.

setDocVersion

public void setDocVersion(Integer docVersion)
Parameters:
docVersion - The docVersion to set.

getPrincipalId

public String getPrincipalId()

setPrincipalId

public void setPrincipalId(String principalId)

getForceAction

public Boolean getForceAction()
Returns:
Returns the forceAction.

setForceAction

public void setForceAction(Boolean forceAction)
Parameters:
forceAction - The forceAction to set.

getJrfVerNbr

public Integer getJrfVerNbr()
Returns:
Returns the jrfVerNbr.

setJrfVerNbr

public void setJrfVerNbr(Integer jrfVerNbr)
Parameters:
jrfVerNbr - The jrfVerNbr to set.

getPriority

public Integer getPriority()
Returns:
Returns the priority.

setPriority

public void setPriority(Integer priority)
Parameters:
priority - The priority to set.

getRecipientTypeCd

public String getRecipientTypeCd()
Returns:
Returns the recipientTypeCd.

setRecipientTypeCd

public void setRecipientTypeCd(String recipientTypeCd)
Parameters:
recipientTypeCd - The recipientTypeCd to set.

getResponsibilityDesc

public String getResponsibilityDesc()
Returns:
Returns the responsibilityDesc.

setResponsibilityDesc

public void setResponsibilityDesc(String responsibilityDesc)
Parameters:
responsibilityDesc - The responsibilityDesc to set.

getResponsibilityId

public Long getResponsibilityId()
Returns:
Returns the responsibilityId.

setResponsibilityId

public void setResponsibilityId(Long responsibilityId)
Parameters:
responsibilityId - The responsibilityId to set.

getRouteHeaderId

public Long getRouteHeaderId()
Returns:
Returns the routeHeaderId.

setRouteHeaderId

public void setRouteHeaderId(Long routeHeaderId)

getRouteLevel

public Integer getRouteLevel()

setRouteLevel

public void setRouteLevel(Integer routeLevel)

getStatus

public String getStatus()

setStatus

public void setStatus(String status)

getGroupId

public String getGroupId()

setGroupId

public void setGroupId(String groupId)

copy

public Object copy(boolean preserveKeys)
Specified by:
copy in interface WorkflowPersistable

isInitialized

public boolean isInitialized()

isActive

public boolean isActive()

isApproveOrCompleteRequest

public boolean isApproveOrCompleteRequest()

isDone

public boolean isDone()

isReviewerUser

public boolean isReviewerUser()

isRecipientRoutedRequest

public boolean isRecipientRoutedRequest(String principalId)

isRecipientRoutedRequest

public boolean isRecipientRoutedRequest(Recipient recipient)

isGroupRequest

public boolean isGroupRequest()

isRoleRequest

public boolean isRoleRequest()

isAcknowledgeRequest

public boolean isAcknowledgeRequest()

isApproveRequest

public boolean isApproveRequest()

isCompleteRequst

public boolean isCompleteRequst()

isFYIRequest

public boolean isFYIRequest()

compareActionCode

public static int compareActionCode(String code1,
                                    String code2,
                                    boolean completeAndApproveTheSame)
Allows comparison of action requests to see which is greater responsibility. -1 : indicates code 1 is lesser responsibility than code 2 0 : indicates the same responsibility 1 : indicates code1 is greater responsibility than code 2 The priority of action requests is as follows: fyi < acknowledge < (approve == complete)

Parameters:
code1 -
code2 -
completeAndApproveTheSame -
Returns:
-1 if less than, 0 if equal, 1 if greater than

compareRecipientType

public static int compareRecipientType(String type1,
                                       String type2)
Allows comparison of action requests to see which is greater responsibility. -1 : indicates type 1 is lesser responsibility than type 2 0 : indicates the same responsibility 1 : indicates type1 is greater responsibility than type 2

Parameters:
type1 -
type2 -
Returns:
-1 if less than, 0 if equal, 1 if greater than

compareDelegationType

public static int compareDelegationType(String type1,
                                        String type2)

getActionItems

public List<ActionItem> getActionItems()

setActionItems

public void setActionItems(List<ActionItem> actionItems)

getCurrentIndicator

public Boolean getCurrentIndicator()

setCurrentIndicator

public void setCurrentIndicator(Boolean currentIndicator)

getParentActionRequestId

public Long getParentActionRequestId()

setParentActionRequestId

public void setParentActionRequestId(Long parentActionRequestId)

getParentActionRequest

public ActionRequestValue getParentActionRequest()

setParentActionRequest

public void setParentActionRequest(ActionRequestValue parentActionRequest)

getChildrenRequests

public List<ActionRequestValue> getChildrenRequests()

setChildrenRequests

public void setChildrenRequests(List<ActionRequestValue> childrenRequests)

getQualifiedRoleName

public String getQualifiedRoleName()

setQualifiedRoleName

public void setQualifiedRoleName(String roleName)

getDelegationType

public String getDelegationType()

setDelegationType

public void setDelegationType(String delegatePolicy)

getRoleName

public String getRoleName()

setRoleName

public void setRoleName(String roleName)

getApprovePolicy

public String getApprovePolicy()

setApprovePolicy

public void setApprovePolicy(String requestType)

getHasApprovePolicy

public boolean getHasApprovePolicy()

isDeactivated

public boolean isDeactivated()

hasParent

public boolean hasParent()

hasChild

public boolean hasChild(ActionRequestValue actionRequest)

getDisplayStatus

public String getDisplayStatus()

setDisplayStatus

public void setDisplayStatus(String displayStatus)

getQualifiedRoleNameLabel

public String getQualifiedRoleNameLabel()

setQualifiedRoleNameLabel

public void setQualifiedRoleNameLabel(String qualifiedRoleNameLabel)

getCreateDateString

public String getCreateDateString()

setCreateDateString

public void setCreateDateString(String createDateString)

getNodeInstance

public RouteNodeInstance getNodeInstance()

getPotentialNodeName

public String getPotentialNodeName()

setNodeInstance

public void setNodeInstance(RouteNodeInstance nodeInstance)

getRecipientTypeLabel

public String getRecipientTypeLabel()

getRuleBaseValues

public RuleBaseValues getRuleBaseValues()

getRuleBaseValuesId

public Long getRuleBaseValuesId()

setRuleBaseValuesId

public void setRuleBaseValuesId(Long ruleBaseValuesId)

getRuleService

private RuleService getRuleService()

isPrimaryDelegator

public boolean isPrimaryDelegator()

getPrimaryDelegateRequests

public List<ActionRequestValue> getPrimaryDelegateRequests()
Used to get primary delegate names on route log in the 'Requested Of' section so primary delegate requests list the delegate and not the delegator as having the request 'IN ACTION LIST'. This method doesn't recurse and therefore assume an AR structure.

Returns:
primary delgate requests

isAdHocRequest

public boolean isAdHocRequest()

isGeneratedRequest

public boolean isGeneratedRequest()

isExceptionRequest

public boolean isExceptionRequest()

isRouteModuleRequest

public boolean isRouteModuleRequest()

toString

public String toString()
Overrides:
toString in class Object

getRequestLabel

public String getRequestLabel()

setRequestLabel

public void setRequestLabel(String requestLabel)

getGroupName

public String getGroupName()

getResolveResponsibility

public boolean getResolveResponsibility()
Returns:
the resolveResponsibility

setResolveResponsibility

public void setResolveResponsibility(boolean resolveResponsibility)
Parameters:
resolveResponsibility - the resolveResponsibility to set


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.