|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.workflow.service.impl.KualiWorkflowDocumentImpl
public class KualiWorkflowDocumentImpl
Field Summary | |
---|---|
private WorkflowDocument |
workflowDocument
|
Constructor Summary | |
---|---|
KualiWorkflowDocumentImpl(String principalId,
Long routeHeaderId)
|
|
KualiWorkflowDocumentImpl(String principalId,
String documentType)
|
Method Summary | |
---|---|
void |
acknowledge(String annotation)
|
void |
addAttributeDefinition(WorkflowAttributeDefinitionDTO attributeDefinition)
Adds an attribute definition which defines creation parameters for a WorkflowAttribute implementation. |
void |
addSearchableDefinition(WorkflowAttributeDefinitionDTO searchableDefinition)
Adds a searchable attribute definition which defines creation parameters for a SearchableAttribute implementation. |
void |
adHocRouteDocumentToGroup(String actionRequested,
String routeTypeName,
String annotation,
String groupId,
String responsibilityDesc,
boolean forceAction)
|
void |
adHocRouteDocumentToGroup(String actionRequested,
String routeTypeName,
String annotation,
String groupId,
String responsibilityDesc,
boolean forceAction,
String actionRequestLabel)
|
void |
adHocRouteDocumentToPrincipal(String actionRequested,
String routeTypeName,
String annotation,
String principalId,
String responsibilityDesc,
boolean forceAction)
|
void |
adHocRouteDocumentToPrincipal(String actionRequested,
String routeTypeName,
String annotation,
String principalId,
String responsibilityDesc,
boolean forceAction,
String actionRequestLabel)
|
void |
approve(String annotation)
|
void |
blanketApprove(String annotation)
|
void |
cancel(String annotation)
|
void |
clearAttributeContent()
Clears all attribute document content from the document. |
void |
clearAttributeDefinitions()
|
void |
clearSearchableDefinitions()
|
void |
complete(String annotation)
|
void |
delete()
|
void |
disapprove(String annotation)
|
void |
fyi()
|
Set<Person> |
getAllPriorApprovers()
This method returns a set of all approvers of this document. |
String |
getAppDocId()
|
String |
getApplicationContent()
Returns the application specific document content. |
String |
getAttributeContent()
Returns the attribute-generated document content. |
WorkflowAttributeDefinitionDTO[] |
getAttributeDefinitions()
|
Timestamp |
getCreateDate()
|
String |
getCurrentRouteNodeNames()
Returns the current node names of the document delimited by the constant: DocumentRouteHeaderValue#CURRENT_ROUTE_NODE_NAME_DELIMITER |
Integer |
getDocRouteLevel()
|
String |
getDocumentType()
|
String |
getInitiatorPrincipalId()
|
String[] |
getNodeNames()
Returns the names of the nodes that the document is currently at. |
String |
getRoutedByPrincipalId()
|
RouteHeaderDTO |
getRouteHeader()
|
Long |
getRouteHeaderId()
|
WorkflowAttributeDefinitionDTO[] |
getSearchableDefinitions()
|
String |
getStatusDisplayValue()
|
String |
getTitle()
|
boolean |
isAcknowledgeRequested()
Returns true if the user currently has this document in their Action List with an Acknowledge Request. |
boolean |
isAdHocRequested()
This method determines whether workflowDocument.getUserId() currently has an ad hoc request is his/her action list |
boolean |
isApprovalRequested()
Returns true if the user currently has this document in their Action List with an Approval Request. |
boolean |
isBlanketApproveCapable()
Returns true if the user is authorized to Blanket Approve this document. |
boolean |
isCompletionRequested()
Returns true if the user currently has this document in their Action List with an Completion Request. |
boolean |
isFYIRequested()
Returns true if the user currently has this document in their Action List with an FYI. |
boolean |
isStandardSaveAllowed()
Checks to see if this document is allowed to have a standard 'save' performed |
void |
logDocumentAction(String annotation)
|
void |
refreshContent()
|
void |
removeAttributeDefinition(WorkflowAttributeDefinitionDTO attributeDefinition)
|
void |
removeSearchableDefinition(WorkflowAttributeDefinitionDTO searchableDefinition)
|
void |
returnToPreviousNode(String annotation,
ReturnPointDTO returnPoint)
Performs the 'returnToPrevious' action on the document this WorkflowDocument represents. |
void |
returnToPreviousNode(String annotation,
String nodeName)
Performs the 'returnToPrevious' action on the document this WorkflowDocument represents. |
void |
returnToPreviousRouteLevel(String annotation,
Integer destRouteLevel)
Deprecated. |
void |
routeDocument(String annotation)
|
void |
saveDocument(String annotation)
|
void |
saveRoutingData()
|
void |
setAppDocId(String appDocId)
|
void |
setApplicationContent(String applicationContent)
Sets the application specific document content. |
void |
setClearFutureRequests()
|
void |
setDoNotReceiveFutureRequests()
|
void |
setReceiveFutureRequests()
|
void |
setTitle(String title)
|
boolean |
stateIsApproved()
Indicates if the document is in the approved state or not. |
boolean |
stateIsCanceled()
Indicates if the document is in the canceled state or not. |
boolean |
stateIsDisapproved()
Indicates if the document is in the disapproved state or not. |
boolean |
stateIsEnroute()
Indicates if the document is in the enroute state or not. |
boolean |
stateIsException()
Indicates if the document is in the exception state or not. |
boolean |
stateIsFinal()
Indicates if the document is in the final state or not. |
boolean |
stateIsInitiated()
Indicates if the document is in the initated state or not. |
boolean |
stateIsProcessed()
Indicates if the document is in the processed state or not. |
boolean |
stateIsSaved()
Indicates if the document is in the saved state or not. |
void |
superUserActionRequestApprove(Long actionRequestId,
String annotation)
|
void |
superUserApprove(String annotation)
|
void |
superUserCancel(String annotation)
|
void |
superUserDisapprove(String annotation)
|
String |
toString()
|
boolean |
userIsInitiator(Person user)
Returns true if the principalName of the given KualiUser matches the initiatorNetworkId of this document |
boolean |
userIsRoutedByUser(Person user)
Returns true if the principalName of the given KualiUser matches the routedByUserNetworkId of this document |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private WorkflowDocument workflowDocument
Constructor Detail |
---|
public KualiWorkflowDocumentImpl(String principalId, String documentType) throws WorkflowException
WorkflowException
public KualiWorkflowDocumentImpl(String principalId, Long routeHeaderId) throws WorkflowException
WorkflowException
Method Detail |
---|
public String getApplicationContent()
getApplicationContent
in interface KualiWorkflowDocument
public void setApplicationContent(String applicationContent)
setApplicationContent
in interface KualiWorkflowDocument
public void clearAttributeContent()
clearAttributeContent
in interface KualiWorkflowDocument
public String getAttributeContent()
getAttributeContent
in interface KualiWorkflowDocument
public void addAttributeDefinition(WorkflowAttributeDefinitionDTO attributeDefinition)
addAttributeDefinition
in interface KualiWorkflowDocument
public void removeAttributeDefinition(WorkflowAttributeDefinitionDTO attributeDefinition)
removeAttributeDefinition
in interface KualiWorkflowDocument
public void clearAttributeDefinitions()
clearAttributeDefinitions
in interface KualiWorkflowDocument
public WorkflowAttributeDefinitionDTO[] getAttributeDefinitions()
getAttributeDefinitions
in interface KualiWorkflowDocument
public void addSearchableDefinition(WorkflowAttributeDefinitionDTO searchableDefinition)
addSearchableDefinition
in interface KualiWorkflowDocument
public void removeSearchableDefinition(WorkflowAttributeDefinitionDTO searchableDefinition)
removeSearchableDefinition
in interface KualiWorkflowDocument
public void clearSearchableDefinitions()
clearSearchableDefinitions
in interface KualiWorkflowDocument
public WorkflowAttributeDefinitionDTO[] getSearchableDefinitions()
getSearchableDefinitions
in interface KualiWorkflowDocument
public RouteHeaderDTO getRouteHeader()
getRouteHeader
in interface KualiWorkflowDocument
public Long getRouteHeaderId() throws WorkflowException
getRouteHeaderId
in interface KualiWorkflowDocument
WorkflowException
public void setAppDocId(String appDocId)
setAppDocId
in interface KualiWorkflowDocument
public String getAppDocId()
getAppDocId
in interface KualiWorkflowDocument
public String getTitle()
getTitle
in interface KualiWorkflowDocument
public String getInitiatorPrincipalId()
getInitiatorPrincipalId
in interface KualiWorkflowDocument
public String getRoutedByPrincipalId()
getRoutedByPrincipalId
in interface KualiWorkflowDocument
public void saveDocument(String annotation) throws WorkflowException
saveDocument
in interface KualiWorkflowDocument
WorkflowException
public void routeDocument(String annotation) throws WorkflowException
routeDocument
in interface KualiWorkflowDocument
WorkflowException
public void disapprove(String annotation) throws WorkflowException
disapprove
in interface KualiWorkflowDocument
WorkflowException
public void approve(String annotation) throws WorkflowException
approve
in interface KualiWorkflowDocument
WorkflowException
public void superUserApprove(String annotation) throws WorkflowException
superUserApprove
in interface KualiWorkflowDocument
WorkflowException
public void superUserActionRequestApprove(Long actionRequestId, String annotation) throws WorkflowException
superUserActionRequestApprove
in interface KualiWorkflowDocument
WorkflowException
public void superUserCancel(String annotation) throws WorkflowException
superUserCancel
in interface KualiWorkflowDocument
WorkflowException
public void superUserDisapprove(String annotation) throws WorkflowException
superUserDisapprove
in interface KualiWorkflowDocument
WorkflowException
public void cancel(String annotation) throws WorkflowException
cancel
in interface KualiWorkflowDocument
WorkflowException
public void blanketApprove(String annotation) throws WorkflowException
blanketApprove
in interface KualiWorkflowDocument
WorkflowException
public void saveRoutingData() throws WorkflowException
saveRoutingData
in interface KualiWorkflowDocument
WorkflowException
public void acknowledge(String annotation) throws WorkflowException
acknowledge
in interface KualiWorkflowDocument
WorkflowException
public void fyi() throws WorkflowException
fyi
in interface KualiWorkflowDocument
WorkflowException
public void delete() throws WorkflowException
delete
in interface KualiWorkflowDocument
WorkflowException
public void refreshContent() throws WorkflowException
refreshContent
in interface KualiWorkflowDocument
WorkflowException
public void adHocRouteDocumentToPrincipal(String actionRequested, String routeTypeName, String annotation, String principalId, String responsibilityDesc, boolean forceAction) throws WorkflowException
adHocRouteDocumentToPrincipal
in interface KualiWorkflowDocument
WorkflowException
public void adHocRouteDocumentToGroup(String actionRequested, String routeTypeName, String annotation, String groupId, String responsibilityDesc, boolean forceAction) throws WorkflowException
adHocRouteDocumentToGroup
in interface KualiWorkflowDocument
WorkflowException
public void adHocRouteDocumentToPrincipal(String actionRequested, String routeTypeName, String annotation, String principalId, String responsibilityDesc, boolean forceAction, String actionRequestLabel) throws WorkflowException
adHocRouteDocumentToPrincipal
in interface KualiWorkflowDocument
WorkflowException
public void adHocRouteDocumentToGroup(String actionRequested, String routeTypeName, String annotation, String groupId, String responsibilityDesc, boolean forceAction, String actionRequestLabel) throws WorkflowException
adHocRouteDocumentToGroup
in interface KualiWorkflowDocument
WorkflowException
public void setTitle(String title) throws WorkflowException
setTitle
in interface KualiWorkflowDocument
WorkflowException
public String getDocumentType()
getDocumentType
in interface KualiWorkflowDocument
public boolean isAdHocRequested()
KualiWorkflowDocument
isAdHocRequested
in interface KualiWorkflowDocument
KualiWorkflowDocument.isAdHocRequested()
public boolean isAcknowledgeRequested()
KualiWorkflowDocument
isAcknowledgeRequested
in interface KualiWorkflowDocument
KualiWorkflowDocument.isAcknowledgeRequested()
public boolean isApprovalRequested()
KualiWorkflowDocument
isApprovalRequested
in interface KualiWorkflowDocument
KualiWorkflowDocument.isApprovalRequested()
public boolean isCompletionRequested()
KualiWorkflowDocument
isCompletionRequested
in interface KualiWorkflowDocument
KualiWorkflowDocument.isCompletionRequested()
public boolean isFYIRequested()
KualiWorkflowDocument
isFYIRequested
in interface KualiWorkflowDocument
KualiWorkflowDocument.isFYIRequested()
public boolean isBlanketApproveCapable()
KualiWorkflowDocument
isBlanketApproveCapable
in interface KualiWorkflowDocument
KualiWorkflowDocument.isBlanketApproveCapable()
public Integer getDocRouteLevel()
getDocRouteLevel
in interface KualiWorkflowDocument
public void complete(String annotation) throws WorkflowException
complete
in interface KualiWorkflowDocument
annotation
-
InvalidActionTakenException
ResourceUnavailableException
WorkflowException
public void returnToPreviousNode(String annotation, String nodeName) throws WorkflowException
returnToPreviousNode
in interface KualiWorkflowDocument
annotation
- the message to log for the actionnodeName
- the node to return to
WorkflowException
- in case an error occurs returning to previous nodeWorkflowDocumentActions.returnDocumentToPreviousNode(String, RouteHeaderDTO, ReturnPointDTO, String)
public void returnToPreviousNode(String annotation, ReturnPointDTO returnPoint) throws WorkflowException
returnToPreviousNode
in interface KualiWorkflowDocument
annotation
- the message to log for the actionReturnPointDTO
- the node to return to
WorkflowException
- in case an error occurs returning to previous nodeWorkflowDocumentActions.returnDocumentToPreviousNode(String, RouteHeaderDTO, ReturnPointDTO, String)
public void returnToPreviousRouteLevel(String annotation, Integer destRouteLevel) throws WorkflowException
returnToPreviousRouteLevel
in interface KualiWorkflowDocument
annotation
- destRouteLevel
-
WorkflowException
InvalidActionTakenException
ResourceUnavailableException
public void logDocumentAction(String annotation) throws WorkflowException
logDocumentAction
in interface KualiWorkflowDocument
WorkflowException
public boolean stateIsInitiated()
stateIsInitiated
in interface KualiWorkflowDocument
public boolean stateIsSaved()
stateIsSaved
in interface KualiWorkflowDocument
public boolean stateIsEnroute()
stateIsEnroute
in interface KualiWorkflowDocument
public boolean stateIsFinal()
stateIsFinal
in interface KualiWorkflowDocument
public boolean stateIsException()
stateIsException
in interface KualiWorkflowDocument
public boolean stateIsCanceled()
stateIsCanceled
in interface KualiWorkflowDocument
public boolean stateIsDisapproved()
stateIsDisapproved
in interface KualiWorkflowDocument
public boolean stateIsApproved()
stateIsApproved
in interface KualiWorkflowDocument
public boolean stateIsProcessed()
stateIsProcessed
in interface KualiWorkflowDocument
public String getStatusDisplayValue()
getStatusDisplayValue
in interface KualiWorkflowDocument
public Timestamp getCreateDate()
getCreateDate
in interface KualiWorkflowDocument
public boolean userIsInitiator(Person user)
KualiWorkflowDocument
userIsInitiator
in interface KualiWorkflowDocument
org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#userIsInitiator(org.kuali.rice.kns.bo.user.KualiUser)
public boolean userIsRoutedByUser(Person user)
KualiWorkflowDocument
userIsRoutedByUser
in interface KualiWorkflowDocument
org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#userIsRoutedByUser(org.kuali.rice.kns.bo.user.KualiUser)
public String[] getNodeNames() throws WorkflowException
KualiWorkflowDocument
getNodeNames
in interface KualiWorkflowDocument
WorkflowException
public String getCurrentRouteNodeNames()
KualiWorkflowDocument
DocumentRouteHeaderValue#CURRENT_ROUTE_NODE_NAME_DELIMITER
getCurrentRouteNodeNames
in interface KualiWorkflowDocument
public boolean isStandardSaveAllowed()
KualiWorkflowDocument
isStandardSaveAllowed
in interface KualiWorkflowDocument
public void setReceiveFutureRequests() throws WorkflowException
setReceiveFutureRequests
in interface KualiWorkflowDocument
WorkflowException
public void setDoNotReceiveFutureRequests() throws WorkflowException
setDoNotReceiveFutureRequests
in interface KualiWorkflowDocument
WorkflowException
public void setClearFutureRequests() throws WorkflowException
setClearFutureRequests
in interface KualiWorkflowDocument
WorkflowException
public String toString()
toString
in class Object
Object.toString()
public Set<Person> getAllPriorApprovers() throws WorkflowException
KualiWorkflowDocument
getAllPriorApprovers
in interface KualiWorkflowDocument
WorkflowException
KualiWorkflowDocument.getAllPriorApprovers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |