public class DocumentViewPresentationControllerBase extends ViewPresentationControllerBase implements DocumentPresentationController
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
Constructor and Description |
---|
DocumentViewPresentationControllerBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAcknowledge(Document document) |
boolean |
canAddAdhocRequests(Document document) |
boolean |
canAnnotate(Document document) |
boolean |
canApprove(Document 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 |
canEditView(View view,
ViewModel model)
Verify the document can be edited in addition to the view
|
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.
|
Set<String> |
getActionFlags(View view,
UifFormBase model) |
DocumentPresentationController |
getDocumentPresentationController() |
protected DocumentRequestAuthorizationCache |
getDocumentRequestAuthorizationCache(Document document) |
void |
setDocumentPresentationController(DocumentPresentationController documentPresentationController) |
void |
setDocumentPresentationControllerClass(Class<? extends DocumentPresentationController> documentPresentationControllerClass) |
void |
setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache) |
void |
setRequestAuthorizationCache(RequestAuthorizationCache requestAuthorizationCache) |
canEditField, canEditGroup, canEditLine, canEditLineField, canEditWidget, canPerformAction, canPerformLineAction, canViewField, canViewGroup, canViewLine, canViewLineField, canViewWidget, fieldIsRequired, getEditModes, getRequestAuthorizationCache
public DocumentViewPresentationControllerBase()
public Set<String> getActionFlags(View view, UifFormBase model)
getActionFlags
in interface ViewPresentationController
getActionFlags
in class ViewPresentationControllerBase
ViewPresentationController.getActionFlags(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.web.form.UifFormBase)
public boolean canInitiate(String documentTypeName)
canInitiate
in interface DocumentPresentationController
public boolean canEdit(Document document)
canEdit
in interface DocumentPresentationController
public boolean canEditView(View view, ViewModel model)
canEditView
in interface ViewPresentationController
canEditView
in class ViewPresentationControllerBase
view
- - view instance to check whether editing is allowedmodel
- - object containing the view dataViewPresentationController.canEditView(org.kuali.rice.krad.uif.view.View, org.kuali.rice.krad.uif.view.ViewModel)
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 checkpublic DocumentPresentationController getDocumentPresentationController()
public void setDocumentPresentationController(DocumentPresentationController documentPresentationController)
public void setDocumentPresentationControllerClass(Class<? extends DocumentPresentationController> documentPresentationControllerClass)
protected DocumentRequestAuthorizationCache getDocumentRequestAuthorizationCache(Document document)
public void setDocumentRequestAuthorizationCache(DocumentRequestAuthorizationCache documentRequestAuthorizationCache)
setDocumentRequestAuthorizationCache
in interface DocumentPresentationController
public void setRequestAuthorizationCache(RequestAuthorizationCache requestAuthorizationCache)
setRequestAuthorizationCache
in interface ViewPresentationController
setRequestAuthorizationCache
in class ViewPresentationControllerBase
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.