public class PrincipalManagerImpl extends Object implements org.apache.jackrabbit.api.security.principal.PrincipalManager
DefaultPrincipalProvider
in order to dispatch the respective requests and assemble the required
data. It is bound to a session and therefore obliges the access restrictions
of the respective subject.Constructor and Description |
---|
PrincipalManagerImpl(Session session,
PrincipalProvider[] providers)
Creates a new default principal manager implementation.
|
Modifier and Type | Method and Description |
---|---|
org.apache.jackrabbit.api.security.principal.PrincipalIterator |
findPrincipals(String simpleFilter) |
org.apache.jackrabbit.api.security.principal.PrincipalIterator |
findPrincipals(String simpleFilter,
int searchType) |
Principal |
getEveryone() |
org.apache.jackrabbit.api.security.principal.PrincipalIterator |
getGroupMembership(Principal principal) |
Principal |
getPrincipal(String principalName) |
org.apache.jackrabbit.api.security.principal.PrincipalIterator |
getPrincipals(int searchType) |
boolean |
hasPrincipal(String principalName) |
public PrincipalManagerImpl(Session session, PrincipalProvider[] providers)
session
- the underlying sessionproviders
- the providerspublic boolean hasPrincipal(String principalName)
hasPrincipal
in interface org.apache.jackrabbit.api.security.principal.PrincipalManager
public Principal getPrincipal(String principalName)
getPrincipal
in interface org.apache.jackrabbit.api.security.principal.PrincipalManager
public org.apache.jackrabbit.api.security.principal.PrincipalIterator findPrincipals(String simpleFilter)
findPrincipals
in interface org.apache.jackrabbit.api.security.principal.PrincipalManager
public org.apache.jackrabbit.api.security.principal.PrincipalIterator findPrincipals(String simpleFilter, int searchType)
findPrincipals
in interface org.apache.jackrabbit.api.security.principal.PrincipalManager
public org.apache.jackrabbit.api.security.principal.PrincipalIterator getPrincipals(int searchType)
getPrincipals
in interface org.apache.jackrabbit.api.security.principal.PrincipalManager
searchType
- public org.apache.jackrabbit.api.security.principal.PrincipalIterator getGroupMembership(Principal principal)
getGroupMembership
in interface org.apache.jackrabbit.api.security.principal.PrincipalManager
public Principal getEveryone()
getEveryone
in interface org.apache.jackrabbit.api.security.principal.PrincipalManager
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.