| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.student.common.assembly.dictionary.old.MetadataServiceImpl
@Deprecated public class MetadataServiceImpl
This class provides metadata lookup services for orchestration objects. TODO: 1) Handle type state configuration & better caching 2) Differentiate b/w metadata structure required for client vs. assemblers 3) Namespace collision b/w service dictionaries and orchestration dictionary?
| Nested Class Summary | |
|---|---|
| private static class | MetadataServiceImpl.RecursionCounterDeprecated. | 
| Field Summary | |
|---|---|
| private  Map<String,DictionaryService> | dictionaryServiceMapDeprecated. | 
| (package private)  Logger | LOGDeprecated. | 
| private  Map<String,Object> | metadataRepositoryDeprecated. | 
| Constructor Summary | |
|---|---|
| MetadataServiceImpl(DictionaryService... dictionaryServices)Deprecated. | |
| MetadataServiceImpl(String metadataContext)Deprecated. Create a Metadata service initialized using a given classpath metadata context file | |
| MetadataServiceImpl(String metadataContext,
                                       DictionaryService... dictionaryServices)Deprecated. | |
| Method Summary | |
|---|---|
| protected  Data.Value | convertDefaultValue(Data.DataType dataType,
                                       Object value)Deprecated. Convert Object value to respective DataType. | 
| protected  Data.DataType | convertDictionaryDataType(String dataType)Deprecated. | 
| protected  List<ConstraintMetadata> | copyConstraints(ConstraintDescriptor constraintDescriptor)Deprecated. | 
|  Metadata | getMetadata(String objectKey,
                       String type,
                       String state)Deprecated. This method gets the metadata for the given object key | 
| protected  Metadata | getMetadataFromDictionaryService(String objectKey,
                                                                 String type,
                                                                 String state)Deprecated. This invokes the appropriate dictionary service to get the object structure and then converts it to a metadata structure. | 
| protected  State | getObjectState(ObjectStructure objectStructure,
                             String type,
                             String state)Deprecated. This method retrieves the desire object state for the object structure. | 
| protected  ObjectStructure | getObjectStructure(String objectKey)Deprecated. This method gets the object structure for given objectKey from a dictionaryService | 
| protected  Map<String,Metadata> | getProperties(DataObjectStructure dataObjectStructure,
                           MetadataServiceImpl.RecursionCounter counter)Deprecated. | 
| private  Map<String,Metadata> | getProperties(List<Field> fields,
                           String type,
                           String state)Deprecated. This method is used to convert a list of dictionary fields into metadata properties | 
| private  void | init(String metadataContext,
         DictionaryService... dictionaryServices)Deprecated. | 
| protected  boolean | isRepeating(DataFieldDescriptor field)Deprecated. This method determines if a field is a repeating field | 
| protected  boolean | isRepeating(Field field)Deprecated. This method determines if a field is repeating | 
| protected  void | loadProperties(Map<String,Metadata> properties,
                             List<DataFieldDescriptor> fields,
                             MetadataServiceImpl.RecursionCounter counter)Deprecated. Retreives data object structure from the spring file and caches the properties | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
final Logger LOG
private Map<String,Object> metadataRepository
private Map<String,DictionaryService> dictionaryServiceMap
| Constructor Detail | 
|---|
public MetadataServiceImpl(String metadataContext)
metadataContext - the classpath metadata context filepublic MetadataServiceImpl(DictionaryService... dictionaryServices)
public MetadataServiceImpl(String metadataContext,
                           DictionaryService... dictionaryServices)
| Method Detail | 
|---|
private void init(String metadataContext,
                  DictionaryService... dictionaryServices)
public Metadata getMetadata(String objectKey,
                            String type,
                            String state)
objectKey - type - state - 
protected void loadProperties(Map<String,Metadata> properties,
                              List<DataFieldDescriptor> fields,
                              MetadataServiceImpl.RecursionCounter counter)
properties - fields - protected boolean isRepeating(DataFieldDescriptor field)
field - 
protected Map<String,Metadata> getProperties(DataObjectStructure dataObjectStructure,
                                             MetadataServiceImpl.RecursionCounter counter)
protected Metadata getMetadataFromDictionaryService(String objectKey,
                                                    String type,
                                                    String state)
objectKey - type - state - 
private Map<String,Metadata> getProperties(List<Field> fields,
                                           String type,
                                           String state)
fields - type - state - 
protected boolean isRepeating(Field field)
field - 
protected ObjectStructure getObjectStructure(String objectKey)
objectKey - 
protected State getObjectState(ObjectStructure objectStructure,
                               String type,
                               String state)
objectStructure - type - state - 
protected List<ConstraintMetadata> copyConstraints(ConstraintDescriptor constraintDescriptor)
protected Data.Value convertDefaultValue(Data.DataType dataType,
                                         Object value)
dataType - value - 
protected Data.DataType convertDictionaryDataType(String dataType)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||