You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by fm...@apache.org on 2013/01/03 17:09:38 UTC

svn commit: r1428429 - /syncope/branches/1_0_X/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java

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);
         }