jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1414271 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user: UserConfigurationImpl.java UserContext.java
Date Tue, 27 Nov 2012 17:14:22 GMT
Author: angela
Date: Tue Nov 27 17:14:21 2012
New Revision: 1414271

URL: http://svn.apache.org/viewvc?rev=1414271&view=rev
Log:
OAK-50 : Implement User Management (WIP)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserConfigurationImpl.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserContext.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserConfigurationImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserConfigurationImpl.java?rev=1414271&r1=1414270&r2=1414271&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserConfigurationImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserConfigurationImpl.java
Tue Nov 27 17:14:21 2012
@@ -78,7 +78,7 @@ public class UserConfigurationImpl exten
     @Nonnull
     @Override
     public Context getContext() {
-        return UserContext.INSTANCE;
+        return UserContext.getInstance();
     }
 
     //--------------------------------------------------< UserConfiguration >---

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserContext.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserContext.java?rev=1414271&r1=1414270&r2=1414271&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserContext.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserContext.java
Tue Nov 27 17:14:21 2012
@@ -27,9 +27,14 @@ import org.apache.jackrabbit.oak.util.No
  */
 class UserContext implements Context {
 
-    static final Context INSTANCE = new UserContext();
+    private static final Context INSTANCE = new UserContext();
 
     private UserContext() {}
+
+    static Context getInstance() {
+        return INSTANCE;
+    }
+
     //------------------------------------------------------------< Context >---
     @Override
     public boolean definesProperty(Tree parent, PropertyState property) {



Mime
View raw message