|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewService
Provides service methods for retrieving and updating View
instances. The UIF interacts with this service from the client layer to pull
information from the View dictionary and manage the View instance through its
lifecycle
Method Summary | |
---|---|
void |
buildView(View view,
Object model)
Applies updates to the view based on the model data. |
View |
getView(String viewId,
Map<String,String> parameters)
Returns the View entry identified by the given id |
View |
getViewById(String viewId)
Returns the View entry identified by the given id |
View |
getViewByType(String viewType,
Map<String,String> parameters)
Retrieves the View instance that is of the given view type
and matches the given parameters (that are applicable for that type). |
ViewTypeService |
getViewTypeService(String viewType)
|
View |
rebuildView(String viewId,
Object model,
Map<String,String> viewRequestParameters)
Returns the View entry identified by the given id and runs
through the complete lifecycle. |
Method Detail |
---|
View getViewById(String viewId)
View
entry identified by the given id
The id matches the id configured for the View through the dictionary. The view is initialized before being returned
viewId
- - unique id for view configured on its definition
View getView(String viewId, Map<String,String> parameters)
View
entry identified by the given id
The id matches the id configured for the View through the dictionary. The view is initialized before being returned
Any configuration sent through the options Map is used to initialize the View. This map contains present options the view is aware of and will typically come from request parameters. e.g. For maintenance Views there is the maintenance type option (new, edit, copy)
viewId
- - unique id for view configured on its definitionparameters
- - Map of key values pairs that provide configuration for the
View
, this is generally comes from the request
and can be the request parameter Map itself. Any parameters
not valid for the View will be filtered out
View getViewByType(String viewType, Map<String,String> parameters)
View
instance that is of the given view type
and matches the given parameters (that are applicable for that type). If
more than one views exists for the type and parameters, the view type may
choose a default or throw an exception
viewType
- - name that identifies the view typeparameters
- - Map of parameter key/value pairs that are used to select the
view, the parameters allowed depend on the view type
void buildView(View view, Object model)
Performs dynamic generation of fields (such as collection rows), conditional logic, and state updating (conditional hidden, read-only, required).
view
- - view instance to updatemodel
- - Top level object containing the data (could be the form or a
top level business object, dto)View rebuildView(String viewId, Object model, Map<String,String> viewRequestParameters)
View
entry identified by the given id and runs
through the complete lifecycle. Used to rebuild the view on a post before
rendering or on a session timeout
viewId
- - unique id for view configured on its definitionmodel
- - Form object containing the data for the viewviewRequestParameters
- - Map of key values pairs that provide parameters for the
view. This comes from the initial request to set view
properties that have the RequestParameter
annotation
ViewTypeService getViewTypeService(String viewType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |