|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KualiWorkflowDocument
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 |
blanketApprove(String annotation,
Integer routeLevel)
|
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()
|
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 |
getInitiatorNetworkId()
Deprecated. use getInitiatorPrincipalId instead, invocation of this method forces a lookup of the principal name which may be inefficient |
String |
getInitiatorPrincipalId()
|
String[] |
getNodeNames()
Returns the names of the nodes that the document is currently at. |
String |
getRoutedByPrincipalId()
|
String |
getRoutedByUserNetworkId()
Deprecated. use getRoutedByPrincipalId instead, invocation of this method forces a lookup of the principal name which may be inefficient |
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)
|
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)
|
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 |
Method Detail |
---|
String getApplicationContent()
void setApplicationContent(String applicationContent)
void clearAttributeContent()
String getAttributeContent()
void addAttributeDefinition(WorkflowAttributeDefinitionDTO attributeDefinition)
void removeAttributeDefinition(WorkflowAttributeDefinitionDTO attributeDefinition)
void clearAttributeDefinitions()
WorkflowAttributeDefinitionDTO[] getAttributeDefinitions()
void addSearchableDefinition(WorkflowAttributeDefinitionDTO searchableDefinition)
void removeSearchableDefinition(WorkflowAttributeDefinitionDTO searchableDefinition)
void clearSearchableDefinitions()
WorkflowAttributeDefinitionDTO[] getSearchableDefinitions()
RouteHeaderDTO getRouteHeader()
Long getRouteHeaderId() throws WorkflowException
WorkflowException
void setAppDocId(String appDocId)
String getAppDocId()
String getInitiatorNetworkId()
String getRoutedByUserNetworkId()
String getInitiatorPrincipalId()
String getRoutedByPrincipalId()
String getTitle()
void saveDocument(String annotation) throws WorkflowException
WorkflowException
void routeDocument(String annotation) throws WorkflowException
WorkflowException
void disapprove(String annotation) throws WorkflowException
WorkflowException
void approve(String annotation) throws WorkflowException
WorkflowException
void superUserApprove(String annotation) throws WorkflowException
WorkflowException
void superUserActionRequestApprove(Long actionRequestId, String annotation) throws WorkflowException
WorkflowException
void superUserCancel(String annotation) throws WorkflowException
WorkflowException
void superUserDisapprove(String annotation) throws WorkflowException
WorkflowException
void cancel(String annotation) throws WorkflowException
WorkflowException
void blanketApprove(String annotation) throws WorkflowException
WorkflowException
void blanketApprove(String annotation, Integer routeLevel) throws WorkflowException
WorkflowException
void saveRoutingData() throws WorkflowException
WorkflowException
void acknowledge(String annotation) throws WorkflowException
WorkflowException
void fyi() throws WorkflowException
WorkflowException
void delete() throws WorkflowException
WorkflowException
void refreshContent() throws WorkflowException
WorkflowException
void adHocRouteDocumentToPrincipal(String actionRequested, String routeTypeName, String annotation, String principalId, String responsibilityDesc, boolean forceAction) throws WorkflowException
WorkflowException
void adHocRouteDocumentToGroup(String actionRequested, String routeTypeName, String annotation, String groupId, String responsibilityDesc, boolean forceAction) throws WorkflowException
WorkflowException
void adHocRouteDocumentToPrincipal(String actionRequested, String routeTypeName, String annotation, String principalId, String responsibilityDesc, boolean forceAction, String actionRequestLabel) throws WorkflowException
WorkflowException
void adHocRouteDocumentToGroup(String actionRequested, String routeTypeName, String annotation, String groupId, String responsibilityDesc, boolean forceAction, String actionRequestLabel) throws WorkflowException
WorkflowException
void setTitle(String title) throws WorkflowException
WorkflowException
String getDocumentType()
boolean isAdHocRequested()
boolean isAcknowledgeRequested()
boolean isApprovalRequested()
boolean isCompletionRequested()
boolean isFYIRequested()
boolean isBlanketApproveCapable()
boolean isStandardSaveAllowed()
Integer getDocRouteLevel()
void complete(String annotation) throws WorkflowException
annotation
-
InvalidActionTakenException
ResourceUnavailableException
WorkflowException
void returnToPreviousNode(String annotation, String nodeName) throws WorkflowException
annotation
- the message to log for the actionnodeName
- the node to return to
WorkflowException
- in case an error occurs returning to previous nodeWorkflowDocumentActions#returnDocumentToPreviousNode(UserIdDTO, RouteHeaderDTO, ReturnPointDTO, String)
void returnToPreviousNode(String annotation, ReturnPointDTO returnPoint) throws WorkflowException
annotation
- the message to log for the actionReturnPointDTO
- the node to return to
WorkflowException
- in case an error occurs returning to previous nodeWorkflowDocumentActions#returnDocumentToPreviousNode(UserIdDTO, RouteHeaderDTO, ReturnPointDTO, String)
void returnToPreviousRouteLevel(String annotation, Integer destRouteLevel) throws WorkflowException
annotation
- destRouteLevel
-
WorkflowException
InvalidActionTakenException
ResourceUnavailableException
void logDocumentAction(String annotation) throws WorkflowException
WorkflowException
boolean stateIsInitiated()
boolean stateIsSaved()
boolean stateIsEnroute()
boolean stateIsFinal()
boolean stateIsException()
boolean stateIsCanceled()
boolean stateIsDisapproved()
boolean stateIsApproved()
boolean stateIsProcessed()
String getStatusDisplayValue()
Timestamp getCreateDate()
boolean userIsInitiator(Person user)
user
-
boolean userIsRoutedByUser(Person user)
user
-
String[] getNodeNames() throws WorkflowException
WorkflowException
String getCurrentRouteNodeNames()
DocumentRouteHeaderValue.CURRENT_ROUTE_NODE_NAME_DELIMITER
Set<Person> getAllPriorApprovers() throws WorkflowException
WorkflowException
void setReceiveFutureRequests() throws WorkflowException
WorkflowException
void setDoNotReceiveFutureRequests() throws WorkflowException
WorkflowException
void setClearFutureRequests() throws WorkflowException
WorkflowException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |