|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.datadictionary.DataDictionary
public class DataDictionary
Collection of named BusinessObjectEntry objects, each of which contains information relating to the display, validation, and general maintenance of a BusinessObject.
Field Summary | |
---|---|
private static Map<String,Map<String,PropertyDescriptor>> |
cache
|
protected List<String> |
configFileLocations
|
protected org.springframework.beans.factory.support.DefaultListableBeanFactory |
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 |
private static org.apache.commons.logging.Log |
LOG
|
static PersistenceStructureService |
persistenceStructureService
|
protected UifDictionaryIndex |
uifIndex
|
(package private) static boolean |
validateEBOs
|
protected org.springframework.beans.factory.xml.XmlBeanDefinitionReader |
xmlReader
|
Constructor Summary | |
---|---|
DataDictionary()
|
Method Summary | |
---|---|
void |
addConfigFileLocation(String location)
|
static PropertyDescriptor |
buildReadDescriptor(Class propertyClass,
String propertyName)
|
static PropertyDescriptor |
buildSimpleReadDescriptor(Class propertyClass,
String propertyName)
|
Set<InactivationBlockingMetadata> |
getAllInactivationBlockingMetadatas(Class blockedClass)
|
static Class |
getAttributeClass(Class boClass,
String attributeName)
This method determines the Class of the attributeName passed in. |
private static Class |
getAttributeClassWhenBOIsClass(Class boClass,
String attributeName)
This method gets the property type of the given attributeName when the bo class is a concrete class |
private static Class |
getAttributeClassWhenBOIsInterface(Class boClass,
String attributeName)
This method gets the property type of the given attributeName when the bo class is an interface This method will also work if the bo class is not an interface, but that case requires special handling, hence a separate method getAttributeClassWhenBOIsClass |
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)
|
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(String viewTypeName,
Map<String,String> indexKey)
Returns View instance identified by the view type name and index |
List<View> |
getViewsForType(String viewTypeName)
Gets all View prototypes configured for the given view type
name |
private void |
indexSource(File dir)
|
private void |
indexSource(String sourceName)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.springframework.beans.factory.support.DefaultListableBeanFactory ddBeans
protected org.springframework.beans.factory.xml.XmlBeanDefinitionReader xmlReader
private static final org.apache.commons.logging.Log LOG
protected DataDictionaryIndex ddIndex
protected UifDictionaryIndex uifIndex
protected DataDictionaryMapper ddMapper
protected List<String> configFileLocations
static boolean validateEBOs
public static PersistenceStructureService persistenceStructureService
private static Map<String,Map<String,PropertyDescriptor>> cache
Constructor Detail |
---|
public DataDictionary()
Method Detail |
---|
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 mapperprivate void indexSource(String sourceName) throws IOException
IOException
protected org.springframework.core.io.Resource getFileResource(String sourceName)
private void indexSource(File dir)
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 name
public MaintenanceDocumentEntry getMaintenanceDocumentEntryForBusinessObjectClass(Class<?> businessObjectClass)
businessObjectClass
-
public Map<String,DocumentEntry> getDocumentEntries()
public View getViewById(String viewId)
viewId
- - unique id for view
public View getViewByTypeIndex(String 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 instance
public List<View> getViewsForType(String viewTypeName)
View
prototypes configured for the given view type
name
viewTypeName
- - view type name to retrieve
public static boolean isPropertyOf(Class targetClass, String propertyName)
clazz
- propertyName
-
CompletionException
- if there is a problem accessing the named property on the given classpublic static boolean isCollectionPropertyOf(Class targetClass, String propertyName)
clazz
- 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)
rootClass
- - Class that the attributeName property exists in.attributeName
- - Name of the attribute you want a class for.
private static Class getAttributeClassWhenBOIsClass(Class boClass, String attributeName)
boClass
- attributeName
-
private static Class getAttributeClassWhenBOIsInterface(Class boClass, String attributeName)
boClass
- attributeName
-
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 for
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |