You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:48:31 UTC

[sling-org-apache-sling-jcr-jackrabbit-usermanager] 02/24: SLING-1378 Provide useful toString implementation

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.jackrabbit.usermanager-2.1.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-jackrabbit-usermanager.git

commit be4db51f71181e237e0d9605724315b3acc916d8
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Tue Feb 16 10:44:34 2010 +0000

    SLING-1378 Provide useful toString implementation
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/jackrabbit-usermanager@910459 13f79535-47bb-0310-9956-ffa450edef68
---
 .../usermanager/impl/resource/AuthorizableValueMap.java        | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableValueMap.java b/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableValueMap.java
index c6996c0..c7ee049 100644
--- a/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableValueMap.java
+++ b/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableValueMap.java
@@ -184,6 +184,16 @@ public class AuthorizableValueMap implements ValueMap {
         }
     }
 
+    /**
+     * Reads the authorizable map completely and returns the string
+     * representation of the cached properties.
+     */
+    @Override
+    public String toString() {
+        readFully();
+        return cache.toString();
+    }
+
     // ---------- Unsupported Modification methods
 
     public Object remove(Object arg0) {

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.