Class DataDictionaryIndexMapper
java.lang.Object
org.kuali.rice.krad.datadictionary.DataDictionaryIndexMapper
- All Implemented Interfaces:
DataDictionaryMapper
A DataDictionaryMapper that simply consults the statically initialized
DataDictionaryIndex mappings
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllInactivationBlockingMetadatas(DataDictionaryIndex index, Class<?> blockedClass) getBusinessObjectEntry(DataDictionaryIndex index, String className) getBusinessObjectEntryForConcreteClass(DataDictionaryIndex ddIndex, String className) This method gets the business object entry for a concrete classgetDataObjectEntry(DataDictionaryIndex index, String className) getDataObjectEntryForConcreteClass(DataDictionaryIndex ddIndex, String className) This method gets the DataOjectEntry (or subclass) for a concrete classgetDictionaryObjectEntry(DataDictionaryIndex ddIndex, String className) getDocumentEntry(DataDictionaryIndex index, String documentTypeDDKey) Returns the KNS document entry for the given lookup key.getDocumentTypeName(DataDictionaryIndex index, String documentTypeName) Returns mapped document type based on the given document type.getImmutableViewById(UifDictionaryIndex index, String viewId) Gets a view instance from the pool or factory but does not replace the view, meant for view readonly access (not running the lifecycle but just checking configuration)getMaintenanceDocumentEntryForBusinessObjectClass(DataDictionaryIndex index, Class<?> businessObjectClass) Note: only MaintenanceDocuments are indexed by businessObject Class This is a special case that is referenced in one location.getViewById(UifDictionaryIndex index, String viewId) Returns the View entry identified by the given idgetViewByTypeIndex(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Called to retrieve aViewinstance that is of the given type based on the index keygetViewIdByTypeIndex(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Returns the view id for the view that matches the given view type and indexorg.springframework.beans.PropertyValuesgetViewPropertiesById(UifDictionaryIndex index, String viewId) Retrieves the configured property values for the view bean definition associated with the given idorg.springframework.beans.PropertyValuesgetViewPropertiesByType(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Retrieves the configured property values for the view bean definition associated with the given type and indexgetViewsForType(UifDictionaryIndex index, UifConstants.ViewType viewTypeName) Gets allViewprototypes configured for the given view type namebooleanviewByTypeExist(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Indicates whether aViewexists for the given view type and index information
-
Constructor Details
-
DataDictionaryIndexMapper
public DataDictionaryIndexMapper()
-
-
Method Details
-
getAllInactivationBlockingMetadatas
public Set<InactivationBlockingMetadata> getAllInactivationBlockingMetadatas(DataDictionaryIndex index, Class<?> blockedClass) - Specified by:
getAllInactivationBlockingMetadatasin interfaceDataDictionaryMapper- See Also:
-
getBusinessObjectClassNames
- Specified by:
getBusinessObjectClassNamesin interfaceDataDictionaryMapper- Returns:
- List of businessObject classnames
- See Also:
-
getBusinessObjectEntries
- Specified by:
getBusinessObjectEntriesin interfaceDataDictionaryMapper- Returns:
- Map of (classname, BusinessObjectEntry) pairs
- See Also:
-
getDataObjectEntries
- Specified by:
getDataObjectEntriesin interfaceDataDictionaryMapper- Returns:
- Map of (classname, DataObjectEntry) pairs
- See Also:
-
getDataObjectEntryForConcreteClass
public DataObjectEntry getDataObjectEntryForConcreteClass(DataDictionaryIndex ddIndex, String className) Description copied from interface:DataDictionaryMapperThis method gets the DataOjectEntry (or subclass) for a concrete class- Specified by:
getDataObjectEntryForConcreteClassin interfaceDataDictionaryMapper- Parameters:
className-- Returns:
- the DataObjectEntry for the class or null if not found
- See Also:
-
getBusinessObjectEntryForConcreteClass
public BusinessObjectEntry getBusinessObjectEntryForConcreteClass(DataDictionaryIndex ddIndex, String className) This method gets the business object entry for a concrete class- Specified by:
getBusinessObjectEntryForConcreteClassin interfaceDataDictionaryMapper- Parameters:
className-- Returns:
- business object entry
-
getDictionaryObjectEntry
- Specified by:
getDictionaryObjectEntryin interfaceDataDictionaryMapper- Parameters:
className-- Returns:
- DataDictionaryEntryBase for the named class, or null if none exists
-
getDataObjectEntry
- Specified by:
getDataObjectEntryin interfaceDataDictionaryMapper- Parameters:
className-- Returns:
- DataObjectEntry for the named class, or null if none exists
- See Also:
-
getBusinessObjectEntry
- Specified by:
getBusinessObjectEntryin interfaceDataDictionaryMapper- Parameters:
className-- Returns:
- BusinessObjectEntry for the named class, or null if none exists
-
getDocumentEntries
- Specified by:
getDocumentEntriesin interfaceDataDictionaryMapper- See Also:
-
getDocumentEntry
Description copied from interface:DataDictionaryMapperReturns the KNS document entry for the given lookup key. The documentTypeDDKey is interpreted successively in the following ways until a mapping is found (or none if found):- KEW/workflow document type
- business object class name
- maintainable class name
- Specified by:
getDocumentEntryin interfaceDataDictionaryMapper- Parameters:
documentTypeDDKey- the KEW/workflow document type name- Returns:
- the KNS DocumentEntry if it exists
- See Also:
-
getDocumentTypeName
Description copied from interface:DataDictionaryMapperReturns mapped document type based on the given document type.- Specified by:
getDocumentTypeNamein interfaceDataDictionaryMapper- Parameters:
index- data dictionary indexdocumentTypeName- document type name to check for- Returns:
- new document type or null if given documentType was not found.
- See Also:
-
getMaintenanceDocumentEntryForBusinessObjectClass
public MaintenanceDocumentEntry getMaintenanceDocumentEntryForBusinessObjectClass(DataDictionaryIndex index, Class<?> businessObjectClass) Description copied from interface:DataDictionaryMapperNote: only MaintenanceDocuments are indexed by businessObject Class This is a special case that is referenced in one location. Do we need another map for this stuff??- Specified by:
getMaintenanceDocumentEntryForBusinessObjectClassin interfaceDataDictionaryMapper- Parameters:
businessObjectClass-- Returns:
- DocumentEntry associated with the given Class, or null if there is none
- See Also:
-
getViewById
Description copied from interface:DataDictionaryMapperReturns the View entry identified by the given id- Specified by:
getViewByIdin interfaceDataDictionaryMapper- Parameters:
index- - the view dictionary indexviewId- - unique id for view- Returns:
- View instance associated with the id
- See Also:
-
getImmutableViewById
Gets a view instance from the pool or factory but does not replace the view, meant for view readonly access (not running the lifecycle but just checking configuration)- Specified by:
getImmutableViewByIdin interfaceDataDictionaryMapper- Parameters:
index- the view dictionary indexviewId- the unique id for the view- Returns:
- View instance with the given id
-
getViewByTypeIndex
public View getViewByTypeIndex(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Called to retrieve aViewinstance that is of the given type based on the index key- Specified by:
getViewByTypeIndexin interfaceDataDictionaryMapper- Parameters:
index- - the view dictionary indexviewTypeName- - 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- Returns:
- View instance that matches the given index
-
getViewIdByTypeIndex
public String getViewIdByTypeIndex(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Returns the view id for the view that matches the given view type and index- Specified by:
getViewIdByTypeIndexin interfaceDataDictionaryMapper- Parameters:
index- the view dictionary indexviewTypeName- 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- Returns:
- id for the view that matches the view type and index or null if a match is not found
-
viewByTypeExist
public boolean viewByTypeExist(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Indicates whether aViewexists for the given view type and index information- Specified by:
viewByTypeExistin interfaceDataDictionaryMapper- Parameters:
index- - the view dictionary indexviewTypeName- - 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- Returns:
- boolean true if view exists, false if not
-
getViewPropertiesById
public org.springframework.beans.PropertyValues getViewPropertiesById(UifDictionaryIndex index, String viewId) Retrieves the configured property values for the view bean definition associated with the given idSince 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
- Specified by:
getViewPropertiesByIdin interfaceDataDictionaryMapper- Parameters:
index- - the view dictionary indexviewId- - id for the view to retrieve- Returns:
- PropertyValues configured on the view bean definition, or null if view is not found
-
getViewPropertiesByType
public org.springframework.beans.PropertyValues getViewPropertiesByType(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Retrieves the configured property values for the view bean definition associated with the given type and indexSince 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
- Specified by:
getViewPropertiesByTypein interfaceDataDictionaryMapper- Parameters:
index- - the view dictionary indexviewTypeName- - 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- Returns:
- PropertyValues configured on the view bean definition, or null if view is not found
-
getViewsForType
Gets allViewprototypes configured for the given view type name- Specified by:
getViewsForTypein interfaceDataDictionaryMapper- Parameters:
index- - the view dictionary indexviewTypeName- - view type name to retrieve- Returns:
- List<View> view prototypes with the given type name, or empty list
-