org.kuali.rice.kns.datadictionary
Class DataDictionaryIndexMapper

java.lang.Object
  extended by org.kuali.rice.kns.datadictionary.DataDictionaryIndexMapper
All Implemented Interfaces:
DataDictionaryMapper

public class DataDictionaryIndexMapper
extends Object
implements DataDictionaryMapper

A DataDictionaryMapper that simply consults the statically initialized DataDictionaryIndex mappings

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private static org.apache.log4j.Logger LOG
           
 
Constructor Summary
DataDictionaryIndexMapper()
           
 
Method Summary
 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
 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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG
Constructor Detail

DataDictionaryIndexMapper

public DataDictionaryIndexMapper()
Method Detail

getAllInactivationBlockingMetadatas

public Set<InactivationBlockingMetadata> getAllInactivationBlockingMetadatas(DataDictionaryIndex index,
                                                                             Class blockedClass)
Specified by:
getAllInactivationBlockingMetadatas in interface DataDictionaryMapper
See Also:
DataDictionaryMapper.getAllInactivationBlockingMetadatas(org.kuali.rice.kns.datadictionary.DataDictionaryIndex, java.lang.Class)

getBusinessObjectClassNames

public List<String> getBusinessObjectClassNames(DataDictionaryIndex index)
Specified by:
getBusinessObjectClassNames in interface DataDictionaryMapper
Returns:
List of businessObject classnames
See Also:
DataDictionaryMapper.getBusinessObjectClassNames(org.kuali.rice.kns.datadictionary.DataDictionaryIndex)

getBusinessObjectEntries

public Map<String,BusinessObjectEntry> getBusinessObjectEntries(DataDictionaryIndex index)
Specified by:
getBusinessObjectEntries in interface DataDictionaryMapper
Returns:
Map of (classname, BusinessObjectEntry) pairs
See Also:
DataDictionaryMapper.getBusinessObjectEntries(org.kuali.rice.kns.datadictionary.DataDictionaryIndex)

getBusinessObjectEntryForConcreteClass

public BusinessObjectEntry getBusinessObjectEntryForConcreteClass(DataDictionaryIndex ddIndex,
                                                                  String className)
Description copied from interface: DataDictionaryMapper
This method gets the business object entry for a concrete class

Specified by:
getBusinessObjectEntryForConcreteClass in interface DataDictionaryMapper
Returns:
See Also:
org.kuali.rice.kns.datadictionary.DataDictionaryMapper#getBusinessObjectEntryForConcreteClass(java.lang.String)

getDictionaryObjectEntry

public DataDictionaryEntry getDictionaryObjectEntry(DataDictionaryIndex ddIndex,
                                                    String className)
Specified by:
getDictionaryObjectEntry in interface DataDictionaryMapper
Returns:
DataDictionaryEntryBase for the named class, or null if none exists
See Also:
DataDictionaryMapper.getDictionaryObjectEntry(org.kuali.rice.kns.datadictionary.DataDictionaryIndex, java.lang.String)

getBusinessObjectEntry

public BusinessObjectEntry getBusinessObjectEntry(DataDictionaryIndex index,
                                                  String className)
Specified by:
getBusinessObjectEntry in interface DataDictionaryMapper
Returns:
BusinessObjectEntry for the named class, or null if none exists

getDocumentEntries

public Map<String,DocumentEntry> getDocumentEntries(DataDictionaryIndex index)
Specified by:
getDocumentEntries in interface DataDictionaryMapper
See Also:
DataDictionaryMapper.getDocumentEntries(org.kuali.rice.kns.datadictionary.DataDictionaryIndex)

getDocumentEntry

public DocumentEntry getDocumentEntry(DataDictionaryIndex index,
                                      String documentTypeDDKey)
Description copied from interface: DataDictionaryMapper
Returns 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):
  1. KEW/workflow document type
  2. business object class name
  3. maintainable class name
This mapping is compiled when DataDictionary files are parsed on startup (or demand). Currently this means the mapping is static, and one-to-one (one KNS document maps directly to one and only one key).

Specified by:
getDocumentEntry in interface DataDictionaryMapper
documentTypeDDKey - the KEW/workflow document type name
Returns:
the KNS DocumentEntry if it exists
See Also:
DataDictionaryMapper.getDocumentEntry(org.kuali.rice.kns.datadictionary.DataDictionaryIndex, java.lang.String)

getDocumentTypeName

public String getDocumentTypeName(DataDictionaryIndex index,
                                  String documentTypeName)
Description copied from interface: DataDictionaryMapper
Returns mapped document type based on the given document type.

Specified by:
getDocumentTypeName in interface DataDictionaryMapper
Returns:
new document type or null if given documentType was not found.
See Also:
DataDictionaryMapper.getDocumentTypeName(org.kuali.rice.kns.datadictionary.DataDictionaryIndex, java.lang.String)

getMaintenanceDocumentEntryForBusinessObjectClass

public MaintenanceDocumentEntry getMaintenanceDocumentEntryForBusinessObjectClass(DataDictionaryIndex index,
                                                                                  Class businessObjectClass)
Description copied from interface: DataDictionaryMapper
Note: 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:
getMaintenanceDocumentEntryForBusinessObjectClass in interface DataDictionaryMapper
Returns:
DocumentEntry associated with the given Class, or null if there is none
See Also:
DataDictionaryMapper.getMaintenanceDocumentEntryForBusinessObjectClass(org.kuali.rice.kns.datadictionary.DataDictionaryIndex, java.lang.Class)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.