[Yanel-commits] rev 54451 - public/yanel/trunk/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager

michi at wyona.com michi at wyona.com
Fri Nov 5 10:27:16 CET 2010


Author: michi
Date: 2010-11-05 10:27:16 +0100 (Fri, 05 Nov 2010)
New Revision: 54451

Modified:
   public/yanel/trunk/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java
Log:
made policy manager more accessible, such that one can override functionality with custom code

Modified: public/yanel/trunk/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java	2010-11-05 09:07:01 UTC (rev 54450)
+++ public/yanel/trunk/src/contributions/resources/policymanager/src/java/org/wyona/yanel/impl/resources/policymanager/PolicyManagerResource.java	2010-11-05 09:27:16 UTC (rev 54451)
@@ -527,7 +527,7 @@
      * @param orderedBy Allows ordering by usecases or identities
      * @param showParents Show the policies of the parent nodes, which allows to figure out how the policy has been aggregated
      */
-    private StringBuilder getAggregatedPolicyAsXML(String path, String contentItemId, int orderedBy, boolean showParents) throws Exception {
+    protected StringBuilder getAggregatedPolicyAsXML(String path, String contentItemId, int orderedBy, boolean showParents) throws Exception {
         log.warn("DEBUG: Get aggregated policy for path: " + path);
         StringBuilder sb = new StringBuilder();
 
@@ -592,7 +592,7 @@
      * @param groupdId Group ID
      * @param resolvedGroupIDs Resolved group IDs in order to detect loops
      */
-    private User[] resolveGroup(String groupId, List resolvedGroupIDs) throws Exception {
+    protected User[] resolveGroup(String groupId, List resolvedGroupIDs) throws Exception {
         Item[] members = getRealm().getIdentityManager().getGroupManager().getGroup(groupId).getMembers();
         List users = new java.util.ArrayList();
         for (int i = 0; i < members.length; i++) {
@@ -632,7 +632,7 @@
     /**
      * Check whether user is part of merged list
      */
-     private boolean existsWithinMergedList(String userId, List mergedListOfUserPolicies) {
+     protected boolean existsWithinMergedList(String userId, List mergedListOfUserPolicies) {
          for (int i = 0; i < mergedListOfUserPolicies.size(); i++) {
              if (userId.equals(((IdentityPolicy)mergedListOfUserPolicies.get(i)).getId())) {
                  return true;



More information about the Yanel-commits mailing list