|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewPresentationController
Configured for a View
instance to provide conditional authorization logic
based on any variable (view configuration, system parameters, ...) that does
not depend on the current user
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)
|
Method Detail |
---|
Set<String> getActionFlags(View view, UifFormBase model)
Set<String> getEditModes(View view, UifFormBase model)
boolean canEditView(View view, ViewModel model)
view
- - view instance to check whether editing is allowedmodel
- - object containing the view data
boolean canEditField(View view, ViewModel model, Field field, String propertyName)
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)
boolean canViewField(View view, ViewModel model, Field field, String propertyName)
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)
boolean fieldIsRequired(View view, ViewModel model, Field field, String propertyName)
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)
boolean canEditGroup(View view, ViewModel model, Group group, String groupId)
boolean canViewGroup(View view, ViewModel model, Group group, String groupId)
boolean canEditWidget(View view, ViewModel model, Widget widget, String widgetId)
boolean canViewWidget(View view, ViewModel model, Widget widget, String widgetId)
boolean canPerformAction(View view, ViewModel model, Action action, String actionEvent, String actionId)
boolean canEditLine(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line)
boolean canViewLine(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 canViewLineField(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Field field, String propertyName)
boolean canPerformLineAction(View view, ViewModel model, CollectionGroup collectionGroup, String collectionPropertyName, Object line, Action action, String actionEvent, String actionId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |