Class PrincipalManagerImpl
- java.lang.Object
-
- org.apache.jackrabbit.core.security.principal.PrincipalManagerImpl
-
- All Implemented Interfaces:
PrincipalManager
public class PrincipalManagerImpl extends Object implements PrincipalManager
This principal manager implementation uses theDefaultPrincipalProvider
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.
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.api.security.principal.PrincipalManager
SEARCH_TYPE_ALL, SEARCH_TYPE_GROUP, SEARCH_TYPE_NOT_GROUP
-
-
Constructor Summary
Constructors Constructor Description PrincipalManagerImpl(Session session, PrincipalProvider[] providers)
Creates a new default principal manager implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrincipalIterator
findPrincipals(String simpleFilter)
PrincipalIterator
findPrincipals(String simpleFilter, int searchType)
Principal
getEveryone()
PrincipalIterator
getGroupMembership(Principal principal)
Principal
getPrincipal(String principalName)
PrincipalIterator
getPrincipals(int searchType)
boolean
hasPrincipal(String principalName)
-
-
-
Constructor Detail
-
PrincipalManagerImpl
public PrincipalManagerImpl(Session session, PrincipalProvider[] providers)
Creates a new default principal manager implementation.- Parameters:
session
- the underlying sessionproviders
- the providers
-
-
Method Detail
-
hasPrincipal
public boolean hasPrincipal(String principalName)
- Specified by:
hasPrincipal
in interfacePrincipalManager
-
getPrincipal
public Principal getPrincipal(String principalName)
- Specified by:
getPrincipal
in interfacePrincipalManager
-
findPrincipals
public PrincipalIterator findPrincipals(String simpleFilter)
- Specified by:
findPrincipals
in interfacePrincipalManager
-
findPrincipals
public PrincipalIterator findPrincipals(String simpleFilter, int searchType)
- Specified by:
findPrincipals
in interfacePrincipalManager
-
getPrincipals
public PrincipalIterator getPrincipals(int searchType)
- Specified by:
getPrincipals
in interfacePrincipalManager
- Parameters:
searchType
-
-
getGroupMembership
public PrincipalIterator getGroupMembership(Principal principal)
- Specified by:
getGroupMembership
in interfacePrincipalManager
-
getEveryone
public Principal getEveryone()
- Specified by:
getEveryone
in interfacePrincipalManager
-
-