Fixing the policy listing issue

merge-requests/7/head
geethkokila 9 years ago
parent 30dfa7600e
commit 11ead87a5e

@ -85,7 +85,17 @@ public class PolicyCacheManagerImpl implements PolicyCacheManager {
for (Policy policy : cachedPolicy) {
log.debug("Policy id in cache .. : " + policy.getId() + " policy name : " + policy.
getPolicyName() + " Activated : " + policy.isActive());
List<String> users = policy.getUsers();
for (String user : users) {
log.debug("Users in cached policy : " + user);
}
List<String> roles = policy.getRoles();
for (String role : roles) {
log.debug("Roles in cached policy : " + role);
}
}
}
return lCache.get(1);

@ -68,7 +68,7 @@ public class PolicyAdministratorPointImpl implements PolicyAdministratorPoint {
// } catch (PolicyDelegationException e) {
// throw new PolicyManagementException("Error occurred while delegating policy operation to the devices", e);
// }
PolicyCacheManagerImpl.getInstance().addPolicy(resultantPolicy);
PolicyCacheManagerImpl.getInstance().rePopulateCache();
return resultantPolicy;
}
@ -80,7 +80,7 @@ public class PolicyAdministratorPointImpl implements PolicyAdministratorPoint {
// } catch (PolicyDelegationException e) {
// throw new PolicyManagementException("Error occurred while delegating policy operation to the devices", e);
// }
PolicyCacheManagerImpl.getInstance().updatePolicy(resultantPolicy);
PolicyCacheManagerImpl.getInstance().rePopulateCache();
return resultantPolicy;
}

Loading…
Cancel
Save