org.kuali.rice.kew.actionrequest
Class ActionRequestValue

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

@Sequence(name="KREW_ACTN_RQST_S",
          property="actionRequestId")
public class ActionRequestValue
extends java.lang.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

Constructor Summary
ActionRequestValue()
           
 
Method Summary
 void beforeInsert()
           
static int compareActionCode(java.lang.String code1, java.lang.String code2, boolean completeAndApproveTheSame)
          Allows comparison of action requests to see which is greater responsibility.
static int compareDelegationType(java.lang.String type1, java.lang.String type2)
           
static int compareRecipientType(java.lang.String type1, java.lang.String type2)
          Allows comparison of action requests to see which is greater responsibility.
 java.lang.Object copy(boolean preserveKeys)
           
 java.util.List<ActionItem> getActionItems()
           
 java.lang.String getActionRequested()
           
 java.lang.String getActionRequestedLabel()
           
 java.lang.Long getActionRequestId()
           
 ActionTakenValue getActionTaken()
           
 java.lang.Long getActionTakenId()
           
 java.lang.String getAnnotation()
           
 java.lang.String getApprovePolicy()
           
 java.util.List<ActionRequestValue> getChildrenRequests()
           
 java.sql.Timestamp getCreateDate()
           
 java.lang.String getCreateDateString()
           
 java.lang.Boolean getCurrentIndicator()
           
 java.lang.String getDelegationType()
           
 java.lang.String getDisplayName()
           
 java.lang.String getDisplayStatus()
           
 java.lang.Integer getDocVersion()
           
 java.lang.Boolean getForceAction()
           
 org.kuali.rice.kim.bo.Group getGroup()
           
 java.lang.String getGroupId()
           
 java.lang.String getGroupName()
           
 boolean getHasApprovePolicy()
           
 java.lang.Integer getJrfVerNbr()
           
 RouteNodeInstance getNodeInstance()
           
 ActionRequestValue getParentActionRequest()
           
 java.lang.Long getParentActionRequestId()
           
 org.kuali.rice.kim.bo.Person getPerson()
           
 java.lang.String getPotentialNodeName()
           
 java.util.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'.
 org.kuali.rice.kim.bo.entity.KimPrincipal getPrincipal()
           
 java.lang.String getPrincipalId()
           
 java.lang.Integer getPriority()
           
 java.lang.String getQualifiedRoleName()
           
 java.lang.String getQualifiedRoleNameLabel()
           
 Recipient getRecipient()
           
 java.lang.String getRecipientTypeCd()
           
 java.lang.String getRecipientTypeLabel()
           
 java.lang.String getRequestLabel()
           
 boolean getResolveResponsibility()
           
 java.lang.String getResponsibilityDesc()
           
 java.lang.Long getResponsibilityId()
           
 java.lang.String getRoleName()
           
 DocumentRouteHeaderValue getRouteHeader()
           
 java.lang.Long getRouteHeaderId()
           
 java.lang.Integer getRouteLevel()
           
 java.lang.String getRouteLevelName()
           
 RuleBaseValues getRuleBaseValues()
           
 java.lang.Long getRuleBaseValuesId()
           
 java.lang.String getStatus()
           
 java.lang.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(java.lang.String principalId)
           
 boolean isReviewerUser()
           
 boolean isRoleRequest()
           
 boolean isRouteModuleRequest()
           
 boolean isUserRequest()
           
 void setActionItems(java.util.List<ActionItem> actionItems)
           
 void setActionRequested(java.lang.String actionRequested)
           
 void setActionRequestId(java.lang.Long actionRequestId)
           
 void setActionTaken(ActionTakenValue actionTaken)
           
 void setActionTakenId(java.lang.Long actionTakenId)
           
 void setAnnotation(java.lang.String annotation)
           
 void setApprovePolicy(java.lang.String requestType)
           
 void setChildrenRequests(java.util.List<ActionRequestValue> childrenRequests)
           
 void setCreateDate(java.sql.Timestamp createDate)
           
 void setCreateDateString(java.lang.String createDateString)
           
 void setCurrentIndicator(java.lang.Boolean currentIndicator)
           
 void setDelegationType(java.lang.String delegatePolicy)
           
 void setDisplayStatus(java.lang.String displayStatus)
           
 void setDocVersion(java.lang.Integer docVersion)
           
 void setForceAction(java.lang.Boolean forceAction)
           
 void setGroupId(java.lang.String groupId)
           
 void setJrfVerNbr(java.lang.Integer jrfVerNbr)
           
 void setNodeInstance(RouteNodeInstance nodeInstance)
           
 void setParentActionRequest(ActionRequestValue parentActionRequest)
           
 void setParentActionRequestId(java.lang.Long parentActionRequestId)
           
 void setPrincipalId(java.lang.String principalId)
           
 void setPriority(java.lang.Integer priority)
           
 void setQualifiedRoleName(java.lang.String roleName)
           
 void setQualifiedRoleNameLabel(java.lang.String qualifiedRoleNameLabel)
           
 void setRecipientTypeCd(java.lang.String recipientTypeCd)
           
 void setRequestLabel(java.lang.String requestLabel)
           
 void setResolveResponsibility(boolean resolveResponsibility)
           
 void setResponsibilityDesc(java.lang.String responsibilityDesc)
           
 void setResponsibilityId(java.lang.Long responsibilityId)
           
 void setRoleName(java.lang.String roleName)
           
 void setRouteHeader(DocumentRouteHeaderValue routeHeader)
           
 void setRouteHeaderId(java.lang.Long routeHeaderId)
           
 void setRouteLevel(java.lang.Integer routeLevel)
           
 void setRuleBaseValuesId(java.lang.Long ruleBaseValuesId)
           
 void setStatus(java.lang.String status)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionRequestValue

public ActionRequestValue()
Method Detail

beforeInsert

public void beforeInsert()

getGroup

public org.kuali.rice.kim.bo.Group getGroup()

getRouteLevelName

public java.lang.String getRouteLevelName()

isUserRequest

public boolean isUserRequest()

getPrincipal

public org.kuali.rice.kim.bo.entity.KimPrincipal getPrincipal()

getPerson

public org.kuali.rice.kim.bo.Person getPerson()

getDisplayName

public java.lang.String getDisplayName()

getRecipient

public Recipient getRecipient()

isPending

public boolean isPending()

getRouteHeader

public DocumentRouteHeaderValue getRouteHeader()

getStatusLabel

public java.lang.String getStatusLabel()

getActionRequestedLabel

public java.lang.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 java.lang.String getActionRequested()
Returns:
Returns the actionRequested.

setActionRequested

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

getActionRequestId

public java.lang.Long getActionRequestId()
Returns:
Returns the actionRequestId.

setActionRequestId

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

getActionTakenId

public java.lang.Long getActionTakenId()
Returns:
Returns the actionTakenId.

setActionTakenId

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

getAnnotation

public java.lang.String getAnnotation()
Returns:
Returns the annotation.

setAnnotation

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

getCreateDate

public java.sql.Timestamp getCreateDate()
Returns:
Returns the createDate.

setCreateDate

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

getDocVersion

public java.lang.Integer getDocVersion()
Returns:
Returns the docVersion.

setDocVersion

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

getPrincipalId

public java.lang.String getPrincipalId()

setPrincipalId

public void setPrincipalId(java.lang.String principalId)

getForceAction

public java.lang.Boolean getForceAction()
Returns:
Returns the forceAction.

setForceAction

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

getJrfVerNbr

public java.lang.Integer getJrfVerNbr()
Returns:
Returns the jrfVerNbr.

setJrfVerNbr

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

getPriority

public java.lang.Integer getPriority()
Returns:
Returns the priority.

setPriority

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

getRecipientTypeCd

public java.lang.String getRecipientTypeCd()
Returns:
Returns the recipientTypeCd.

setRecipientTypeCd

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

getResponsibilityDesc

public java.lang.String getResponsibilityDesc()
Returns:
Returns the responsibilityDesc.

setResponsibilityDesc

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

getResponsibilityId

public java.lang.Long getResponsibilityId()
Returns:
Returns the responsibilityId.

setResponsibilityId

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

getRouteHeaderId

public java.lang.Long getRouteHeaderId()
Returns:
Returns the routeHeaderId.

setRouteHeaderId

public void setRouteHeaderId(java.lang.Long routeHeaderId)

getRouteLevel

public java.lang.Integer getRouteLevel()

setRouteLevel

public void setRouteLevel(java.lang.Integer routeLevel)

getStatus

public java.lang.String getStatus()

setStatus

public void setStatus(java.lang.String status)

getGroupId

public java.lang.String getGroupId()

setGroupId

public void setGroupId(java.lang.String groupId)

copy

public java.lang.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(java.lang.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(java.lang.String code1,
                                    java.lang.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(java.lang.String type1,
                                       java.lang.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(java.lang.String type1,
                                        java.lang.String type2)

getActionItems

public java.util.List<ActionItem> getActionItems()

setActionItems

public void setActionItems(java.util.List<ActionItem> actionItems)

getCurrentIndicator

public java.lang.Boolean getCurrentIndicator()

setCurrentIndicator

public void setCurrentIndicator(java.lang.Boolean currentIndicator)

getParentActionRequestId

public java.lang.Long getParentActionRequestId()

setParentActionRequestId

public void setParentActionRequestId(java.lang.Long parentActionRequestId)

getParentActionRequest

public ActionRequestValue getParentActionRequest()

setParentActionRequest

public void setParentActionRequest(ActionRequestValue parentActionRequest)

getChildrenRequests

public java.util.List<ActionRequestValue> getChildrenRequests()

setChildrenRequests

public void setChildrenRequests(java.util.List<ActionRequestValue> childrenRequests)

getQualifiedRoleName

public java.lang.String getQualifiedRoleName()

setQualifiedRoleName

public void setQualifiedRoleName(java.lang.String roleName)

getDelegationType

public java.lang.String getDelegationType()

setDelegationType

public void setDelegationType(java.lang.String delegatePolicy)

getRoleName

public java.lang.String getRoleName()

setRoleName

public void setRoleName(java.lang.String roleName)

getApprovePolicy

public java.lang.String getApprovePolicy()

setApprovePolicy

public void setApprovePolicy(java.lang.String requestType)

getHasApprovePolicy

public boolean getHasApprovePolicy()

isDeactivated

public boolean isDeactivated()

hasParent

public boolean hasParent()

hasChild

public boolean hasChild(ActionRequestValue actionRequest)

getDisplayStatus

public java.lang.String getDisplayStatus()

setDisplayStatus

public void setDisplayStatus(java.lang.String displayStatus)

getQualifiedRoleNameLabel

public java.lang.String getQualifiedRoleNameLabel()

setQualifiedRoleNameLabel

public void setQualifiedRoleNameLabel(java.lang.String qualifiedRoleNameLabel)

getCreateDateString

public java.lang.String getCreateDateString()

setCreateDateString

public void setCreateDateString(java.lang.String createDateString)

getNodeInstance

public RouteNodeInstance getNodeInstance()

getPotentialNodeName

public java.lang.String getPotentialNodeName()

setNodeInstance

public void setNodeInstance(RouteNodeInstance nodeInstance)

getRecipientTypeLabel

public java.lang.String getRecipientTypeLabel()

getRuleBaseValues

public RuleBaseValues getRuleBaseValues()

getRuleBaseValuesId

public java.lang.Long getRuleBaseValuesId()

setRuleBaseValuesId

public void setRuleBaseValuesId(java.lang.Long ruleBaseValuesId)

isPrimaryDelegator

public boolean isPrimaryDelegator()

getPrimaryDelegateRequests

public java.util.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRequestLabel

public java.lang.String getRequestLabel()

setRequestLabel

public void setRequestLabel(java.lang.String requestLabel)

getGroupName

public java.lang.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.