| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.datadictionary.UifDictionaryIndex
public class UifDictionaryIndex
Indexes View bean entries for retrieval
 
 This is used to retrieve a View instance by its unique id.
 Furthermore, view of certain types (that have a ViewTypeService
 are indexed by their type to support retrieval of views based on parameters.
 
| Constructor Summary | |
|---|---|
| UifDictionaryIndex(org.springframework.beans.factory.support.DefaultListableBeanFactory ddBeans) | |
| Method Summary | |
|---|---|
| protected  String | buildTypeIndex(Map<String,String> typeParameters)Builds up an index string from the given Map of parameters | 
| protected  void | buildViewIndicies()Initializes the view index Mapthen iterates through all the
 beans in the factory that implementView, adding them to the
 index | 
| protected  ViewTypeDictionaryIndex | getTypeIndex(UifConstants.ViewType viewType)Retrieves the ViewTypeDictionaryIndexinstance for the given
 view type name. | 
|  View | getViewById(String viewId)Retrieves the View instance with the given id from the bean factory. | 
|  View | getViewByTypeIndex(UifConstants.ViewType viewTypeName,
                                     Map<String,String> indexKey)Retrieves a Viewinstance that is of the given type based on
 the index key | 
|  org.springframework.beans.PropertyValues | getViewPropertiesById(String viewId)Retrieves the configured property values for the view bean definition associated with the given id | 
|  org.springframework.beans.PropertyValues | getViewPropertiesByType(UifConstants.ViewType viewTypeName,
                                               Map<String,String> indexKey)Retrieves the configured property values for the view bean definition associated with the given type and index | 
|  List<View> | getViewsForType(UifConstants.ViewType viewTypeName)Gets all Viewprototypes configured for the given view type
 name | 
| protected  void | indexViewForType(org.springframework.beans.PropertyValues propertyValues,
                                 String beanName)Performs additional indexing based on the view type associated with the view instance. | 
|  void | run() | 
|  boolean | viewByTypeExist(UifConstants.ViewType viewTypeName,
                               Map<String,String> indexKey)Indicates whether a Viewexists for the given view type and index information | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public UifDictionaryIndex(org.springframework.beans.factory.support.DefaultListableBeanFactory ddBeans)
| Method Detail | 
|---|
public void run()
run in interface Runnablepublic View getViewById(String viewId)
viewId - - the unique id for the view
View instance
public View getViewByTypeIndex(UifConstants.ViewType viewTypeName,
                               Map<String,String> indexKey)
View instance that is of the given type based on
 the index key
viewTypeName - - type name for the viewindexKey - - Map of index key parameters, these are the parameters the
 indexer used to index the view initially and needs to identify
 an unique view instance
public boolean viewByTypeExist(UifConstants.ViewType viewTypeName,
                               Map<String,String> indexKey)
View exists for the given view type and index information
viewTypeName - - type name for the viewindexKey - - Map of index key parameters, these are the parameters the indexer used to index
 the view initially and needs to identify an unique view instance
public org.springframework.beans.PropertyValues getViewPropertiesById(String viewId)
Since constructing the View object can be expensive, when metadata only is needed this method can be used to retrieve the configured property values. Note this looks at the merged bean definition
viewId - - id for the view to retrieve
public org.springframework.beans.PropertyValues getViewPropertiesByType(UifConstants.ViewType viewTypeName,
                                                                        Map<String,String> indexKey)
Since constructing the View object can be expensive, when metadata only is needed this method can be used to retrieve the configured property values. Note this looks at the merged bean definition
viewTypeName - - type name for the viewindexKey - - Map of index key parameters, these are the parameters the indexer used to index
 the view initially and needs to identify an unique view instance
public List<View> getViewsForType(UifConstants.ViewType viewTypeName)
View prototypes configured for the given view type
 name
viewTypeName - - view type name to retrieve
protected void buildViewIndicies()
Map then iterates through all the
 beans in the factory that implement View, adding them to the
 index
protected void indexViewForType(org.springframework.beans.PropertyValues propertyValues,
                                String beanName)
ViewTypeService associated with the view type name on the instance is invoked to retrieve
 the parameter key/value pairs from the configured property values, which are then used to build up an index
 used to key the entry
propertyValues - - property values configured on the view bean definitionbeanName - - name of the view's bean in Springprotected ViewTypeDictionaryIndex getTypeIndex(UifConstants.ViewType viewType)
ViewTypeDictionaryIndex instance for the given
 view type name. If one does not exist yet for the given name, a new
 instance is created
viewType - - name of the view type to retrieve index for
protected String buildTypeIndex(Map<String,String> typeParameters)
typeParameters - - Map of parameters to use for index
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||