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:
- Serialized Form
Method Summary |
boolean |
canEditField(View view,
ViewModel model,
Field field,
String propertyName)
|
boolean |
canEditGroup(View view,
ViewModel model,
Group group,
String groupId)
|
boolean |
canEditLine(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line)
|
boolean |
canEditLineField(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line,
Field field,
String propertyName)
|
boolean |
canEditView(View view,
ViewModel model)
Determines if the the given view and data is allowed to be edited |
boolean |
canEditWidget(View view,
ViewModel model,
Widget widget,
String widgetId)
|
boolean |
canPerformAction(View view,
ViewModel model,
ActionField actionField,
String actionEvent,
String actionId)
|
boolean |
canPerformLineAction(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line,
ActionField actionField,
String actionEvent,
String actionId)
|
boolean |
canViewField(View view,
ViewModel model,
Field field,
String propertyName)
|
boolean |
canViewGroup(View view,
ViewModel model,
Group group,
String groupId)
|
boolean |
canViewLine(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line)
|
boolean |
canViewLineField(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line,
Field field,
String propertyName)
|
boolean |
canViewWidget(View view,
ViewModel model,
Widget widget,
String widgetId)
|
boolean |
fieldIsRequired(View view,
ViewModel model,
Field field,
String propertyName)
|
Set<String> |
getActionFlags(View view,
UifFormBase model)
|
Set<String> |
getEditModes(View view,
UifFormBase model)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewPresentationControllerBase
public ViewPresentationControllerBase()
getActionFlags
public Set<String> getActionFlags(View view,
UifFormBase model)
- Specified by:
getActionFlags
in interface ViewPresentationController
- See Also:
ViewPresentationController.getActionFlags(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.web.form.UifFormBase)
getEditModes
public Set<String> getEditModes(View view,
UifFormBase model)
- Specified by:
getEditModes
in interface ViewPresentationController
- See Also:
ViewPresentationController.getEditModes(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.web.form.UifFormBase)
canEditView
public boolean canEditView(View view,
ViewModel model)
- Description copied from interface:
ViewPresentationController
- Determines if the the given view and data is allowed to be edited
- Specified by:
canEditView
in interface ViewPresentationController
- 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:
ViewPresentationController.canEditView(org.kuali.rice.krad.uif.view.View, org.kuali.rice.krad.uif.view.ViewModel)
canEditField
public boolean canEditField(View view,
ViewModel model,
Field field,
String propertyName)
- Specified by:
canEditField
in interface ViewPresentationController
- See Also:
ViewPresentationController.canEditField(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.field.Field, java.lang.String)
canViewField
public boolean canViewField(View view,
ViewModel model,
Field field,
String propertyName)
- Specified by:
canViewField
in interface ViewPresentationController
- See Also:
ViewPresentationController.canViewField(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.field.Field, java.lang.String)
fieldIsRequired
public boolean fieldIsRequired(View view,
ViewModel model,
Field field,
String propertyName)
- Specified by:
fieldIsRequired
in interface ViewPresentationController
- See Also:
ViewPresentationController.fieldIsRequired(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.field.Field, java.lang.String)
canEditGroup
public boolean canEditGroup(View view,
ViewModel model,
Group group,
String groupId)
- Specified by:
canEditGroup
in interface ViewPresentationController
- See Also:
ViewPresentationController.canEditGroup(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.container.Group, java.lang.String)
canViewGroup
public boolean canViewGroup(View view,
ViewModel model,
Group group,
String groupId)
- Specified by:
canViewGroup
in interface ViewPresentationController
- See Also:
ViewPresentationController.canViewGroup(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.container.Group, java.lang.String)
canEditWidget
public boolean canEditWidget(View view,
ViewModel model,
Widget widget,
String widgetId)
- Specified by:
canEditWidget
in interface ViewPresentationController
- See Also:
ViewPresentationController.canEditWidget(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.widget.Widget, java.lang.String)
canViewWidget
public boolean canViewWidget(View view,
ViewModel model,
Widget widget,
String widgetId)
- Specified by:
canViewWidget
in interface ViewPresentationController
- See Also:
ViewPresentationController.canViewWidget(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.widget.Widget, java.lang.String)
canPerformAction
public boolean canPerformAction(View view,
ViewModel model,
ActionField actionField,
String actionEvent,
String actionId)
- Specified by:
canPerformAction
in interface ViewPresentationController
- See Also:
ViewPresentationController.canPerformAction(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.field.ActionField, java.lang.String,
java.lang.String)
canEditLine
public boolean canEditLine(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line)
- Specified by:
canEditLine
in interface ViewPresentationController
- See Also:
ViewPresentationController.canEditLine(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.container.CollectionGroup,
java.lang.String, java.lang.Object)
canViewLine
public boolean canViewLine(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line)
- Specified by:
canViewLine
in interface ViewPresentationController
- See Also:
ViewPresentationController.canViewLine(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.container.CollectionGroup,
java.lang.String, java.lang.Object)
canEditLineField
public boolean canEditLineField(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line,
Field field,
String propertyName)
- Specified by:
canEditLineField
in interface ViewPresentationController
- See Also:
ViewPresentationController.canEditLineField(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.container.CollectionGroup,
java.lang.String, java.lang.Object, org.kuali.rice.krad.uif.field.Field, java.lang.String)
canViewLineField
public boolean canViewLineField(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line,
Field field,
String propertyName)
- Specified by:
canViewLineField
in interface ViewPresentationController
- See Also:
ViewPresentationController.canViewLineField(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.container.CollectionGroup,
java.lang.String, java.lang.Object, org.kuali.rice.krad.uif.field.Field, java.lang.String)
canPerformLineAction
public boolean canPerformLineAction(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line,
ActionField actionField,
String actionEvent,
String actionId)
- Specified by:
canPerformLineAction
in interface ViewPresentationController
- See Also:
ViewPresentationController.canPerformLineAction(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.container.CollectionGroup,
java.lang.String, java.lang.Object, org.kuali.rice.krad.uif.field.ActionField, java.lang.String,
java.lang.String)
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.