dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24586
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12086: return importSummary for person updates (actual update not working yet)
------------------------------------------------------------
revno: 12086
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-09-13 16:17:50 +0200
message:
return importSummary for person updates (actual update not working yet)
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/event/person/JacksonPersonService.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/event/person/JacksonPersonService.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/event/person/JacksonPersonService.java 2013-09-13 13:06:54 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/event/person/JacksonPersonService.java 2013-09-13 14:17:50 +0000
@@ -149,25 +149,18 @@
@Override
public ImportSummary updatePersonXml( String id, InputStream inputStream ) throws IOException
{
- ImportSummary importSummary = new ImportSummary();
Person person = fromXml( inputStream, Person.class );
person.setPerson( id );
- updatePerson( person );
-
- return importSummary;
+ return updatePerson( person );
}
@Override
public ImportSummary updatePersonJson( String id, InputStream inputStream ) throws IOException
{
- ImportSummary importSummary = new ImportSummary();
-
Person person = fromJson( inputStream, Person.class );
person.setPerson( id );
- updatePerson( person );
-
- return importSummary;
+ return updatePerson( person );
}
}