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:33 UTC

[sling-org-apache-sling-jcr-jackrabbit-usermanager] 04/24: SLING-1377 Use PrincipalManager.getPrincipals method to list groups and users

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 ae11ef6f909d01dd566de6e08b5afccb663b394b
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Tue Feb 16 10:47:39 2010 +0000

    SLING-1377 Use PrincipalManager.getPrincipals method to list groups and users
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/jackrabbit-usermanager@910463 13f79535-47bb-0310-9956-ffa450edef68
---
 .../usermanager/impl/resource/AuthorizableResourceProvider.java      | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableResourceProvider.java b/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableResourceProvider.java
index f9aef30..e1d2df4 100644
--- a/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableResourceProvider.java
+++ b/src/main/java/org/apache/sling/jackrabbit/usermanager/impl/resource/AuthorizableResourceProvider.java
@@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory;
 
 /**
  * Resource Provider implementation for jackrabbit UserManager resources.
- * 
+ *
  * @scr.component immediate="true" label="%authorizable.resourceprovider.name"
  *                description="authorizable.resourceprovider.description"
  * @scr.property name="service.description"
@@ -177,8 +177,7 @@ public class AuthorizableResourceProvider implements ResourceProvider {
                 Session session = resourceResolver.adaptTo(Session.class);
                 if (session != null) {
                     PrincipalManager principalManager = AccessControlUtil.getPrincipalManager(session);
-                    principals = principalManager.findPrincipals(".*",
-                        PrincipalManager.SEARCH_TYPE_NOT_GROUP);
+                    principals = principalManager.getPrincipals(PrincipalManager.SEARCH_TYPE_NOT_GROUP);
                 }
 
                 if (principals != null) {

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