Package org.kuali.rice.krad.uif.view
Class ViewPresentationControllerBase
java.lang.Object
org.kuali.rice.krad.uif.view.ViewPresentationControllerBase
- All Implemented Interfaces:
Serializable,ViewPresentationController
- Direct Known Subclasses:
DocumentViewPresentationControllerBase,InquiryViewPresentationControllerBase,LookupViewPresentationControllerBase
public class ViewPresentationControllerBase
extends Object
implements ViewPresentationController, Serializable
Implementation of
ViewPresentationController that implements no logic by default- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
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) protected RequestAuthorizationCachevoidsetRequestAuthorizationCache(RequestAuthorizationCache requestAuthorizationCache)
-
Constructor Details
-
ViewPresentationControllerBase
public ViewPresentationControllerBase()
-
-
Method Details
-
getActionFlags
- Specified by:
getActionFlagsin interfaceViewPresentationController- See Also:
-
getEditModes
- Specified by:
getEditModesin interfaceViewPresentationController- See Also:
-
canEditView
Description copied from interface:ViewPresentationControllerDetermines if the the given view and data is allowed to be edited- Specified by:
canEditViewin interfaceViewPresentationController- 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:
-
canEditField
Description copied from interface:ViewPresentationControllerDetermines if the given field within the view is allowed to be edited- Specified by:
canEditFieldin interfaceViewPresentationController- 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
- See Also:
-
canViewField
Description copied from interface:ViewPresentationControllerDetermines if the given field within the view is allowed to be viewed- Specified by:
canViewFieldin interfaceViewPresentationController- 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
- See Also:
-
fieldIsRequired
Description copied from interface:ViewPresentationControllerDetermines if a value is required to be present for the given field (used to indicate in the client the field must be completed)- Specified by:
fieldIsRequiredin interfaceViewPresentationController- 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
- See Also:
-
canEditGroup
- Specified by:
canEditGroupin interfaceViewPresentationController- See Also:
-
canViewGroup
- Specified by:
canViewGroupin interfaceViewPresentationController- See Also:
-
canEditWidget
- Specified by:
canEditWidgetin interfaceViewPresentationController- See Also:
-
canViewWidget
- Specified by:
canViewWidgetin interfaceViewPresentationController- See Also:
-
canPerformAction
public boolean canPerformAction(View view, ViewModel model, Action action, String actionEvent, String actionId) - Specified by:
canPerformActionin interfaceViewPresentationController- See Also:
-
canEditLine
public boolean canEditLine(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line) - Specified by:
canEditLinein interfaceViewPresentationController- See Also:
-
canViewLine
public boolean canViewLine(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line) - Specified by:
canViewLinein interfaceViewPresentationController- See Also:
-
canEditLineField
public boolean canEditLineField(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Field field, String propertyName) - Specified by:
canEditLineFieldin interfaceViewPresentationController- See Also:
-
canViewLineField
public boolean canViewLineField(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Field field, String propertyName) - Specified by:
canViewLineFieldin interfaceViewPresentationController- See Also:
-
canPerformLineAction
public boolean canPerformLineAction(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Action action, String actionEvent, String actionId) - Specified by:
canPerformLineActionin interfaceViewPresentationController- See Also:
-
getRequestAuthorizationCache
-
setRequestAuthorizationCache
- Specified by:
setRequestAuthorizationCachein interfaceViewPresentationController
-