org.kuali.rice.krad.uif.view
Interface ViewPresentationController

All Known Implementing Classes:
DocumentViewPresentationControllerBase, InquiryViewPresentationControllerBase, LookupViewPresentationControllerBase, MaintenanceViewPresentationControllerBase, ViewPresentationControllerBase

public interface ViewPresentationController

Configured for a View instance to provide conditional 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
 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)
           
 

Method Detail

getActionFlags

Set<String> getActionFlags(View view,
                           UifFormBase model)

getEditModes

Set<String> getEditModes(View view,
                         UifFormBase model)

canEditView

boolean canEditView(View view,
                    ViewModel model)
Determines if the the given view and data is allowed to be edited

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

canEditField

boolean canEditField(View view,
                     ViewModel model,
                     Field field,
                     String propertyName)

canViewField

boolean canViewField(View view,
                     ViewModel model,
                     Field field,
                     String propertyName)

fieldIsRequired

boolean fieldIsRequired(View view,
                        ViewModel model,
                        Field field,
                        String propertyName)

canEditGroup

boolean canEditGroup(View view,
                     ViewModel model,
                     Group group,
                     String groupId)

canViewGroup

boolean canViewGroup(View view,
                     ViewModel model,
                     Group group,
                     String groupId)

canEditWidget

boolean canEditWidget(View view,
                      ViewModel model,
                      Widget widget,
                      String widgetId)

canViewWidget

boolean canViewWidget(View view,
                      ViewModel model,
                      Widget widget,
                      String widgetId)

canPerformAction

boolean canPerformAction(View view,
                         ViewModel model,
                         ActionField actionField,
                         String actionEvent,
                         String actionId)

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

boolean canEditLineField(View view,
                         ViewModel model,
                         CollectionGroup collectionGroup,
                         String collectionPropertyName,
                         Object line,
                         Field field,
                         String propertyName)

canViewLineField

boolean canViewLineField(View view,
                         ViewModel model,
                         CollectionGroup collectionGroup,
                         String collectionPropertyName,
                         Object line,
                         Field field,
                         String propertyName)

canPerformLineAction

boolean canPerformLineAction(View view,
                             ViewModel model,
                             CollectionGroup collectionGroup,
                             String collectionPropertyName,
                             Object line,
                             ActionField actionField,
                             String actionEvent,
                             String actionId)


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