jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1556543 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/autosave/AuthorizableImpl.java
Date Wed, 08 Jan 2014 14:22:22 GMT
Author: angela
Date: Wed Jan  8 14:22:21 2014
New Revision: 1556543

URL: http://svn.apache.org/r1556543
Log:
OAK-50: user mgt (minor improvement)

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/autosave/AuthorizableImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/autosave/AuthorizableImpl.java?rev=1556543&r1=1556542&r2=1556543&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/autosave/AuthorizableImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/autosave/AuthorizableImpl.java
Wed Jan  8 14:22:21 2014
@@ -16,6 +16,9 @@
  */
 package org.apache.jackrabbit.oak.security.user.autosave;
 
+import java.lang.Object;
+import java.lang.Override;
+import java.lang.String;
 import java.security.Principal;
 import java.util.Iterator;
 import javax.jcr.RepositoryException;
@@ -120,4 +123,26 @@ class AuthorizableImpl implements Author
     public String getPath() throws RepositoryException {
         return dlg.getPath();
     }
+
+    //-------------------------------------------------------------< Object >---
+    @Override
+    public int hashCode() {
+        return dlg.hashCode();
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (o == this) {
+            return true;
+        }
+        if (o instanceof AuthorizableImpl) {
+            return dlg.equals((AuthorizableImpl) o).dlg);
+        }
+        return false;
+    }
+
+    @Override
+    public String toString() {
+        return dlg.toString();
+    }
 }
\ No newline at end of file



Mime
View raw message