← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14487: minor fix

 

------------------------------------------------------------
revno: 14487
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-03-27 13:02:34 +0100
message:
  minor fix
modified:
  dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/render/DefaultRenderService.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/render/DefaultRenderService.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/render/DefaultRenderService.java	2014-03-27 11:55:28 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/render/DefaultRenderService.java	2014-03-27 12:02:34 +0000
@@ -82,19 +82,19 @@
     @Override
     public <T> void toXml( OutputStream output, T value ) throws IOException
     {
-
+        xmlMapper.writeValue( output, value );
     }
 
     @Override
     public <T> void toXml( OutputStream output, T value, Class<?> klass ) throws IOException
     {
-
+        xmlMapper.writerWithView( klass ).writeValue( output, value );
     }
 
     @Override
     public <T> T fromXml( InputStream input, Class<T> klass ) throws IOException
     {
-        return null;
+        return xmlMapper.readValue( input, klass );
     }
 
     //--------------------------------------------------------------------------