public class DataDictionary extends Object
Modifier and Type | Field and Description |
---|---|
protected List<String> |
configFileLocations |
protected KualiDefaultListableBeanFactory |
ddBeans |
protected DataDictionaryIndex |
ddIndex
The encapsulation of DataDictionary indices
|
protected DataDictionaryMapper |
ddMapper
The DataDictionaryMapper
The default mapper simply consults the initialized indices
on workflow document type
|
static PersistenceStructureService |
persistenceStructureService |
protected UifDictionaryIndex |
uifIndex |
protected org.springframework.beans.factory.xml.XmlBeanDefinitionReader |
xmlReader |
Constructor and Description |
---|
DataDictionary() |
Modifier and Type | Method and Description |
---|---|
void |
addConfigFileLocation(String location) |
static PropertyDescriptor |
buildReadDescriptor(Class propertyClass,
String propertyName) |
static PropertyDescriptor |
buildSimpleReadDescriptor(Class propertyClass,
String propertyName) |
boolean |
containsDictionaryObject(String id)
Indicates whether the data dictionary contains a bean with the given id
|
Set<InactivationBlockingMetadata> |
getAllInactivationBlockingMetadatas(Class blockedClass) |
static Class |
getAttributeClass(Class boClass,
String attributeName)
This method determines the Class of the attributeName passed in.
|
List<String> |
getBusinessObjectClassNames() |
Map<String,BusinessObjectEntry> |
getBusinessObjectEntries() |
BusinessObjectEntry |
getBusinessObjectEntry(String className)
Deprecated.
|
BusinessObjectEntry |
getBusinessObjectEntryForConcreteClass(String className)
This method gets the business object entry for a concrete class
|
static Class |
getCollectionElementClass(Class boClass,
String collectionName)
This method determines the Class of the elements in the collectionName passed in.
|
List<String> |
getConfigFileLocations() |
DataObjectEntry |
getDataObjectEntry(String className) |
Object |
getDictionaryObject(String beanName)
Returns an object from the dictionary by its spring bean name
|
DataDictionaryEntry |
getDictionaryObjectEntry(String className) |
Map<String,DocumentEntry> |
getDocumentEntries() |
DocumentEntry |
getDocumentEntry(String documentTypeDDKey)
Returns the KNS document entry for the given lookup key.
|
protected org.springframework.core.io.Resource |
getFileResource(String sourceName) |
MaintenanceDocumentEntry |
getMaintenanceDocumentEntryForBusinessObjectClass(Class<?> businessObjectClass)
Note: only MaintenanceDocuments are indexed by businessObject Class
This is a special case that is referenced in one location.
|
static PersistenceStructureService |
getPersistenceStructureService() |
View |
getViewById(String viewId)
Returns the View entry identified by the given id
|
View |
getViewByTypeIndex(UifConstants.ViewType viewTypeName,
Map<String,String> indexKey)
Returns View instance identified by the view type name and index
|
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
View prototypes configured for the given view type
name |
static boolean |
isCollectionPropertyOf(Class targetClass,
String propertyName) |
static boolean |
isPropertyOf(Class targetClass,
String propertyName) |
void |
parseDataDictionaryConfigurationFiles(boolean allowConcurrentValidation) |
void |
performBeanOverrides()
This method gathers beans of type BeanOverride and invokes each one's performOverride() method.
|
void |
setConfigFileLocations(List<String> configFileLocations) |
void |
setDataDictionaryMapper(DataDictionaryMapper mapper)
Sets the DataDictionaryMapper
|
void |
validateDD() |
void |
validateDD(boolean validateEbos) |
boolean |
viewByTypeExist(UifConstants.ViewType viewTypeName,
Map<String,String> indexKey)
Indicates whether a
View exists for the given view type and index information |
protected KualiDefaultListableBeanFactory ddBeans
protected org.springframework.beans.factory.xml.XmlBeanDefinitionReader xmlReader
protected DataDictionaryIndex ddIndex
protected UifDictionaryIndex uifIndex
protected DataDictionaryMapper ddMapper
protected List<String> configFileLocations
public static PersistenceStructureService persistenceStructureService
public DataDictionary()
public List<String> getConfigFileLocations()
public void setConfigFileLocations(List<String> configFileLocations)
public void addConfigFileLocation(String location) throws IOException
IOException
public void setDataDictionaryMapper(DataDictionaryMapper mapper)
mapper
- the datadictionary mapperprotected org.springframework.core.io.Resource getFileResource(String sourceName)
public void parseDataDictionaryConfigurationFiles(boolean allowConcurrentValidation)
public void validateDD(boolean validateEbos)
public void validateDD()
@Deprecated public BusinessObjectEntry getBusinessObjectEntry(String className)
className
- public DataObjectEntry getDataObjectEntry(String className)
className
- public BusinessObjectEntry getBusinessObjectEntryForConcreteClass(String className)
className
- public List<String> getBusinessObjectClassNames()
public Map<String,BusinessObjectEntry> getBusinessObjectEntries()
public DataDictionaryEntry getDictionaryObjectEntry(String className)
className
- public DocumentEntry getDocumentEntry(String documentTypeDDKey)
documentTypeDDKey
- the KEW/workflow document type namepublic MaintenanceDocumentEntry getMaintenanceDocumentEntryForBusinessObjectClass(Class<?> businessObjectClass)
businessObjectClass
- public Map<String,DocumentEntry> getDocumentEntries()
public View getViewById(String viewId)
viewId
- - unique id for viewpublic View getViewByTypeIndex(UifConstants.ViewType viewTypeName, Map<String,String> indexKey)
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 instancepublic boolean viewByTypeExist(UifConstants.ViewType viewTypeName, Map<String,String> indexKey)
View
exists for the given view type and index informationviewTypeName
- - 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(UifConstants.ViewType viewTypeName)
View
prototypes configured for the given view type
nameviewTypeName
- - view type name to retrievepublic Object getDictionaryObject(String beanName)
beanName
- - id or name for the bean definitionpublic boolean containsDictionaryObject(String id)
id
- - id of the bean to check forpublic 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 retrievepublic 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 instancepublic static boolean isPropertyOf(Class targetClass, String propertyName)
targetClass
- propertyName
- CompletionException
- if there is a problem accessing the named property on the given classpublic static boolean isCollectionPropertyOf(Class targetClass, String propertyName)
targetClass
- propertyName
- CompletionException
- if there is a problem accessing the named property on the given classpublic static PersistenceStructureService getPersistenceStructureService()
public static Class getAttributeClass(Class boClass, String attributeName)
boClass
- - Class that the attributeName property exists in.attributeName
- - Name of the attribute you want a class for.public static Class getCollectionElementClass(Class boClass, String collectionName)
boClass
- Class that the collectionName collection exists in.collectionName
- the name of the collection you want the element class forpublic static PropertyDescriptor buildReadDescriptor(Class propertyClass, String propertyName)
propertyClass
- propertyName
- public static PropertyDescriptor buildSimpleReadDescriptor(Class propertyClass, String propertyName)
propertyClass
- propertyName
- public Set<InactivationBlockingMetadata> getAllInactivationBlockingMetadatas(Class blockedClass)
public void performBeanOverrides()
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.