portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r694592 - in /portals/jetspeed-2/portal/branches/security-refactoring: components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/RdbmsPolicy.java jetspeed-portal-resources/src/main/resources/assembly/security-atz.xml
Date Fri, 12 Sep 2008 02:44:03 GMT
Author: ate
Date: Thu Sep 11 19:44:03 2008
New Revision: 694592

URL: http://svn.apache.org/viewvc?rev=694592&view=rev
Log:
Fix for the PermissionManager -> JetspeedPermissionManager refactoring

Modified:
    portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/RdbmsPolicy.java
    portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-portal-resources/src/main/resources/assembly/security-atz.xml

Modified: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/RdbmsPolicy.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/RdbmsPolicy.java?rev=694592&r1=694591&r2=694592&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/RdbmsPolicy.java
(original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/RdbmsPolicy.java
Thu Sep 11 19:44:03 2008
@@ -24,12 +24,11 @@
 import java.security.Policy;
 import java.security.Principal;
 import java.security.ProtectionDomain;
-import java.util.Arrays;
 import java.util.List;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.jetspeed.security.PermissionManager;
+import org.apache.jetspeed.security.JetspeedPermissionManager;
 import org.apache.jetspeed.security.SecurityHelper;
 import org.apache.jetspeed.security.SecurityPolicies;
 
@@ -55,17 +54,17 @@
 
     /**
      * <p>
-     * InternalPermission Manager Service.
+     * JetspeedPermission Manager Service.
      * </p>
      */
-    private PermissionManager pms = null;
+    private JetspeedPermissionManager pms = null;
 
     /**
      * <p>
      * Default constructor.
      * </p>
      */
-    public RdbmsPolicy(PermissionManager pms)
+    public RdbmsPolicy(JetspeedPermissionManager pms)
     {
         if (log.isDebugEnabled())
         {
@@ -124,7 +123,7 @@
 //                                + principals[i].getClass() + "]");
 //                    }
 //                }
-                perms = pms.getPermissions(Arrays.asList(principals));
+                perms = pms.getPermissions(principals);
             }
         }
         else

Modified: portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-portal-resources/src/main/resources/assembly/security-atz.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-portal-resources/src/main/resources/assembly/security-atz.xml?rev=694592&r1=694591&r2=694592&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-portal-resources/src/main/resources/assembly/security-atz.xml
(original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-portal-resources/src/main/resources/assembly/security-atz.xml
Thu Sep 11 19:44:03 2008
@@ -22,7 +22,7 @@
   <bean id="org.apache.jetspeed.security.impl.RdbmsPolicy" class="org.apache.jetspeed.security.impl.RdbmsPolicy">
     <meta key="j2:cat" value="default,security" />
     <constructor-arg>
-      <ref bean="org.apache.jetspeed.security.PermissionManager" />
+      <ref bean="org.apache.jetspeed.security.JetspeedPermissionManager" />
     </constructor-arg>
   </bean>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message