You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2013/04/19 10:28:09 UTC

svn commit: r1469739 - /syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/ReportRestClient.java

Author: ilgrosso
Date: Fri Apr 19 08:28:09 2013
New Revision: 1469739

URL: http://svn.apache.org/r1469739
Log:
[SYNCOPE-361] Fixing ReportService#create invocation

Modified:
    syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/ReportRestClient.java

Modified: syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/ReportRestClient.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/ReportRestClient.java?rev=1469739&r1=1469738&r2=1469739&view=diff
==============================================================================
--- syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/ReportRestClient.java (original)
+++ syncope/branches/1_1_X/console/src/main/java/org/apache/syncope/console/rest/ReportRestClient.java Fri Apr 19 08:28:09 2013
@@ -59,10 +59,8 @@ public class ReportRestClient extends Ba
         return getService(ReportService.class).count();
     }
 
-    public ReportTO create(final ReportTO reportTO) {
-        Response response = getService(ReportService.class).create(reportTO);
-        Long reportId = (Long) response.getEntity();
-        return getService(ReportService.class).read(reportId);
+    public void create(final ReportTO reportTO) {
+        getService(ReportService.class).create(reportTO);
     }
 
     public void update(final ReportTO reportTO) {