org.kuali.student.common.assembly.dictionary.old
Class MetadataServiceImpl

java.lang.Object
  extended by org.kuali.student.common.assembly.dictionary.old.MetadataServiceImpl

Deprecated.

@Deprecated
public class MetadataServiceImpl
extends Object

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?

Author:
Kuali Student Team

Nested Class Summary
private static class MetadataServiceImpl.RecursionCounter
          Deprecated.  
 
Field Summary
private  Map<String,DictionaryService> dictionaryServiceMap
          Deprecated.  
(package private)  Logger LOG
          Deprecated.  
private  Map<String,Object> metadataRepository
          Deprecated.  
 
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

LOG

final Logger LOG
Deprecated. 

metadataRepository

private Map<String,Object> metadataRepository
Deprecated. 

dictionaryServiceMap

private Map<String,DictionaryService> dictionaryServiceMap
Deprecated. 
Constructor Detail

MetadataServiceImpl

public MetadataServiceImpl(String metadataContext)
Deprecated. 
Create a Metadata service initialized using a given classpath metadata context file

Parameters:
metadataContext - the classpath metadata context file

MetadataServiceImpl

public MetadataServiceImpl(DictionaryService... dictionaryServices)
Deprecated. 

MetadataServiceImpl

public MetadataServiceImpl(String metadataContext,
                           DictionaryService... dictionaryServices)
Deprecated. 
Method Detail

init

private void init(String metadataContext,
                  DictionaryService... dictionaryServices)
Deprecated. 

getMetadata

public Metadata getMetadata(String objectKey,
                            String type,
                            String state)
Deprecated. 
This method gets the metadata for the given object key

Parameters:
objectKey -
type -
state -
Returns:

loadProperties

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

Parameters:
properties -
fields -

isRepeating

protected boolean isRepeating(DataFieldDescriptor field)
Deprecated. 
This method determines if a field is a repeating field

Parameters:
field -
Returns:

getProperties

protected Map<String,Metadata> getProperties(DataObjectStructure dataObjectStructure,
                                             MetadataServiceImpl.RecursionCounter counter)
Deprecated. 

getMetadataFromDictionaryService

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.

Parameters:
objectKey -
type -
state -
Returns:

getProperties

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

Parameters:
fields -
type -
state -
Returns:

isRepeating

protected boolean isRepeating(Field field)
Deprecated. 
This method determines if a field is repeating

Parameters:
field -
Returns:

getObjectStructure

protected ObjectStructure getObjectStructure(String objectKey)
Deprecated. 
This method gets the object structure for given objectKey from a dictionaryService

Parameters:
objectKey -
Returns:

getObjectState

protected State getObjectState(ObjectStructure objectStructure,
                               String type,
                               String state)
Deprecated. 
This method retrieves the desire object state for the object structure.

Parameters:
objectStructure -
type -
state -
Returns:

copyConstraints

protected List<ConstraintMetadata> copyConstraints(ConstraintDescriptor constraintDescriptor)
Deprecated. 

convertDefaultValue

protected Data.Value convertDefaultValue(Data.DataType dataType,
                                         Object value)
Deprecated. 
Convert Object value to respective DataType. Method return null for object Value.

Parameters:
dataType -
value -
Returns:

convertDictionaryDataType

protected Data.DataType convertDictionaryDataType(String dataType)
Deprecated. 


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