| 
||||||||||
| 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 KualiWorkflowDocumentpublic void setApplicationContent(String applicationContent)
setApplicationContent in interface KualiWorkflowDocumentpublic void clearAttributeContent()
clearAttributeContent in interface KualiWorkflowDocumentpublic String getAttributeContent()
getAttributeContent in interface KualiWorkflowDocumentpublic void addAttributeDefinition(WorkflowAttributeDefinitionDTO attributeDefinition)
addAttributeDefinition in interface KualiWorkflowDocumentpublic void removeAttributeDefinition(WorkflowAttributeDefinitionDTO attributeDefinition)
removeAttributeDefinition in interface KualiWorkflowDocumentpublic void clearAttributeDefinitions()
clearAttributeDefinitions in interface KualiWorkflowDocumentpublic WorkflowAttributeDefinitionDTO[] getAttributeDefinitions()
getAttributeDefinitions in interface KualiWorkflowDocumentpublic void addSearchableDefinition(WorkflowAttributeDefinitionDTO searchableDefinition)
addSearchableDefinition in interface KualiWorkflowDocumentpublic void removeSearchableDefinition(WorkflowAttributeDefinitionDTO searchableDefinition)
removeSearchableDefinition in interface KualiWorkflowDocumentpublic void clearSearchableDefinitions()
clearSearchableDefinitions in interface KualiWorkflowDocumentpublic WorkflowAttributeDefinitionDTO[] getSearchableDefinitions()
getSearchableDefinitions in interface KualiWorkflowDocumentpublic RouteHeaderDTO getRouteHeader()
getRouteHeader in interface KualiWorkflowDocument
public Long getRouteHeaderId()
                      throws WorkflowException
getRouteHeaderId in interface KualiWorkflowDocumentWorkflowExceptionpublic void setAppDocId(String appDocId)
setAppDocId in interface KualiWorkflowDocumentpublic String getAppDocId()
getAppDocId in interface KualiWorkflowDocumentpublic String getTitle()
getTitle in interface KualiWorkflowDocumentpublic String getInitiatorPrincipalId()
getInitiatorPrincipalId in interface KualiWorkflowDocumentpublic String getRoutedByPrincipalId()
getRoutedByPrincipalId in interface KualiWorkflowDocument
public void saveDocument(String annotation)
                  throws WorkflowException
saveDocument in interface KualiWorkflowDocumentWorkflowException
public void routeDocument(String annotation)
                   throws WorkflowException
routeDocument in interface KualiWorkflowDocumentWorkflowException
public void disapprove(String annotation)
                throws WorkflowException
disapprove in interface KualiWorkflowDocumentWorkflowException
public void approve(String annotation)
             throws WorkflowException
approve in interface KualiWorkflowDocumentWorkflowException
public void superUserApprove(String annotation)
                      throws WorkflowException
superUserApprove in interface KualiWorkflowDocumentWorkflowException
public void superUserActionRequestApprove(Long actionRequestId,
                                          String annotation)
                                   throws WorkflowException
superUserActionRequestApprove in interface KualiWorkflowDocumentWorkflowException
public void superUserCancel(String annotation)
                     throws WorkflowException
superUserCancel in interface KualiWorkflowDocumentWorkflowException
public void superUserDisapprove(String annotation)
                         throws WorkflowException
superUserDisapprove in interface KualiWorkflowDocumentWorkflowException
public void cancel(String annotation)
            throws WorkflowException
cancel in interface KualiWorkflowDocumentWorkflowException
public void blanketApprove(String annotation)
                    throws WorkflowException
blanketApprove in interface KualiWorkflowDocumentWorkflowException
public void saveRoutingData()
                     throws WorkflowException
saveRoutingData in interface KualiWorkflowDocumentWorkflowException
public void acknowledge(String annotation)
                 throws WorkflowException
acknowledge in interface KualiWorkflowDocumentWorkflowException
public void fyi()
         throws WorkflowException
fyi in interface KualiWorkflowDocumentWorkflowException
public void delete()
            throws WorkflowException
delete in interface KualiWorkflowDocumentWorkflowException
public void refreshContent()
                    throws WorkflowException
refreshContent in interface KualiWorkflowDocumentWorkflowException
public void adHocRouteDocumentToPrincipal(String actionRequested,
                                          String routeTypeName,
                                          String annotation,
                                          String principalId,
                                          String responsibilityDesc,
                                          boolean forceAction)
                                   throws WorkflowException
adHocRouteDocumentToPrincipal in interface KualiWorkflowDocumentWorkflowException
public void adHocRouteDocumentToGroup(String actionRequested,
                                      String routeTypeName,
                                      String annotation,
                                      String groupId,
                                      String responsibilityDesc,
                                      boolean forceAction)
                               throws WorkflowException
adHocRouteDocumentToGroup in interface KualiWorkflowDocumentWorkflowException
public void adHocRouteDocumentToPrincipal(String actionRequested,
                                          String routeTypeName,
                                          String annotation,
                                          String principalId,
                                          String responsibilityDesc,
                                          boolean forceAction,
                                          String actionRequestLabel)
                                   throws WorkflowException
adHocRouteDocumentToPrincipal in interface KualiWorkflowDocumentWorkflowException
public void adHocRouteDocumentToGroup(String actionRequested,
                                      String routeTypeName,
                                      String annotation,
                                      String groupId,
                                      String responsibilityDesc,
                                      boolean forceAction,
                                      String actionRequestLabel)
                               throws WorkflowException
adHocRouteDocumentToGroup in interface KualiWorkflowDocumentWorkflowException
public void setTitle(String title)
              throws WorkflowException
setTitle in interface KualiWorkflowDocumentWorkflowExceptionpublic String getDocumentType()
getDocumentType in interface KualiWorkflowDocumentpublic boolean isAdHocRequested()
KualiWorkflowDocument
isAdHocRequested in interface KualiWorkflowDocumentKualiWorkflowDocument.isAdHocRequested()public boolean isAcknowledgeRequested()
KualiWorkflowDocument
isAcknowledgeRequested in interface KualiWorkflowDocumentKualiWorkflowDocument.isAcknowledgeRequested()public boolean isApprovalRequested()
KualiWorkflowDocument
isApprovalRequested in interface KualiWorkflowDocumentKualiWorkflowDocument.isApprovalRequested()public boolean isCompletionRequested()
KualiWorkflowDocument
isCompletionRequested in interface KualiWorkflowDocumentKualiWorkflowDocument.isCompletionRequested()public boolean isFYIRequested()
KualiWorkflowDocument
isFYIRequested in interface KualiWorkflowDocumentKualiWorkflowDocument.isFYIRequested()public boolean isBlanketApproveCapable()
KualiWorkflowDocument
isBlanketApproveCapable in interface KualiWorkflowDocumentKualiWorkflowDocument.isBlanketApproveCapable()public Integer getDocRouteLevel()
getDocRouteLevel in interface KualiWorkflowDocument
public void complete(String annotation)
              throws WorkflowException
complete in interface KualiWorkflowDocumentannotation - 
InvalidActionTakenException
ResourceUnavailableException
WorkflowException
public void returnToPreviousNode(String annotation,
                                 String nodeName)
                          throws WorkflowException
returnToPreviousNode in interface KualiWorkflowDocumentannotation - 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 KualiWorkflowDocumentannotation - 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 KualiWorkflowDocumentannotation - destRouteLevel - 
WorkflowException
InvalidActionTakenException
ResourceUnavailableException
public void logDocumentAction(String annotation)
                       throws WorkflowException
logDocumentAction in interface KualiWorkflowDocumentWorkflowExceptionpublic boolean stateIsInitiated()
stateIsInitiated in interface KualiWorkflowDocumentpublic boolean stateIsSaved()
stateIsSaved in interface KualiWorkflowDocumentpublic boolean stateIsEnroute()
stateIsEnroute in interface KualiWorkflowDocumentpublic boolean stateIsFinal()
stateIsFinal in interface KualiWorkflowDocumentpublic boolean stateIsException()
stateIsException in interface KualiWorkflowDocumentpublic boolean stateIsCanceled()
stateIsCanceled in interface KualiWorkflowDocumentpublic boolean stateIsDisapproved()
stateIsDisapproved in interface KualiWorkflowDocumentpublic boolean stateIsApproved()
stateIsApproved in interface KualiWorkflowDocumentpublic boolean stateIsProcessed()
stateIsProcessed in interface KualiWorkflowDocumentpublic String getStatusDisplayValue()
getStatusDisplayValue in interface KualiWorkflowDocumentpublic Timestamp getCreateDate()
getCreateDate in interface KualiWorkflowDocumentpublic boolean userIsInitiator(Person user)
KualiWorkflowDocument
userIsInitiator in interface KualiWorkflowDocumentorg.kuali.rice.kns.workflow.service.KualiWorkflowDocument#userIsInitiator(org.kuali.rice.kns.bo.user.KualiUser)public boolean userIsRoutedByUser(Person user)
KualiWorkflowDocument
userIsRoutedByUser in interface KualiWorkflowDocumentorg.kuali.rice.kns.workflow.service.KualiWorkflowDocument#userIsRoutedByUser(org.kuali.rice.kns.bo.user.KualiUser)
public String[] getNodeNames()
                      throws WorkflowException
KualiWorkflowDocument
getNodeNames in interface KualiWorkflowDocumentWorkflowExceptionpublic String getCurrentRouteNodeNames()
KualiWorkflowDocumentDocumentRouteHeaderValue#CURRENT_ROUTE_NODE_NAME_DELIMITER
getCurrentRouteNodeNames in interface KualiWorkflowDocumentpublic boolean isStandardSaveAllowed()
KualiWorkflowDocument
isStandardSaveAllowed in interface KualiWorkflowDocument
public void setReceiveFutureRequests()
                              throws WorkflowException
setReceiveFutureRequests in interface KualiWorkflowDocumentWorkflowException
public void setDoNotReceiveFutureRequests()
                                   throws WorkflowException
setDoNotReceiveFutureRequests in interface KualiWorkflowDocumentWorkflowException
public void setClearFutureRequests()
                            throws WorkflowException
setClearFutureRequests in interface KualiWorkflowDocumentWorkflowExceptionpublic String toString()
toString in class ObjectObject.toString()
public Set<Person> getAllPriorApprovers()
                                 throws WorkflowException
KualiWorkflowDocument
getAllPriorApprovers in interface KualiWorkflowDocumentWorkflowExceptionKualiWorkflowDocument.getAllPriorApprovers()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||