public class ViewServiceImpl extends Object implements ViewService
ViewService
Provides methods for retrieving View instances and carrying out the View
lifecycle methods. Interacts with the configured ViewHelperService
during the view lifecycle
| Constructor and Description |
|---|
ViewServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildView(View view,
Object model,
Map<String,String> parameters) |
protected DataDictionaryService |
getDataDictionaryService() |
View |
getViewById(String viewId) |
View |
getViewByType(UifConstants.ViewType viewType,
Map<String,String> parameters)
Retrieves the
ViewTypeService for the given view type, then builds up the index based
on the supported view type parameters and queries the dictionary service to retrieve the view
based on its type and index |
ViewTypeService |
getViewTypeService(UifConstants.ViewType viewType) |
List<ViewTypeService> |
getViewTypeServices() |
protected void |
performViewLifecycle(View view,
Object model,
Map<String,String> parameters)
Initializes a newly created
View instance. |
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService) |
void |
setViewTypeServices(List<ViewTypeService> viewTypeServices) |
public ViewServiceImpl()
public View getViewById(String viewId)
getViewById in interface ViewServiceViewService.getViewById(java.lang.String)public View getViewByType(UifConstants.ViewType viewType, Map<String,String> parameters)
ViewTypeService for the given view type, then builds up the index based
on the supported view type parameters and queries the dictionary service to retrieve the view
based on its type and indexgetViewByType in interface ViewServiceorg.kuali.rice.krad.uif.service.ViewService#getViewByType(org.kuali.rice.krad.uif.UifConstants.ViewType,
java.util.Map) public void buildView(View view, Object model, Map<String,String> parameters)
buildView in interface ViewServiceorg.kuali.rice.krad.uif.service.ViewService#buildView(org.kuali.rice.krad.uif.view.View, java.lang.Object,
java.util.Map) protected void performViewLifecycle(View view, Object model, Map<String,String> parameters)
View instance. Each component of the tree is invoked
to perform setup based on its configuration. In addition helper service methods are invoked to
perform custom initializationview - - view instance to initializemodel - - object instance containing the view dataparameters - - 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 outpublic ViewTypeService getViewTypeService(UifConstants.ViewType viewType)
getViewTypeService in interface ViewServicepublic List<ViewTypeService> getViewTypeServices()
public void setViewTypeServices(List<ViewTypeService> viewTypeServices)
protected DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.