public class PrincipalManagerImpl extends Object implements 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.SEARCH_TYPE_ALL, SEARCH_TYPE_GROUP, SEARCH_TYPE_NOT_GROUP
Constructor and Description |
---|
PrincipalManagerImpl(Session session,
PrincipalProvider[] providers)
Creates a new default principal manager implementation.
|
Modifier and Type | Method and 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) |
public PrincipalManagerImpl(Session session, PrincipalProvider[] providers)
session
- the underlying sessionproviders
- the providerspublic boolean hasPrincipal(String principalName)
hasPrincipal
in interface PrincipalManager
public Principal getPrincipal(String principalName)
getPrincipal
in interface PrincipalManager
public PrincipalIterator findPrincipals(String simpleFilter)
findPrincipals
in interface PrincipalManager
public PrincipalIterator findPrincipals(String simpleFilter, int searchType)
findPrincipals
in interface PrincipalManager
public PrincipalIterator getPrincipals(int searchType)
getPrincipals
in interface PrincipalManager
searchType
- public PrincipalIterator getGroupMembership(Principal principal)
getGroupMembership
in interface PrincipalManager
public Principal getEveryone()
getEveryone
in interface PrincipalManager
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.