syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject svn commit: r1428429 - /syncope/branches/1_0_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java
Date Thu, 03 Jan 2013 16:09:38 GMT
Author: fmartelli
Date: Thu Jan  3 16:09:37 2013
New Revision: 1428429

URL: http://svn.apache.org/viewvc?rev=1428429&view=rev
Log:
removed global policy as required by SYNCOPE-255

Modified:
    syncope/branches/1_0_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java

Modified: syncope/branches/1_0_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_0_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java?rev=1428429&r1=1428428&r2=1428429&view=diff
==============================================================================
--- syncope/branches/1_0_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java
(original)
+++ syncope/branches/1_0_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java
Thu Jan  3 16:09:37 2013
@@ -122,19 +122,6 @@ public class PolicyRestClient extends Ab
                 res.addAll(Arrays.asList(policies));
             }
 
-            PolicyTO globalPolicy = null;
-
-            try {
-                globalPolicy = (T) SyncopeSession.get().getRestTemplate().getForObject(
-                        baseURL + "policy/" + policy + "/global/read", globalReference);
-            } catch (Exception ignore) {
-                LOG.warn("No global policy found", ignore);
-            }
-
-            if (globalPolicy != null) {
-                res.add(0, (T) globalPolicy);
-            }
-
         } catch (Exception ignore) {
             LOG.error("No policy found", ignore);
         }



Mime
View raw message