You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by jb...@apache.org on 2013/01/29 14:41:07 UTC

svn commit: r1439890 - in /syncope/trunk: client/src/main/java/org/apache/syncope/client/services/proxy/ common/src/main/java/org/apache/syncope/common/services/ core/src/test/java/org/apache/syncope/core/rest/

Author: jbernhardt
Date: Tue Jan 29 13:41:06 2013
New Revision: 1439890

URL: http://svn.apache.org/viewvc?rev=1439890&view=rev
Log:
[SYNCOPE-231]
* Adding JAX-RS annotations to RoleService
* Code Cleanup

Modified:
    syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/RoleServiceProxy.java
    syncope/trunk/common/src/main/java/org/apache/syncope/common/services/RoleService.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java

Modified: syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/RoleServiceProxy.java
URL: http://svn.apache.org/viewvc/syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/RoleServiceProxy.java?rev=1439890&r1=1439889&r2=1439890&view=diff
==============================================================================
--- syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/RoleServiceProxy.java (original)
+++ syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/RoleServiceProxy.java Tue Jan 29 13:41:06 2013
@@ -22,8 +22,6 @@ import java.net.URI;
 import java.util.Arrays;
 import java.util.List;
 
-import javax.ws.rs.NotFoundException;
-import javax.ws.rs.NotSupportedException;
 import javax.ws.rs.ServiceUnavailableException;
 import javax.ws.rs.core.Response;
 

Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/services/RoleService.java
URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/services/RoleService.java?rev=1439890&r1=1439889&r2=1439890&view=diff
==============================================================================
--- syncope/trunk/common/src/main/java/org/apache/syncope/common/services/RoleService.java (original)
+++ syncope/trunk/common/src/main/java/org/apache/syncope/common/services/RoleService.java Tue Jan 29 13:41:06 2013
@@ -77,7 +77,9 @@ public interface RoleService {
     @Path("search/count")
     int searchCount(NodeCond searchCondition);
 
-    RoleTO selfRead(Long roleId);
+    @GET
+    @Path("{roleId}/own")
+    RoleTO selfRead(@PathParam("roleId") Long roleId);
 
     @POST
     @Path("{roleId}")

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java?rev=1439890&r1=1439889&r2=1439890&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java Tue Jan 29 13:41:06 2013
@@ -47,7 +47,7 @@ import org.springframework.web.client.Ht
 @FixMethodOrder(MethodSorters.JVM)
 public class ReportTestITCase extends AbstractTest {
 
-    ReportTO createReport(final ReportTO report) {
+    public ReportTO createReport(final ReportTO report) {
         Response response = reportService.create(report);
         return getObject(response, ReportTO.class, reportService);
     }