|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.view.ViewPresentationControllerBase
public class ViewPresentationControllerBase
Implementation of ViewPresentationController
that implements no logic by default
Constructor Summary | |
---|---|
ViewPresentationControllerBase()
|
Method Summary | |
---|---|
boolean |
canEditField(View view,
ViewModel model,
Field field,
String propertyName)
Determines if the given field within the view is allowed to be edited |
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,
Action action,
String actionEvent,
String actionId)
|
boolean |
canPerformLineAction(View view,
ViewModel model,
CollectionGroup collectionGroup,
String collectionPropertyName,
Object line,
Action action,
String actionEvent,
String actionId)
|
boolean |
canViewField(View view,
ViewModel model,
Field field,
String propertyName)
Determines if the given field within the view is allowed to be viewed |
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)
Determines if a value is required to be present for the given field (used to indicate in the client the field must be completed) |
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 |
Constructor Detail |
---|
public ViewPresentationControllerBase()
Method Detail |
---|
public Set<String> getActionFlags(View view, UifFormBase model)
getActionFlags
in interface ViewPresentationController
ViewPresentationController.getActionFlags(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.web.form.UifFormBase)
public Set<String> getEditModes(View view, UifFormBase model)
getEditModes
in interface ViewPresentationController
ViewPresentationController.getEditModes(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.web.form.UifFormBase)
public boolean canEditView(View view, ViewModel model)
ViewPresentationController
canEditView
in interface ViewPresentationController
view
- - view instance to check whether editing is allowedmodel
- - object containing the view data
ViewPresentationController.canEditView(org.kuali.rice.krad.uif.view.View, org.kuali.rice.krad.uif.view.ViewModel)
public boolean canEditField(View view, ViewModel model, Field field, String propertyName)
ViewPresentationController
canEditField
in interface ViewPresentationController
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)
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)
public boolean canViewField(View view, ViewModel model, Field field, String propertyName)
ViewPresentationController
canViewField
in interface ViewPresentationController
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)
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)
public boolean fieldIsRequired(View view, ViewModel model, Field field, String propertyName)
ViewPresentationController
fieldIsRequired
in interface ViewPresentationController
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)
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)
public boolean canEditGroup(View view, ViewModel model, Group group, String groupId)
canEditGroup
in interface ViewPresentationController
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)
public boolean canViewGroup(View view, ViewModel model, Group group, String groupId)
canViewGroup
in interface ViewPresentationController
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)
public boolean canEditWidget(View view, ViewModel model, Widget widget, String widgetId)
canEditWidget
in interface ViewPresentationController
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)
public boolean canViewWidget(View view, ViewModel model, Widget widget, String widgetId)
canViewWidget
in interface ViewPresentationController
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)
public boolean canPerformAction(View view, ViewModel model, Action action, String actionEvent, String actionId)
canPerformAction
in interface ViewPresentationController
ViewPresentationController.canPerformAction(org.kuali.rice.krad.uif.view.View,
org.kuali.rice.krad.uif.view.ViewModel, org.kuali.rice.krad.uif.element.Action, java.lang.String,
java.lang.String)
public boolean canEditLine(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line)
canEditLine
in interface ViewPresentationController
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)
public boolean canViewLine(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line)
canViewLine
in interface ViewPresentationController
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)
public boolean canEditLineField(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Field field, String propertyName)
canEditLineField
in interface ViewPresentationController
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)
public boolean canViewLineField(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Field field, String propertyName)
canViewLineField
in interface ViewPresentationController
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)
public boolean canPerformLineAction(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Action action, String actionEvent, String actionId)
canPerformLineAction
in interface ViewPresentationController
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.element.Action, java.lang.String,
java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |