public class DocumentPresentationControllerBase extends Object implements DocumentPresentationController, Serializable
Constructor and Description |
---|
DocumentPresentationControllerBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAcknowledge(Document document) |
boolean |
canAddAdhocRequests(Document document) |
boolean |
canAnnotate(Document document) |
boolean |
canApprove(Document document) |
protected boolean |
canApproveOrDisapprove(Document document)
Returns whether a super user approve or disapprove action can be taken on the
document . |
boolean |
canBlanketApprove(Document document) |
boolean |
canCancel(Document document) |
boolean |
canClose(Document document) |
boolean |
canComplete(Document document) |
boolean |
canCopy(Document document) |
boolean |
canDisapprove(Document document) |
boolean |
canEdit(Document document) |
boolean |
canEditDocumentOverview(Document document) |
boolean |
canFyi(Document document) |
boolean |
canInitiate(String documentTypeName) |
boolean |
canPerformRouteReport(Document document) |
boolean |
canRecall(Document document) |
boolean |
canReload(Document document) |
boolean |
canRoute(Document document) |
boolean |
canSave(Document document) |
boolean |
canSendAdhocRequests(Document document) |
boolean |
canSendNoteFyi(Document document) |
boolean |
canSuperUserApprove(Document document)
Determines if the document state should allow a super user approving the document.
|
boolean |
canSuperUserDisapprove(Document document)
Determines if the document state should allow a super user disapproving the document.
|
boolean |
canSuperUserTakeAction(Document document)
Determines if the document state should allow a super user taking an action.
|
protected boolean |
canTakeAction(Document document)
Returns whether a super user action can be taken on the
document . |
protected DocumentRequestAuthorizationCache |
getDocumentRequestAuthorizationCache(Document document) |
protected ParameterService |
getParameterService() |
protected boolean |
hasActionRequests(Document document)
Returns whether the
document has any APPROVE or COMPLETE action requests. |
protected boolean |
isStateInitiatedFinalCancelled(DocumentStatus status)
Returns whether the
document is in a INITIATED, FINAL, or CANCELLED state. |
protected boolean |
isStateProcessedOrDisapproved(DocumentStatus status)
Returns whether the
document is in a PROCESSED or DISAPPROVED state. |
protected boolean |
isStateSaved(DocumentStatus status)
Returns whether the
document is in a SAVED state. |
void |
setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache) |
public DocumentPresentationControllerBase()
public boolean canInitiate(String documentTypeName)
canInitiate
in interface DocumentPresentationController
public boolean canEdit(Document document)
canEdit
in interface DocumentPresentationController
public boolean canAnnotate(Document document)
canAnnotate
in interface DocumentPresentationController
public boolean canReload(Document document)
canReload
in interface DocumentPresentationController
public boolean canClose(Document document)
canClose
in interface DocumentPresentationController
public boolean canSave(Document document)
canSave
in interface DocumentPresentationController
public boolean canRoute(Document document)
canRoute
in interface DocumentPresentationController
public boolean canCancel(Document document)
canCancel
in interface DocumentPresentationController
public boolean canRecall(Document document)
canRecall
in interface DocumentPresentationController
public boolean canCopy(Document document)
canCopy
in interface DocumentPresentationController
public boolean canPerformRouteReport(Document document)
canPerformRouteReport
in interface DocumentPresentationController
public boolean canAddAdhocRequests(Document document)
canAddAdhocRequests
in interface DocumentPresentationController
public boolean canBlanketApprove(Document document)
canBlanketApprove
in interface DocumentPresentationController
public boolean canApprove(Document document)
canApprove
in interface DocumentPresentationController
public boolean canDisapprove(Document document)
canDisapprove
in interface DocumentPresentationController
public boolean canSendAdhocRequests(Document document)
canSendAdhocRequests
in interface DocumentPresentationController
public boolean canSendNoteFyi(Document document)
canSendNoteFyi
in interface DocumentPresentationController
public boolean canEditDocumentOverview(Document document)
canEditDocumentOverview
in interface DocumentPresentationController
public boolean canFyi(Document document)
canFyi
in interface DocumentPresentationController
public boolean canAcknowledge(Document document)
canAcknowledge
in interface DocumentPresentationController
public boolean canComplete(Document document)
canComplete
in interface DocumentPresentationController
public boolean canSuperUserTakeAction(Document document)
canSuperUserTakeAction
in interface DocumentPresentationController
document
- document to checkpublic boolean canSuperUserApprove(Document document)
canSuperUserApprove
in interface DocumentPresentationController
document
- document to checkpublic boolean canSuperUserDisapprove(Document document)
canSuperUserDisapprove
in interface DocumentPresentationController
document
- document to checkprotected boolean hasActionRequests(Document document)
document
has any APPROVE or COMPLETE action requests.document
- the document to checkdocument
has any APPROVE or COMPLETE action requests, false otherwiseprotected boolean canTakeAction(Document document)
document
.
Typically, actions can only be taken on a document not in INITIATED, FINAL, or CANCELLED status.
document
- the document to checkdocument
, false otherwiseprotected boolean canApproveOrDisapprove(Document document)
document
.
Typically, actions can only be taken on a document not in INITIATED, SAVED, PROCESSED, DISAPPROVED, FINAL, or CANCELLED status.
document
- the document to checkdocument
, false otherwiseprotected boolean isStateInitiatedFinalCancelled(DocumentStatus status)
document
is in a INITIATED, FINAL, or CANCELLED state.status
- the document statusdocument
is in a INITIATED, FINAL, or CANCELLED state, false otherwiseprotected boolean isStateSaved(DocumentStatus status)
document
is in a SAVED state.status
- the document statusdocument
is in a SAVED state, false otherwiseprotected boolean isStateProcessedOrDisapproved(DocumentStatus status)
document
is in a PROCESSED or DISAPPROVED state.status
- the document statusdocument
is in a PROCESSED or DISAPPROVED state, false otherwiseprotected ParameterService getParameterService()
protected DocumentRequestAuthorizationCache getDocumentRequestAuthorizationCache(Document document)
public void setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache)
setDocumentRequestAuthorizationCache
in interface DocumentPresentationController
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.