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 |
---|---|
protected DataDictionaryService |
getDataDictionaryService() |
View |
getViewById(String viewId)
Returns the
View entry identified by the given id |
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 |
String |
getViewIdForViewType(UifConstants.ViewType viewType,
Map<String,String> parameters)
Retrieves the view id for the view associated with the given view type and view type parameters
|
ViewTypeService |
getViewTypeService(UifConstants.ViewType viewType) |
List<ViewTypeService> |
getViewTypeServices() |
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService) |
void |
setViewTypeServices(List<ViewTypeService> viewTypeServices) |
public ViewServiceImpl()
public View getViewById(String viewId)
ViewService
View
entry identified by the given id
The id matches the id configured for the View through the dictionary. A new view instance is returned that is in the created state
getViewById
in interface ViewService
viewId
- - unique id for view configured on its definitionViewService.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 ViewService
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 typeorg.kuali.rice.krad.uif.service.ViewService#getViewByType(org.kuali.rice.krad.uif.UifConstants.ViewType,
java.util.Map)
public String getViewIdForViewType(UifConstants.ViewType viewType, Map<String,String> parameters)
ViewService
getViewIdForViewType
in interface ViewService
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 typeorg.kuali.rice.krad.uif.service.ViewService#getViewIdForViewType(org.kuali.rice.krad.uif.UifConstants.ViewType,
java.util.Map)
public ViewTypeService getViewTypeService(UifConstants.ViewType viewType)
getViewTypeService
in interface ViewService
public 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.