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/02/20 18:26:52 UTC
svn commit: r1448310 - in /syncope/trunk:
client/src/main/java/org/apache/syncope/client/services/proxy/
common/src/main/java/org/apache/syncope/common/services/
core/src/main/java/org/apache/syncope/core/rest/controller/
Author: ilgrosso
Date: Wed Feb 20 17:26:51 2013
New Revision: 1448310
URL: http://svn.apache.org/r1448310
Log:
[SYNCOPE-319][SYNCOPE-209] Turning PUT into POST for ConnectorService#reload, as per Jan suggestion
Modified:
syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/ConnectorServiceProxy.java
syncope/trunk/common/src/main/java/org/apache/syncope/common/services/ConnectorService.java
syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/ConnInstanceController.java
Modified: syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/ConnectorServiceProxy.java
URL: http://svn.apache.org/viewvc/syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/ConnectorServiceProxy.java?rev=1448310&r1=1448309&r2=1448310&view=diff
==============================================================================
--- syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/ConnectorServiceProxy.java (original)
+++ syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/ConnectorServiceProxy.java Wed Feb 20 17:26:51 2013
@@ -117,6 +117,6 @@ public class ConnectorServiceProxy exten
@Override
public void reload() {
- getRestTemplate().put(baseUrl + "connector/reload", null);
+ getRestTemplate().postForLocation(baseUrl + "connector/reload", null);
}
}
Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/services/ConnectorService.java
URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/services/ConnectorService.java?rev=1448310&r1=1448309&r2=1448310&view=diff
==============================================================================
--- syncope/trunk/common/src/main/java/org/apache/syncope/common/services/ConnectorService.java (original)
+++ syncope/trunk/common/src/main/java/org/apache/syncope/common/services/ConnectorService.java Wed Feb 20 17:26:51 2013
@@ -121,6 +121,7 @@ public interface ConnectorService {
/**
* Reload all connector bundles and instances.
*/
- @PUT
+ @POST
+ @Path("reload")
void reload();
}
\ No newline at end of file
Modified: syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/ConnInstanceController.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/ConnInstanceController.java?rev=1448310&r1=1448309&r2=1448310&view=diff
==============================================================================
--- syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/ConnInstanceController.java (original)
+++ syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/ConnInstanceController.java Wed Feb 20 17:26:51 2013
@@ -385,7 +385,7 @@ public class ConnInstanceController exte
}
@PreAuthorize("hasRole('CONNECTOR_RELOAD')")
- @RequestMapping(method = RequestMethod.PUT, value = "/reload")
+ @RequestMapping(method = RequestMethod.POST, value = "/reload")
@Transactional(readOnly = true)
public void reload() {
connFactory.unload();