|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.principal.PrincipalManagerImpl
public class PrincipalManagerImpl
This principal manager implementation uses the 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.
| 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 | |
|---|---|
PrincipalManagerImpl(javax.jcr.Session session,
PrincipalProvider[] providers)
Creates a new default principal manager implementation. |
|
| Method Summary | |
|---|---|
PrincipalIterator |
findPrincipals(java.lang.String simpleFilter)
Gets the principals matching a simple filter expression applied against the principal name. |
PrincipalIterator |
findPrincipals(java.lang.String simpleFilter,
int searchType)
Gets the principals matching a simple filter expression applied against the principal name AND the specified search
type. |
java.security.Principal |
getEveryone()
Returns the Principal which is implicitely is applied to
every subject. |
PrincipalIterator |
getGroupMembership(java.security.Principal principal)
Returns an iterator over all group principals for which the given principal is either direct or indirect member of. |
java.security.Principal |
getPrincipal(java.lang.String principalName)
Returns the principal with the given name if is known to this manager (with respect to the sessions access rights). |
PrincipalIterator |
getPrincipals(int searchType)
Returns all Principals matching the specified search type. |
boolean |
hasPrincipal(java.lang.String principalName)
Checks if the principal with the given name is known to this manager (in respect to the sessions access rights). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrincipalManagerImpl(javax.jcr.Session session,
PrincipalProvider[] providers)
session - providers - | Method Detail |
|---|
public boolean hasPrincipal(java.lang.String principalName)
true then the following expression evaluates to true
as well: PrincipalManager.getPrincipal(name).getName().equals(name)
hasPrincipal in interface PrincipalManagerprincipalName - the name of the principal to check
true if the principal with this name is known
to this manager; false otherwise.
public java.security.Principal getPrincipal(java.lang.String principalName)
throws NoSuchPrincipalException
PrincipalManager has been built for.
getPrincipal in interface PrincipalManagerprincipalName - the name of the principal to retrieve
NoSuchPrincipalException - If no principal with the given name exists.public PrincipalIterator findPrincipals(java.lang.String simpleFilter)
principal name.
TODO: define the filter expression.
findPrincipals in interface PrincipalManagerPrincipalIterator over the Principals
matching the given filter.
public PrincipalIterator findPrincipals(java.lang.String simpleFilter,
int searchType)
principal name AND the specified search
type.
TODO: define the filter expression.
findPrincipals in interface PrincipalManagersearchType - Any of the following constants:
PrincipalIterator over the Principals
matching the given filter and search type.public PrincipalIterator getPrincipals(int searchType)
Principals matching the specified search type.
getPrincipals in interface PrincipalManagersearchType -
PrincipalIterator over all the Principals
matching the given search type.public PrincipalIterator getGroupMembership(java.security.Principal principal)
getGroupMembership in interface PrincipalManagerprincipal - the principal to return it's membership from.
public java.security.Principal getEveryone()
Principal which is implicitely is applied to
every subject.
getEveryone in interface PrincipalManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||