Package org.kuali.rice.kew.actionrequest
Class ActionRequestValue
java.lang.Object
org.kuali.rice.kew.actionrequest.ActionRequestValue
- All Implemented Interfaces:
Serializable
Entity which represents a request for action against a document. Contains references to children/parent if a member of a graph.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompareActionCode(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 invalid input: '<' acknowledge invalid input: '<' (approve == complete)static intcompareDelegationType(org.kuali.rice.core.api.delegation.DelegationType type1, org.kuali.rice.core.api.delegation.DelegationType type2) static intcompareRecipientType(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 2static ActionRequestValuefrom(org.kuali.rice.kew.api.action.ActionRequest actionRequest) TODO - this javadoc copied from DTOConverter, needs to be updated!static ActionRequestValuefrom(org.kuali.rice.kew.api.action.ActionRequest actionRequest, DTOConverter.RouteNodeInstanceLoader routeNodeInstanceLoader) Converts an ActionRequestVO to an ActionRequest.The create date reflects the creation date for items in theActionRequestStatus.INITIALIZEDstate.org.kuali.rice.core.api.delegation.DelegationTypeorg.kuali.rice.kim.api.group.GroupgetGroup()booleanorg.kuali.rice.kim.api.identity.PersonUsed 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.api.identity.principal.PrincipalbooleanbooleanhasChild(ActionRequestValue actionRequest) booleanbooleanbooleanisActive()booleanbooleanbooleanbooleanbooleanbooleanisDone()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisRecipientRoutedRequest(String principalId) Determines whether the specified principalId is in the recipient graph of this action requestbooleanisRecipientRoutedRequest(Recipient recipient) booleanbooleanbooleanbooleanvoidsetActionRequested(String actionRequested) voidsetActionRequestId(String actionRequestId) voidsetActionTaken(ActionTakenValue actionTaken) voidsetAnnotation(String annotation) voidsetApprovePolicy(String requestType) voidsetChildrenRequests(List<ActionRequestValue> childrenRequests) voidsetCreateDate(Timestamp createDate) voidsetCreateDateString(String createDateString) voidsetCurrentIndicator(Boolean currentIndicator) voidsetDelegationType(org.kuali.rice.core.api.delegation.DelegationType delegationPolicy) voidsetDelegationTypeCode(String delegationTypeCode) voidsetDisplayStatus(String displayStatus) voidsetDocumentId(String documentId) voidsetDocVersion(Integer docVersion) voidsetForceAction(Boolean forceAction) voidsetGroupId(String groupId) voidsetJrfVerNbr(Integer jrfVerNbr) voidsetNodeInstance(RouteNodeInstance nodeInstance) voidsetParentActionRequest(ActionRequestValue parentActionRequest) voidsetPrincipalId(String principalId) voidsetPriority(Integer priority) voidsetQualifiedRoleName(String roleName) voidsetQualifiedRoleNameLabel(String qualifiedRoleNameLabel) voidsetRecipientTypeCd(String recipientTypeCd) voidsetRequestLabel(String requestLabel) voidsetResolveResponsibility(boolean resolveResponsibility) voidsetResponsibilityDesc(String responsibilityDesc) voidsetResponsibilityId(String responsibilityId) voidsetRoleName(String roleName) voidsetRouteHeader(DocumentRouteHeaderValue routeHeader) voidsetRouteLevel(Integer routeLevel) voidsetRuleBaseValuesId(String ruleBaseValuesId) voidsetSimulatedActionItems(List<ActionItem> simulatedActionItems) voidstatic org.kuali.rice.kew.api.action.ActionRequestto(ActionRequestValue actionRequestBo) toString()
-
Constructor Details
-
ActionRequestValue
public ActionRequestValue()
-
-
Method Details
-
getGroup
public org.kuali.rice.kim.api.group.Group getGroup() -
getRouteLevelName
-
isUserRequest
public boolean isUserRequest() -
getPrincipal
public org.kuali.rice.kim.api.identity.principal.Principal getPrincipal() -
getPerson
public org.kuali.rice.kim.api.identity.Person getPerson() -
getDisplayName
-
getRecipient
-
isPending
public boolean isPending() -
getStatusLabel
-
getActionRequestedLabel
-
getActionTaken
- Returns:
- Returns the actionTaken.
-
setActionTaken
- Parameters:
actionTaken- The actionTaken to set.
-
getActionRequested
- Returns:
- Returns the actionRequested.
-
setActionRequested
- Parameters:
actionRequested- The actionRequested to set.
-
getActionRequestId
- Returns:
- Returns the actionRequestId.
-
setActionRequestId
- Parameters:
actionRequestId- The actionRequestId to set.
-
getActionTakenId
- Returns:
- Returns the actionTakenId.
-
getAnnotation
- Returns:
- Returns the annotation.
-
setAnnotation
- Parameters:
annotation- The annotation to set.
-
getCreateDate
The create date reflects the creation date for items in theActionRequestStatus.INITIALIZEDstate. For requests in theActionRequestStatus.ACTIVATEDstate, the create date reflects the date the request was activated. For requests in theActionRequestStatus.DONEstate, the create date reflects the date the state previous to the DONE state was entered.- Returns:
- Returns the createDate.
-
setCreateDate
- Parameters:
createDate- The createDate to set.
-
getDocVersion
- Returns:
- Returns the docVersion.
-
setDocVersion
- Parameters:
docVersion- The docVersion to set.
-
getPrincipalId
-
setPrincipalId
-
getForceAction
- Returns:
- Returns the forceAction.
-
setForceAction
- Parameters:
forceAction- The forceAction to set.
-
getJrfVerNbr
- Returns:
- Returns the jrfVerNbr.
-
setJrfVerNbr
- Parameters:
jrfVerNbr- The jrfVerNbr to set.
-
getPriority
- Returns:
- Returns the priority.
-
setPriority
- Parameters:
priority- The priority to set.
-
getRecipientTypeCd
- Returns:
- Returns the recipientTypeCd.
-
setRecipientTypeCd
- Parameters:
recipientTypeCd- The recipientTypeCd to set.
-
getResponsibilityDesc
- Returns:
- Returns the responsibilityDesc.
-
setResponsibilityDesc
- Parameters:
responsibilityDesc- The responsibilityDesc to set.
-
getResponsibilityId
- Returns:
- Returns the responsibilityId.
-
setResponsibilityId
- Parameters:
responsibilityId- The responsibilityId to set.
-
getDocumentId
- Returns:
- Returns the documentId.
-
setDocumentId
-
getRouteLevel
-
setRouteLevel
-
getStatus
-
setStatus
-
getGroupId
-
setGroupId
-
isInitialized
public boolean isInitialized() -
isActive
public boolean isActive() -
isApproveOrCompleteRequest
public boolean isApproveOrCompleteRequest() -
isDone
public boolean isDone() -
isReviewerUser
public boolean isReviewerUser() -
isRecipientRoutedRequest
Determines whether the specified principalId is in the recipient graph of this action request- Parameters:
principalId- the principal id to check- Returns:
- whether the specified principalId is in the recipient graph of this action request
-
isRecipientRoutedRequest
-
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
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 invalid input: '<' acknowledge invalid input: '<' (approve == complete)- Parameters:
code1-code2-completeAndApproveTheSame-- Returns:
- -1 if less than, 0 if equal, 1 if greater than
-
compareRecipientType
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(org.kuali.rice.core.api.delegation.DelegationType type1, org.kuali.rice.core.api.delegation.DelegationType type2) -
getActionItems
-
getSimulatedActionItems
-
setSimulatedActionItems
-
getCurrentIndicator
-
setCurrentIndicator
-
getParentActionRequestId
-
getParentActionRequest
-
setParentActionRequest
-
getChildrenRequests
-
setChildrenRequests
-
getQualifiedRoleName
-
setQualifiedRoleName
-
getDelegationType
public org.kuali.rice.core.api.delegation.DelegationType getDelegationType() -
setDelegationType
public void setDelegationType(org.kuali.rice.core.api.delegation.DelegationType delegationPolicy) -
getDelegationTypeCode
-
setDelegationTypeCode
-
getRoleName
-
setRoleName
-
getApprovePolicy
-
setApprovePolicy
-
getHasApprovePolicy
public boolean getHasApprovePolicy() -
isDeactivated
public boolean isDeactivated() -
hasParent
public boolean hasParent() -
hasChild
-
getDisplayStatus
-
setDisplayStatus
-
getQualifiedRoleNameLabel
-
setQualifiedRoleNameLabel
-
getCreateDateString
-
setCreateDateString
-
getNodeInstance
-
getPotentialNodeName
-
setNodeInstance
-
getRecipientTypeLabel
-
getRuleBaseValues
-
getRuleBaseValuesId
-
setRuleBaseValuesId
-
isPrimaryDelegator
public boolean isPrimaryDelegator() -
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
-
getRequestLabel
-
setRequestLabel
-
getGroupName
-
getResolveResponsibility
public boolean getResolveResponsibility()- Returns:
- the resolveResponsibility
-
setResolveResponsibility
public void setResolveResponsibility(boolean resolveResponsibility) - Parameters:
resolveResponsibility- the resolveResponsibility to set
-
getRouteHeader
-
setRouteHeader
-
deepCopy
-
to
-
from
TODO - this javadoc copied from DTOConverter, needs to be updated! Converts an ActionRequestVO to an ActionRequest. The ActionRequestDTO passed in must be the root action request in the graph, otherwise an IllegalArgumentException is thrown. This is to avoid potentially sticky issues with circular references in the conversion. NOTE: This method's primary purpose is to convert ActionRequestVOs returned from a RouteModule. Incidentally, the DTO's returned from the route module will be lacking some information (like the node instance) so no attempts are made to convert this data since further initialization is handled by a higher level component (namely ActionRequestService.initializeActionRequestGraph). -
from
public static ActionRequestValue from(org.kuali.rice.kew.api.action.ActionRequest actionRequest, DTOConverter.RouteNodeInstanceLoader routeNodeInstanceLoader) Converts an ActionRequestVO to an ActionRequest. The ActionRequestDTO passed in must be the root action request in the graph, otherwise an IllegalArgumentException is thrown. This is to avoid potentially sticky issues with circular references in the conversion.- Parameters:
routeNodeInstanceLoader- a service that will provide routeNodeInstanceS based on their IDs.
-