jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r736656 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
Date Thu, 22 Jan 2009 14:19:07 GMT
Author: angela
Date: Thu Jan 22 06:19:07 2009
New Revision: 736656

URL: http://svn.apache.org/viewvc?rev=736656&view=rev
Log:
javadoc and minor improvement

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java?rev=736656&r1=736655&r2=736656&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/PrivilegeRegistry.java
Thu Jan 22 06:19:07 2009
@@ -42,7 +42,7 @@
 
     /**
      * Jackrabbit specific write privilege that combines {@link Privilege#JCR_WRITE}
-     * and {@link Privilege#NODE_TYPE_MNGMT}.
+     * and {@link Privilege#JCR_NODE_TYPE_MANAGEMENT}.
      */
     public static final String REP_WRITE = "{" + Name.NS_REP_URI + "}write";
 
@@ -231,10 +231,10 @@
     public static int calculatePermissions(int privs, int parentPrivs, boolean isAllow, boolean
protectsPolicy) {
         int perm = Permission.NONE;
         if (protectsPolicy) {
-            if ((parentPrivs & PrivilegeRegistry.READ_AC) == PrivilegeRegistry.READ_AC)
{
+            if ((parentPrivs & READ_AC) == READ_AC) {
                 perm |= Permission.READ;
             }
-            if ((parentPrivs & PrivilegeRegistry.MODIFY_AC) == PrivilegeRegistry.MODIFY_AC)
{
+            if ((parentPrivs & MODIFY_AC) == MODIFY_AC) {
                 perm |= Permission.ADD_NODE;
                 perm |= Permission.SET_PROPERTY;
                 perm |= Permission.REMOVE_NODE;



Mime
View raw message