jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r833200 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core: retention/RetentionRegistryImpl.java security/simple/SimpleAccessManager.java
Date Thu, 05 Nov 2009 21:59:33 GMT
Author: angela
Date: Thu Nov  5 21:59:33 2009
New Revision: 833200

URL: http://svn.apache.org/viewvc?rev=833200&view=rev
Log:
fix typos in comments and javadoc, improve readability of comments

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/retention/RetentionRegistryImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/simple/SimpleAccessManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/retention/RetentionRegistryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/retention/RetentionRegistryImpl.java?rev=833200&r1=833199&r2=833200&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/retention/RetentionRegistryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/retention/RetentionRegistryImpl.java
Thu Nov  5 21:59:33 2009
@@ -82,13 +82,14 @@
 
         // start listening to added/changed or removed holds and retention policies.
         Workspace wsp = session.getWorkspace();
-        // register eventlistener to be informed about new/removed holds and retention plcs.
+        // register event listener to be informed about new/removed holds and
+        // retention policies.
         int types = Event.PROPERTY_ADDED | Event.PROPERTY_REMOVED | Event.PROPERTY_CHANGED;
         String[] ntFilter = new String[] {session.getJCRName(RetentionManagerImpl.REP_RETENTION_MANAGEABLE)};
         wsp.getObservationManager().addEventListener(this, types, "/", true, null, ntFilter,
false);
 
         // populate the retentionMap and the holdMap with the effective
-        // holds and retention plcs present within the content.
+        // holds and retention policies present within the content.
         try {
             readRetentionFile();
         } catch (FileSystemException e) {
@@ -253,7 +254,7 @@
                 return true;
             } else if (checkParent && !nodePath.denotesRoot() &&
                     element.hasPath(nodePath.getAncestor(1))) {
-                // hold present on the parent node whithout checking for being
+                // hold present on the parent node without checking for being
                 // a deep hold.
                 // this required for removal of a node that can be inhibited
                 // by a hold on the node itself, by a hold on the parent or

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/simple/SimpleAccessManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/simple/SimpleAccessManager.java?rev=833200&r1=833199&r2=833200&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/simple/SimpleAccessManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/simple/SimpleAccessManager.java
Thu Nov  5 21:59:33 2009
@@ -148,7 +148,7 @@
             // system has always all permissions
             return true;
         } else if (anonymous) {
-            // anonymous is always denied WRITE & REMOVE premissions
+            // anonymous is always denied WRITE & REMOVE permissions
             if ((permissions & WRITE) == WRITE
                     || (permissions & REMOVE) == REMOVE) {
                 return false;
@@ -180,7 +180,7 @@
             // system has always all permissions
             return true;
         } else if (anonymous) {
-            // anonymous is only granted READ premissions
+            // anonymous is only granted READ permissions
             return permissions == Permission.READ;
         }
 
@@ -216,7 +216,7 @@
                 return true;
             } else if (anonymous) {
                 if (privileges.length != 1 || !privileges[0].equals(privilegeRegistry.getPrivilege(Privilege.JCR_READ)))
{
-                    // anonymous is only granted READ premissions
+                    // anonymous is only granted READ permissions
                     return false;
                 }
             }



Mime
View raw message