Author: fmartelli Date: Thu Jan 3 16:24:27 2013 New Revision: 1428451 URL: http://svn.apache.org/viewvc?rev=1428451&view=rev Log: Fixes SYNCOPE-255
Modified: syncope/trunk/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java Modified: syncope/trunk/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java URL: http://svn.apache.org/viewvc/syncope/trunk/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java?rev=1428451&r1=1428450&r2=1428451&view=diff ============================================================================== --- syncope/trunk/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java (original) +++ syncope/trunk/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java Thu Jan 3 16:24:27 2013 @@ -122,19 +122,6 @@ public class PolicyRestClient extends Ba 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); }