jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1406988 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege: PrivilegeDefinitionImpl.java PrivilegeDefinitionReader.java PrivilegeDefinitionWriter.java PrivilegeInitializer.java
Date Thu, 08 Nov 2012 10:02:54 GMT
Author: angela
Date: Thu Nov  8 10:02:54 2012
New Revision: 1406988

URL: http://svn.apache.org/viewvc?rev=1406988&view=rev
Log:
OAK-64 : Privilege Management (WIP)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionReader.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionWriter.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeInitializer.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java?rev=1406988&r1=1406987&r2=1406988&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java
Thu Nov  8 10:02:54 2012
@@ -24,7 +24,7 @@ import com.google.common.collect.Immutab
 import org.apache.jackrabbit.oak.spi.security.privilege.PrivilegeDefinition;
 
 /**
- * PrivilegeDefinitionImpl... TODO
+ * Default implementation of the {@code PrivilegeDefinition} interface.
  */
 class PrivilegeDefinitionImpl implements PrivilegeDefinition {
 

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionReader.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionReader.java?rev=1406988&r1=1406987&r2=1406988&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionReader.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionReader.java
Thu Nov  8 10:02:54 2012
@@ -53,7 +53,8 @@ import static org.apache.jackrabbit.oak.
 
 
 /**
- * Reads privilege definitions without applying any validation.
+ * Reads privilege definitions from the repository content without applying
+ * any validation.
  */
 class PrivilegeDefinitionReader {
 

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionWriter.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionWriter.java?rev=1406988&r1=1406987&r2=1406988&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionWriter.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionWriter.java
Thu Nov  8 10:02:54 2012
@@ -26,19 +26,13 @@ import org.apache.jackrabbit.oak.api.Tre
 import org.apache.jackrabbit.oak.spi.security.privilege.PrivilegeConstants;
 import org.apache.jackrabbit.oak.spi.security.privilege.PrivilegeDefinition;
 import org.apache.jackrabbit.oak.util.NodeUtil;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
- * PrivilegeDefinitionWriter... TODO
+ * PrivilegeDefinitionWriter is responsible for writing privilege definitions
+ * to the repository without applying any validation checks.
  */
 class PrivilegeDefinitionWriter implements PrivilegeConstants {
 
-    /**
-     * logger instance
-     */
-    private static final Logger log = LoggerFactory.getLogger(PrivilegeDefinitionWriter.class);
-
     private final Root root;
 
     PrivilegeDefinitionWriter(Root root) {

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeInitializer.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeInitializer.java?rev=1406988&r1=1406987&r2=1406988&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeInitializer.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeInitializer.java
Thu Nov  8 10:02:54 2012
@@ -39,8 +39,8 @@ import org.slf4j.LoggerFactory;
 
 /**
  * {@code RepositoryInitializer} that asserts the existence and node type of
- * the /jcr:system/jcr:privileges node that is used to store privilege definitons.
- * In addition it writes all built-in privilege defintions except jcr:all to
+ * the /jcr:system/jcr:privileges node that is used to store privilege definitions.
+ * In addition it writes all built-in privilege definitions except jcr:all to
  * the repository.
  */
 class PrivilegeInitializer implements RepositoryInitializer, PrivilegeConstants {



Mime
View raw message