public abstract class MockWorkflowDocument extends Object implements WorkflowDocument
It can be extended by any other kind of mock document that needs to override certain methods. This class has absolutely no state or behavior. There is no public constructor, and no member variables. All void methods do nothing. All methods with a return value return null. All state and behavior needs to be added via a subclass.
Constructor and Description |
---|
MockWorkflowDocument() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adHocToGroup, adHocToPrincipal, getCurrentNodeNames, getCurrentRouteNodeInstances, setAttributeContent, setSearchableContent
public MockWorkflowDocument()
public org.joda.time.DateTime getDateLastModified()
getDateLastModified
in interface DocumentContract
public org.joda.time.DateTime getDateApproved()
getDateApproved
in interface DocumentContract
public org.joda.time.DateTime getDateFinalized()
getDateFinalized
in interface DocumentContract
public String getInitiatorPrincipalId()
getInitiatorPrincipalId
in interface DocumentContract
public String getRoutedByPrincipalId()
getRoutedByPrincipalId
in interface DocumentContract
public String getDocumentTypeId()
getDocumentTypeId
in interface DocumentContract
public String getDocumentHandlerUrl()
getDocumentHandlerUrl
in interface DocumentContract
public String getApplicationDocumentStatus()
getApplicationDocumentStatus
in interface DocumentContract
public org.joda.time.DateTime getApplicationDocumentStatusDate()
getApplicationDocumentStatusDate
in interface DocumentContract
public Map<String,String> getVariables()
getVariables
in interface DocumentContract
public String getDocumentId()
getDocumentId
in interface DocumentContract
public Document getDocument()
getDocument
in interface WorkflowDocument
public DocumentContent getDocumentContent()
getDocumentContent
in interface WorkflowDocument
public String getApplicationContent()
getApplicationContent
in interface WorkflowDocument
public void setApplicationContent(String applicationContent)
setApplicationContent
in interface WorkflowDocument
public void clearAttributeContent()
clearAttributeContent
in interface WorkflowDocument
public String getAttributeContent()
getAttributeContent
in interface WorkflowDocument
public void addAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
addAttributeDefinition
in interface WorkflowDocument
public void removeAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
removeAttributeDefinition
in interface WorkflowDocument
public void clearAttributeDefinitions()
clearAttributeDefinitions
in interface WorkflowDocument
public List<WorkflowAttributeDefinition> getAttributeDefinitions()
getAttributeDefinitions
in interface WorkflowDocument
public void addSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
addSearchableDefinition
in interface WorkflowDocument
public void removeSearchableDefinition(WorkflowAttributeDefinition searchableDefinition)
removeSearchableDefinition
in interface WorkflowDocument
public void clearSearchableDefinitions()
clearSearchableDefinitions
in interface WorkflowDocument
public void clearSearchableContent()
clearSearchableContent
in interface WorkflowDocument
public List<WorkflowAttributeDefinition> getSearchableDefinitions()
getSearchableDefinitions
in interface WorkflowDocument
public List<? extends RemotableAttributeErrorContract> validateAttributeDefinition(WorkflowAttributeDefinition attributeDefinition)
validateAttributeDefinition
in interface WorkflowDocument
public List<ActionRequest> getRootActionRequests()
getRootActionRequests
in interface WorkflowDocument
public List<ActionTaken> getActionsTaken()
getActionsTaken
in interface WorkflowDocument
public void setApplicationDocumentId(String applicationDocumentId)
setApplicationDocumentId
in interface WorkflowDocument
public String getApplicationDocumentId()
getApplicationDocumentId
in interface DocumentContract
public org.joda.time.DateTime getDateCreated()
getDateCreated
in interface DocumentContract
public String getTitle()
getTitle
in interface DocumentContract
public ValidActions getValidActions()
getValidActions
in interface WorkflowDocument
public RequestedActions getRequestedActions()
getRequestedActions
in interface WorkflowDocument
public void saveDocument(String annotation)
saveDocument
in interface WorkflowDocument
public void route(String annotation)
route
in interface WorkflowDocument
public void disapprove(String annotation)
disapprove
in interface WorkflowDocument
public void approve(String annotation)
approve
in interface WorkflowDocument
public void cancel(String annotation)
cancel
in interface WorkflowDocument
public void recall(String annotation, boolean cancel)
recall
in interface WorkflowDocument
public void blanketApprove(String annotation)
blanketApprove
in interface WorkflowDocument
public void blanketApprove(String annotation, String... nodeNames)
blanketApprove
in interface WorkflowDocument
public void saveDocumentData()
saveDocumentData
in interface WorkflowDocument
public void setApplicationDocumentStatus(String applicationDocumentStatus)
setApplicationDocumentStatus
in interface WorkflowDocument
public void acknowledge(String annotation)
acknowledge
in interface WorkflowDocument
public void fyi(String annotation)
fyi
in interface WorkflowDocument
public void fyi()
fyi
in interface WorkflowDocument
public void delete()
delete
in interface WorkflowDocument
public void refresh()
refresh
in interface WorkflowDocument
public void adHocToPrincipal(ActionRequestType actionRequested, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction)
adHocToPrincipal
in interface WorkflowDocument
public void adHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction)
adHocToPrincipal
in interface WorkflowDocument
public void adHocToPrincipal(ActionRequestType actionRequested, String nodeName, String annotation, String targetPrincipalId, String responsibilityDescription, boolean forceAction, String requestLabel)
adHocToPrincipal
in interface WorkflowDocument
public void adHocToGroup(ActionRequestType actionRequested, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction)
adHocToGroup
in interface WorkflowDocument
public void adHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction)
adHocToGroup
in interface WorkflowDocument
public void adHocToGroup(ActionRequestType actionRequested, String nodeName, String annotation, String targetGroupId, String responsibilityDescription, boolean forceAction, String requestLabel)
adHocToGroup
in interface WorkflowDocument
public void revokeAdHocRequestById(String actionRequestId, String annotation)
revokeAdHocRequestById
in interface WorkflowDocument
public void revokeAdHocRequests(AdHocRevoke revoke, String annotation)
revokeAdHocRequests
in interface WorkflowDocument
public void revokeAllAdHocRequests(String annotation)
revokeAllAdHocRequests
in interface WorkflowDocument
public void setTitle(String title)
setTitle
in interface WorkflowDocument
public String getDocumentTypeName()
getDocumentTypeName
in interface DocumentContract
public boolean isCompletionRequested()
isCompletionRequested
in interface WorkflowDocument
public boolean isApprovalRequested()
isApprovalRequested
in interface WorkflowDocument
public boolean isAcknowledgeRequested()
isAcknowledgeRequested
in interface WorkflowDocument
public boolean isFYIRequested()
isFYIRequested
in interface WorkflowDocument
public boolean isBlanketApproveCapable()
isBlanketApproveCapable
in interface WorkflowDocument
public boolean isRouteCapable()
isRouteCapable
in interface WorkflowDocument
public boolean isValidAction(ActionType actionType)
isValidAction
in interface WorkflowDocument
public void superUserBlanketApprove(String annotation)
superUserBlanketApprove
in interface WorkflowDocument
public void superUserNodeApprove(String nodeName, String annotation)
superUserNodeApprove
in interface WorkflowDocument
public void superUserTakeRequestedAction(String actionRequestId, String annotation)
superUserTakeRequestedAction
in interface WorkflowDocument
public void superUserDisapprove(String annotation)
superUserDisapprove
in interface WorkflowDocument
public void superUserCancel(String annotation)
superUserCancel
in interface WorkflowDocument
public void superUserReturnToPreviousNode(ReturnPoint returnPoint, String annotation)
superUserReturnToPreviousNode
in interface WorkflowDocument
public void complete(String annotation)
complete
in interface WorkflowDocument
public void logAnnotation(String annotation)
logAnnotation
in interface WorkflowDocument
public DocumentStatus getStatus()
getStatus
in interface DocumentContract
public boolean checkStatus(DocumentStatus status)
checkStatus
in interface WorkflowDocument
public boolean isInitiated()
isInitiated
in interface WorkflowDocument
public boolean isSaved()
isSaved
in interface WorkflowDocument
public boolean isEnroute()
isEnroute
in interface WorkflowDocument
public boolean isException()
isException
in interface WorkflowDocument
public boolean isCanceled()
isCanceled
in interface WorkflowDocument
public boolean isRecalled()
isRecalled
in interface WorkflowDocument
public boolean isDisapproved()
isDisapproved
in interface WorkflowDocument
public boolean isApproved()
isApproved
in interface WorkflowDocument
public boolean isProcessed()
isProcessed
in interface WorkflowDocument
public boolean isFinal()
isFinal
in interface WorkflowDocument
public String getPrincipalId()
getPrincipalId
in interface WorkflowDocument
public void switchPrincipal(String principalId)
switchPrincipal
in interface WorkflowDocument
public void takeGroupAuthority(String annotation, String groupId)
takeGroupAuthority
in interface WorkflowDocument
public void releaseGroupAuthority(String annotation, String groupId)
releaseGroupAuthority
in interface WorkflowDocument
public Set<String> getNodeNames()
getNodeNames
in interface WorkflowDocument
public void returnToPreviousNode(String nodeName, String annotation)
returnToPreviousNode
in interface WorkflowDocument
public void returnToPreviousNode(String annotation, ReturnPoint returnPoint)
returnToPreviousNode
in interface WorkflowDocument
public void move(MovePoint movePoint, String annotation)
move
in interface WorkflowDocument
public List<RouteNodeInstance> getActiveRouteNodeInstances()
getActiveRouteNodeInstances
in interface WorkflowDocument
public List<RouteNodeInstance> getRouteNodeInstances()
getRouteNodeInstances
in interface WorkflowDocument
public List<String> getPreviousNodeNames()
getPreviousNodeNames
in interface WorkflowDocument
public DocumentDetail getDocumentDetail()
getDocumentDetail
in interface WorkflowDocument
public void updateDocumentContent(DocumentContentUpdate documentContentUpdate)
updateDocumentContent
in interface WorkflowDocument
public void placeInExceptionRouting(String annotation)
placeInExceptionRouting
in interface WorkflowDocument
public void setVariable(String name, String value)
setVariable
in interface WorkflowDocument
public String getVariableValue(String name)
getVariableValue
in interface WorkflowDocument
public void setReceiveFutureRequests()
setReceiveFutureRequests
in interface WorkflowDocument
public void setDoNotReceiveFutureRequests()
setDoNotReceiveFutureRequests
in interface WorkflowDocument
public void setClearFutureRequests()
setClearFutureRequests
in interface WorkflowDocument
public String getReceiveFutureRequestsValue()
getReceiveFutureRequestsValue
in interface WorkflowDocument
public String getDoNotReceiveFutureRequestsValue()
getDoNotReceiveFutureRequestsValue
in interface WorkflowDocument
public String getClearFutureRequestsValue()
getClearFutureRequestsValue
in interface WorkflowDocument
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.