Package org.kuali.rice.krad.document
Class DocumentPresentationControllerBase
java.lang.Object
org.kuali.rice.krad.document.DocumentPresentationControllerBase
- All Implemented Interfaces:
Serializable,DocumentPresentationController
- Direct Known Subclasses:
MaintenanceDocumentPresentationControllerBase,TransactionalDocumentPresentationControllerBase
public class DocumentPresentationControllerBase
extends Object
implements DocumentPresentationController, Serializable
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAcknowledge(Document document) booleancanAddAdhocRequests(Document document) booleancanAnnotate(Document document) booleancanApprove(Document document) protected booleancanApproveOrDisapprove(Document document) Returns whether a super user approve or disapprove action can be taken on thedocument.booleancanBlanketApprove(Document document) booleanbooleanbooleancanComplete(Document document) booleanbooleancanDisapprove(Document document) booleanbooleancanEditDocumentOverview(Document document) booleanbooleancanInitiate(String documentTypeName) booleancanPerformRouteReport(Document document) booleanbooleanbooleanbooleanbooleancanSendAdhocRequests(Document document) booleancanSendNoteFyi(Document document) booleancanSuperUserApprove(Document document) Determines if the document state should allow a super user approving the document.booleancanSuperUserDisapprove(Document document) Determines if the document state should allow a super user disapproving the document.booleancanSuperUserTakeAction(Document document) Determines if the document state should allow a super user taking an action.protected booleancanTakeAction(Document document) Returns whether a super user action can be taken on thedocument.protected DocumentRequestAuthorizationCachegetDocumentRequestAuthorizationCache(Document document) protected org.kuali.rice.coreservice.framework.parameter.ParameterServiceprotected booleanhasActionRequests(Document document) Returns whether thedocumenthas any APPROVE or COMPLETE action requests.protected booleanisStateInitiatedFinalCancelled(org.kuali.rice.kew.api.document.DocumentStatus status) Returns whether thedocumentis in a INITIATED, FINAL, or CANCELLED state.protected booleanisStateProcessedOrDisapproved(org.kuali.rice.kew.api.document.DocumentStatus status) Returns whether thedocumentis in a PROCESSED or DISAPPROVED state.protected booleanisStateSaved(org.kuali.rice.kew.api.document.DocumentStatus status) Returns whether thedocumentis in a SAVED state.voidsetDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache)
-
Constructor Details
-
DocumentPresentationControllerBase
public DocumentPresentationControllerBase()
-
-
Method Details
-
canInitiate
- Specified by:
canInitiatein interfaceDocumentPresentationController
-
canEdit
- Specified by:
canEditin interfaceDocumentPresentationController
-
canAnnotate
- Specified by:
canAnnotatein interfaceDocumentPresentationController
-
canReload
- Specified by:
canReloadin interfaceDocumentPresentationController
-
canClose
- Specified by:
canClosein interfaceDocumentPresentationController
-
canSave
- Specified by:
canSavein interfaceDocumentPresentationController
-
canRoute
- Specified by:
canRoutein interfaceDocumentPresentationController
-
canCancel
- Specified by:
canCancelin interfaceDocumentPresentationController
-
canRecall
- Specified by:
canRecallin interfaceDocumentPresentationController
-
canCopy
- Specified by:
canCopyin interfaceDocumentPresentationController
-
canPerformRouteReport
- Specified by:
canPerformRouteReportin interfaceDocumentPresentationController
-
canAddAdhocRequests
- Specified by:
canAddAdhocRequestsin interfaceDocumentPresentationController
-
canBlanketApprove
- Specified by:
canBlanketApprovein interfaceDocumentPresentationController
-
canApprove
- Specified by:
canApprovein interfaceDocumentPresentationController
-
canDisapprove
- Specified by:
canDisapprovein interfaceDocumentPresentationController
-
canSendAdhocRequests
- Specified by:
canSendAdhocRequestsin interfaceDocumentPresentationController
-
canSendNoteFyi
- Specified by:
canSendNoteFyiin interfaceDocumentPresentationController
-
canEditDocumentOverview
- Specified by:
canEditDocumentOverviewin interfaceDocumentPresentationController
-
canFyi
- Specified by:
canFyiin interfaceDocumentPresentationController
-
canAcknowledge
- Specified by:
canAcknowledgein interfaceDocumentPresentationController
-
canComplete
- Specified by:
canCompletein interfaceDocumentPresentationController
-
canSuperUserTakeAction
Determines if the document state should allow a super user taking an action.- Specified by:
canSuperUserTakeActionin interfaceDocumentPresentationController- Parameters:
document- document to check- Returns:
- true the document state should allow a super user taking an action, otherwise false
-
canSuperUserApprove
Determines if the document state should allow a super user approving the document.- Specified by:
canSuperUserApprovein interfaceDocumentPresentationController- Parameters:
document- document to check- Returns:
- true if the document state should allow a super user approving the document, otherwise false
-
canSuperUserDisapprove
Determines if the document state should allow a super user disapproving the document.- Specified by:
canSuperUserDisapprovein interfaceDocumentPresentationController- Parameters:
document- document to check- Returns:
- true if the document state should allow a super user disapproving the document, otherwise false
-
hasActionRequests
Returns whether thedocumenthas any APPROVE or COMPLETE action requests.- Parameters:
document- the document to check- Returns:
- true if the
documenthas any APPROVE or COMPLETE action requests, false otherwise
-
canTakeAction
Returns whether a super user action can be taken on thedocument.Typically, actions can only be taken on a document not in INITIATED, FINAL, or CANCELLED status.
- Parameters:
document- the document to check- Returns:
- true if a super user action can be taken on the
document, false otherwise
-
canApproveOrDisapprove
Returns whether a super user approve or disapprove action can be taken on thedocument.Typically, actions can only be taken on a document not in INITIATED, SAVED, PROCESSED, DISAPPROVED, FINAL, or CANCELLED status.
- Parameters:
document- the document to check- Returns:
- true if a super user approve or disapprove action can be taken on the
document, false otherwise
-
isStateInitiatedFinalCancelled
protected boolean isStateInitiatedFinalCancelled(org.kuali.rice.kew.api.document.DocumentStatus status) Returns whether thedocumentis in a INITIATED, FINAL, or CANCELLED state.- Parameters:
status- the document status- Returns:
- true if the
documentis in a INITIATED, FINAL, or CANCELLED state, false otherwise
-
isStateSaved
protected boolean isStateSaved(org.kuali.rice.kew.api.document.DocumentStatus status) Returns whether thedocumentis in a SAVED state.- Parameters:
status- the document status- Returns:
- true if the
documentis in a SAVED state, false otherwise
-
isStateProcessedOrDisapproved
protected boolean isStateProcessedOrDisapproved(org.kuali.rice.kew.api.document.DocumentStatus status) Returns whether thedocumentis in a PROCESSED or DISAPPROVED state.- Parameters:
status- the document status- Returns:
- true if the
documentis in a PROCESSED or DISAPPROVED state, false otherwise
-
getParameterService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService() -
getDocumentRequestAuthorizationCache
-
setDocumentRequestAuthorizationCache
public void setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache) - Specified by:
setDocumentRequestAuthorizationCachein interfaceDocumentPresentationController
-