org.kuali.rice.krad.uif.view
Class ViewPresentationControllerBase

java.lang.Object
  extended by 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

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

ViewPresentationControllerBase

public ViewPresentationControllerBase()
Method Detail

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 allowed
model - - 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)
Description copied from interface: ViewPresentationController
Determines if the given field within the view is allowed to be edited

Specified by:
canEditField in interface ViewPresentationController
Parameters:
view - - view instance the field belongs to
model - - object containing the view data
field - - field instance to determine edit authorization for
propertyName - - 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:
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)
Description copied from interface: ViewPresentationController
Determines if the given field within the view is allowed to be viewed

Specified by:
canViewField in interface ViewPresentationController
Parameters:
view - - view instance the field belongs to
model - - object containing the view data
field - - field instance to determine view authorization for
propertyName - - 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:
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)
Description copied from interface: ViewPresentationController
Determines 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:
fieldIsRequired in interface ViewPresentationController
Parameters:
view - - view instance the field belongs to
model - - object containing the view data
field - - field instance to determine required state for
propertyName - - name of the property that field corresponds with (if field is data binding)
Returns:
boolean true if field is required, false otherwise
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,
                                Action action,
                                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.element.Action, 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,
                                    Action action,
                                    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.element.Action, java.lang.String, java.lang.String)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.