public class DataDictionaryIndexMapper extends Object implements DataDictionaryMapper
Constructor and Description |
---|
DataDictionaryIndexMapper() |
Modifier and Type | Method and Description |
---|---|
Set<InactivationBlockingMetadata> |
getAllInactivationBlockingMetadatas(DataDictionaryIndex index,
Class<?> blockedClass) |
List<String> |
getBusinessObjectClassNames(DataDictionaryIndex index) |
Map<String,BusinessObjectEntry> |
getBusinessObjectEntries(DataDictionaryIndex index) |
BusinessObjectEntry |
getBusinessObjectEntry(DataDictionaryIndex index,
String className) |
BusinessObjectEntry |
getBusinessObjectEntryForConcreteClass(DataDictionaryIndex ddIndex,
String className)
This method gets the business object entry for a concrete class
|
Map<String,DataObjectEntry> |
getDataObjectEntries(DataDictionaryIndex index) |
DataObjectEntry |
getDataObjectEntry(DataDictionaryIndex index,
String className) |
DataObjectEntry |
getDataObjectEntryForConcreteClass(DataDictionaryIndex ddIndex,
String className)
This method gets the DataOjectEntry (or subclass) for a concrete class
|
DataDictionaryEntry |
getDictionaryObjectEntry(DataDictionaryIndex ddIndex,
String className) |
Map<String,DocumentEntry> |
getDocumentEntries(DataDictionaryIndex index) |
DocumentEntry |
getDocumentEntry(DataDictionaryIndex index,
String documentTypeDDKey)
Returns the KNS document entry for the given lookup key.
|
String |
getDocumentTypeName(DataDictionaryIndex index,
String documentTypeName)
Returns mapped document type based on the given document type.
|
View |
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)
|
MaintenanceDocumentEntry |
getMaintenanceDocumentEntryForBusinessObjectClass(DataDictionaryIndex index,
Class<?> businessObjectClass)
Note: only MaintenanceDocuments are indexed by businessObject Class
This is a special case that is referenced in one location.
|
View |
getViewById(UifDictionaryIndex index,
String viewId)
Returns the View entry identified by the given id
|
View |
getViewByTypeIndex(UifDictionaryIndex index,
UifConstants.ViewType viewTypeName,
Map<String,String> indexKey)
Called to retrieve a
View instance that is of the given type
based on the index key |
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
|
org.springframework.beans.PropertyValues |
getViewPropertiesById(UifDictionaryIndex index,
String viewId)
Retrieves the configured property values for the view bean definition associated with the given id
|
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
index
|
List<View> |
getViewsForType(UifDictionaryIndex index,
UifConstants.ViewType viewTypeName)
Gets all
View prototypes configured for the given view type
name |
boolean |
viewByTypeExist(UifDictionaryIndex index,
UifConstants.ViewType viewTypeName,
Map<String,String> indexKey)
Indicates whether a
View exists for the given view type and index information |
public DataDictionaryIndexMapper()
public Set<InactivationBlockingMetadata> getAllInactivationBlockingMetadatas(DataDictionaryIndex index, Class<?> blockedClass)
public List<String> getBusinessObjectClassNames(DataDictionaryIndex index)
getBusinessObjectClassNames
in interface DataDictionaryMapper
DataDictionaryMapper.getBusinessObjectClassNames(org.kuali.rice.krad.datadictionary.DataDictionaryIndex)
public Map<String,BusinessObjectEntry> getBusinessObjectEntries(DataDictionaryIndex index)
getBusinessObjectEntries
in interface DataDictionaryMapper
DataDictionaryMapper.getBusinessObjectEntries(org.kuali.rice.krad.datadictionary.DataDictionaryIndex)
public Map<String,DataObjectEntry> getDataObjectEntries(DataDictionaryIndex index)
getDataObjectEntries
in interface DataDictionaryMapper
DataDictionaryMapper.getBusinessObjectEntries(org.kuali.rice.krad.datadictionary.DataDictionaryIndex)
public DataObjectEntry getDataObjectEntryForConcreteClass(DataDictionaryIndex ddIndex, String className)
DataDictionaryMapper
getDataObjectEntryForConcreteClass
in interface DataDictionaryMapper
DataDictionaryMapper.getDataObjectEntryForConcreteClass(org.kuali.rice.krad.datadictionary.DataDictionaryIndex,
java.lang.String)
public BusinessObjectEntry getBusinessObjectEntryForConcreteClass(DataDictionaryIndex ddIndex, String className)
getBusinessObjectEntryForConcreteClass
in interface DataDictionaryMapper
public DataDictionaryEntry getDictionaryObjectEntry(DataDictionaryIndex ddIndex, String className)
getDictionaryObjectEntry
in interface DataDictionaryMapper
public DataObjectEntry getDataObjectEntry(DataDictionaryIndex index, String className)
getDataObjectEntry
in interface DataDictionaryMapper
DataDictionaryMapper.getDataObjectEntry(org.kuali.rice.krad.datadictionary.DataDictionaryIndex,
java.lang.String)
public BusinessObjectEntry getBusinessObjectEntry(DataDictionaryIndex index, String className)
getBusinessObjectEntry
in interface DataDictionaryMapper
public Map<String,DocumentEntry> getDocumentEntries(DataDictionaryIndex index)
getDocumentEntries
in interface DataDictionaryMapper
DataDictionaryMapper.getDocumentEntries(org.kuali.rice.krad.datadictionary.DataDictionaryIndex)
public DocumentEntry getDocumentEntry(DataDictionaryIndex index, String documentTypeDDKey)
DataDictionaryMapper
getDocumentEntry
in interface DataDictionaryMapper
documentTypeDDKey
- the KEW/workflow document type nameDataDictionaryMapper.getDocumentEntry(org.kuali.rice.krad.datadictionary.DataDictionaryIndex,
java.lang.String)
public String getDocumentTypeName(DataDictionaryIndex index, String documentTypeName)
DataDictionaryMapper
getDocumentTypeName
in interface DataDictionaryMapper
index
- data dictionary indexdocumentTypeName
- document type name to check forDataDictionaryMapper.getDocumentTypeName(org.kuali.rice.krad.datadictionary.DataDictionaryIndex,
java.lang.String)
public MaintenanceDocumentEntry getMaintenanceDocumentEntryForBusinessObjectClass(DataDictionaryIndex index, Class<?> businessObjectClass)
DataDictionaryMapper
getMaintenanceDocumentEntryForBusinessObjectClass
in interface DataDictionaryMapper
DataDictionaryMapper.getMaintenanceDocumentEntryForBusinessObjectClass(org.kuali.rice.krad.datadictionary.DataDictionaryIndex,
java.lang.Class)
public View getViewById(UifDictionaryIndex index, String viewId)
DataDictionaryMapper
getViewById
in interface DataDictionaryMapper
index
- - the view dictionary indexviewId
- - unique id for viewDataDictionaryMapper.getViewById(org.kuali.rice.krad.datadictionary.uif.UifDictionaryIndex,
java.lang.String)
public View getImmutableViewById(UifDictionaryIndex index, String viewId)
getImmutableViewById
in interface DataDictionaryMapper
index
- the view dictionary indexviewId
- the unique id for the viewpublic View getViewByTypeIndex(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String,String> indexKey)
View
instance that is of the given type
based on the index keygetViewByTypeIndex
in interface DataDictionaryMapper
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 instancepublic String getViewIdByTypeIndex(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String,String> indexKey)
getViewIdByTypeIndex
in interface DataDictionaryMapper
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 instancepublic boolean viewByTypeExist(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String,String> indexKey)
View
exists for the given view type and index informationviewByTypeExist
in interface DataDictionaryMapper
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 instancepublic org.springframework.beans.PropertyValues getViewPropertiesById(UifDictionaryIndex index, 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
getViewPropertiesById
in interface DataDictionaryMapper
index
- - the view dictionary indexviewId
- - id for the view to retrievepublic org.springframework.beans.PropertyValues getViewPropertiesByType(UifDictionaryIndex index, 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
getViewPropertiesByType
in interface DataDictionaryMapper
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 instancepublic List<View> getViewsForType(UifDictionaryIndex index, UifConstants.ViewType viewTypeName)
View
prototypes configured for the given view type
namegetViewsForType
in interface DataDictionaryMapper
index
- - the view dictionary indexviewTypeName
- - view type name to retrieveCopyright © 2005–2016 The Kuali Foundation. All rights reserved.