Package org.kuali.rice.krad.uif.service
Interface ViewService
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- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptiongetViewById(String viewId) Returns theViewentry identified by the given idgetViewByType(UifConstants.ViewType viewType, Map<String, String> parameters) Retrieves theViewinstance that is of the given view type and matches the given parameters (that are applicable for that type).getViewIdForViewType(UifConstants.ViewType viewType, Map<String, String> parameters) Retrieves the view id for the view associated with the given view type and view type parametersgetViewTypeService(UifConstants.ViewType viewType)
-
Method Details
-
getViewById
Returns theViewentry identified by the given idThe id matches the id configured for the View through the dictionary. A new view instance is returned that is in the created state
- Parameters:
viewId- - unique id for view configured on its definition- Returns:
- View instance associated with the id or Null if id is not found
-
getViewByType
Retrieves theViewinstance 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 exceptionIf a view if found for the type parameters, a new instance is returned that is in the created state
- Parameters:
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- Returns:
- View instance or Null if a matching view was not found
-
getViewIdForViewType
Retrieves the view id for the view associated with the given view type and view type parameters- Parameters:
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- Returns:
- id for the view or null if a matching view was not found
-
getViewTypeService
-