|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.common.assembly.transform.TransformationManager
public class TransformationManager
Field Summary | |
---|---|
private List<TransformFilter> |
filterList
|
(package private) Logger |
LOG
|
private DataBeanMapper |
mapper
|
private static ThreadLocal<Metadata> |
metadataCache
|
private MetadataServiceImpl |
metadataService
|
Constructor Summary | |
---|---|
TransformationManager()
|
Method Summary | |
---|---|
void |
addFilter(TransformFilter filter)
|
void |
applyInboundFilters(String dtoName,
Object value,
Map<String,Object> properties,
Metadata metadata)
This method applies all inbound filters known to his transformation manager. |
void |
applyMetadataFilters(String dtoName,
Metadata metadata,
Map<String,Object> filterProperties)
|
void |
applyOutboundFilters(String dtoName,
Object value,
Map<String,Object> properties)
This method applies all outbound filters known to his transformation manager. |
Metadata |
getMetadata(String dtoName,
Map<String,Object> filterProperties)
|
Metadata |
getUnfilteredMetadata(String dtoName)
|
void |
removeFilter(TransformFilter filter)
|
void |
setFilters(List<TransformFilter> filters)
|
void |
setMetadataService(MetadataServiceImpl metadataService)
|
Object |
transform(Data value,
Class<?> clazz)
This is an inbound transform request which will convert incoming Data objects to the corresponding DTO object and apply inbound filter operations to both the data object and the converted DTO object. |
Object |
transform(Data value,
Class<?> clazz,
Map<String,Object> filterProperties)
This is an inbound transform request which will convert incoming Data objects to the corresponding DTO object and apply inbound filters to both the data object and the converted DTO object. |
Data |
transform(Object value)
This is an outbound transform request which will convert incoming DTO objects to a Data map and apply outbound filter operation to both the data object and the converted DTO object. |
Data |
transform(Object value,
Map<String,Object> filterProperties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final Logger LOG
private MetadataServiceImpl metadataService
private DataBeanMapper mapper
private List<TransformFilter> filterList
private static ThreadLocal<Metadata> metadataCache
Constructor Detail |
---|
public TransformationManager()
Method Detail |
---|
public Data transform(Object value) throws Exception
value
-
Exception
public Data transform(Object value, Map<String,Object> filterProperties) throws Exception
Exception
public Object transform(Data value, Class<?> clazz) throws Exception
value
- The incoming Data value to transform to DTO objectclazz
- The DTO object class represented by the Data value
Exception
public Object transform(Data value, Class<?> clazz, Map<String,Object> filterProperties) throws Exception
value
- The incoming Data value to transform to DTO objectclazz
- The DTO object class represented by the Data valuefilterProperties
- properties that can be consumed by the filters
Exception
public void applyInboundFilters(String dtoName, Object value, Map<String,Object> properties, Metadata metadata) throws Exception
dtoName
- The name of the dto represented by a Data value, for Dto values,
this can simply be the name of the dto classvalue
- The dto or data object to apply filters to
Exception
public void applyOutboundFilters(String dtoName, Object value, Map<String,Object> properties) throws Exception
dtoName
- The name of the dto represented by a Data value, for Dto values,
this can simply be the name of the dto classvalue
- The dto or data object to apply filters to
Exception
public Metadata getMetadata(String dtoName, Map<String,Object> filterProperties)
public void applyMetadataFilters(String dtoName, Metadata metadata, Map<String,Object> filterProperties)
public Metadata getUnfilteredMetadata(String dtoName)
public void setMetadataService(MetadataServiceImpl metadataService)
public void addFilter(TransformFilter filter)
public void setFilters(List<TransformFilter> filters)
public void removeFilter(TransformFilter filter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |