Package org.kuali.rice.krad.document
Class DocumentViewPresentationControllerBase
java.lang.Object
org.kuali.rice.krad.uif.view.ViewPresentationControllerBase
org.kuali.rice.krad.document.DocumentViewPresentationControllerBase
- All Implemented Interfaces:
Serializable,DocumentPresentationController,ViewPresentationController
- Direct Known Subclasses:
MaintenanceViewPresentationControllerBase,TransactionalDocumentViewPresentationControllerBase
public class DocumentViewPresentationControllerBase
extends ViewPresentationControllerBase
implements DocumentPresentationController
Implementation of
ViewPresentationController for
DocumentView instances
Adds flags for various document actions like save, route, cancel
By default delegates to the DocumentPresentationController configured for the document in the data dictionary
- 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) booleancanBlanketApprove(Document document) booleanbooleanbooleancanComplete(Document document) booleanbooleancanDisapprove(Document document) booleanbooleancanEditDocumentOverview(Document document) booleancanEditView(View view, ViewModel model) Verify the document can be edited in addition to the viewbooleanbooleancanInitiate(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.getActionFlags(View view, UifFormBase model) protected DocumentRequestAuthorizationCachegetDocumentRequestAuthorizationCache(Document document) voidsetDocumentPresentationController(DocumentPresentationController documentPresentationController) voidsetDocumentPresentationControllerClass(Class<? extends DocumentPresentationController> documentPresentationControllerClass) voidsetDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache) voidsetRequestAuthorizationCache(RequestAuthorizationCache requestAuthorizationCache) Methods inherited from class org.kuali.rice.krad.uif.view.ViewPresentationControllerBase
canEditField, canEditGroup, canEditLine, canEditLineField, canEditWidget, canPerformAction, canPerformLineAction, canViewField, canViewGroup, canViewLine, canViewLineField, canViewWidget, fieldIsRequired, getEditModes, getRequestAuthorizationCache
-
Constructor Details
-
DocumentViewPresentationControllerBase
public DocumentViewPresentationControllerBase()
-
-
Method Details
-
getActionFlags
- Specified by:
getActionFlagsin interfaceViewPresentationController- Overrides:
getActionFlagsin classViewPresentationControllerBase- See Also:
-
canInitiate
- Specified by:
canInitiatein interfaceDocumentPresentationController
-
canEdit
- Specified by:
canEditin interfaceDocumentPresentationController
-
canEditView
Verify the document can be edited in addition to the view- Specified by:
canEditViewin interfaceViewPresentationController- Overrides:
canEditViewin classViewPresentationControllerBase- Parameters:
view- - view instance to check whether editing is allowedmodel- - object containing the view data- Returns:
- boolean true if editing on the view is allowed, false otherwise
- See Also:
-
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
-
getDocumentPresentationController
-
setDocumentPresentationController
public void setDocumentPresentationController(DocumentPresentationController documentPresentationController) -
setDocumentPresentationControllerClass
public void setDocumentPresentationControllerClass(Class<? extends DocumentPresentationController> documentPresentationControllerClass) -
getDocumentRequestAuthorizationCache
-
setDocumentRequestAuthorizationCache
public void setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache) - Specified by:
setDocumentRequestAuthorizationCachein interfaceDocumentPresentationController
-
setRequestAuthorizationCache
- Specified by:
setRequestAuthorizationCachein interfaceViewPresentationController- Overrides:
setRequestAuthorizationCachein classViewPresentationControllerBase
-