Package org.kuali.rice.krad.uif.view
Interface ViewPresentationController
- All Known Implementing Classes:
DocumentViewPresentationControllerBase,InquiryViewPresentationControllerBase,LookupViewPresentationControllerBase,MaintenanceViewPresentationControllerBase,TransactionalDocumentViewPresentationControllerBase,ViewPresentationControllerBase
public interface ViewPresentationController
Configured for a
View instance to provide conditional authorization logic
based on any variable (view configuration, system parameters, ...) that does
not depend on the current user- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanEditField(View view, ViewModel model, Field field, String propertyName) Determines if the given field within the view is allowed to be editedbooleancanEditGroup(View view, ViewModel model, Group group, String groupId) booleancanEditLine(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line) booleancanEditLineField(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Field field, String propertyName) booleancanEditView(View view, ViewModel model) Determines if the the given view and data is allowed to be editedbooleancanEditWidget(View view, ViewModel model, Widget widget, String widgetId) booleanbooleancanPerformLineAction(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Action action, String actionEvent, String actionId) booleancanViewField(View view, ViewModel model, Field field, String propertyName) Determines if the given field within the view is allowed to be viewedbooleancanViewGroup(View view, ViewModel model, Group group, String groupId) booleancanViewLine(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line) booleancanViewLineField(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Field field, String propertyName) booleancanViewWidget(View view, ViewModel model, Widget widget, String widgetId) booleanfieldIsRequired(View view, ViewModel model, Field field, String propertyName) Determines if a value is required to be present for the given field (used to indicate in the client the field must be completed)getActionFlags(View view, UifFormBase model) getEditModes(View view, UifFormBase model) voidsetRequestAuthorizationCache(RequestAuthorizationCache requestAuthorizationCache)
-
Method Details
-
getActionFlags
-
getEditModes
-
canEditView
Determines if the the given view and data is allowed to be edited- 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
-
canEditField
Determines if the given field within the view is allowed to be edited- Parameters:
view- - view instance the field belongs tomodel- - object containing the view datafield- - field instance to determine edit authorization forpropertyName- - name of the property that field corresponds with (if field is data binding)- Returns:
- boolean true if editing on the field is allowed, false otherwise
-
canViewField
Determines if the given field within the view is allowed to be viewed- Parameters:
view- - view instance the field belongs tomodel- - object containing the view datafield- - field instance to determine view authorization forpropertyName- - name of the property that field corresponds with (if field is data binding)- Returns:
- boolean true if viewing of the field is allowed, false otherwise
-
fieldIsRequired
Determines if a value is required to be present for the given field (used to indicate in the client the field must be completed)- Parameters:
view- - view instance the field belongs tomodel- - object containing the view datafield- - field instance to determine required state forpropertyName- - name of the property that field corresponds with (if field is data binding)- Returns:
- boolean true if field is required, false otherwise
-
canEditGroup
-
canViewGroup
-
canEditWidget
-
canViewWidget
-
canPerformAction
-
canEditLine
boolean canEditLine(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line) -
canViewLine
boolean canViewLine(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line) -
canEditLineField
-
canViewLineField
-
canPerformLineAction
-
setRequestAuthorizationCache
-