|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.principal.FallbackPrincipalProvider
public class FallbackPrincipalProvider
The FallbackPrincipalProvider is used to provide any desired
principal. It is used to defined ACE for principals that are not known to
the repository yet or that were deleted.
| Field Summary | |
|---|---|
static String |
OPTION_DISABLED
name of the "disabled" option. |
| Constructor Summary | |
|---|---|
FallbackPrincipalProvider()
|
|
| Method Summary | |
|---|---|
boolean |
canReadPrincipal(Session session,
Principal principalToRead)
Tests if the provided session is allowed to read the given principal. |
void |
close()
This is called when a provider is not longer used by the repository. |
PrincipalIterator |
findPrincipals(String simpleFilter)
Searches for Principals that match the given String. |
PrincipalIterator |
findPrincipals(String simpleFilter,
int searchType)
Searches for Principals that match the given String. |
PrincipalIterator |
getGroupMembership(Principal principal)
Returns an iterator over all group principals for which the given principal is either direct or indirect member of. |
Principal |
getPrincipal(String principalName)
Returns the principal with the given name if is known to this provider |
PrincipalIterator |
getPrincipals(int searchType)
Returns an iterator over all principals that match the given search type. |
void |
init(Properties options)
Initialize this provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OPTION_DISABLED
| Constructor Detail |
|---|
public FallbackPrincipalProvider()
| Method Detail |
|---|
public Principal getPrincipal(String principalName)
getPrincipal in interface PrincipalProviderprincipalName - the name of the principal to retrieve
UnknownPrincipal with the given name.public PrincipalIterator findPrincipals(String simpleFilter)
Principals that match the given String.
NOTE: Groups are included in the search result.
findPrincipals in interface PrincipalProviderPrincipalProvider.findPrincipals(String,int)
public PrincipalIterator findPrincipals(String simpleFilter,
int searchType)
Principals that match the given String.
findPrincipals in interface PrincipalProvidersearchType - searchType Any of the following constants:
PrincipalProvider.findPrincipals(String)public PrincipalIterator getPrincipals(int searchType)
getPrincipals in interface PrincipalProvidersearchType - searchType Any of the following constants:
public PrincipalIterator getGroupMembership(Principal principal)
Group.isMember(Principal)
evaluates to true. A principal is an indirect member of a
group if any of its groups (to any degree of separation) is direct memeber
of the group.
Example:
getGroupMembership in interface PrincipalProviderprincipal - the principal to return it's membership from.
public void init(Properties options)
init in interface PrincipalProvideroptions - the options that are setpublic void close()
close in interface PrincipalProvider
public boolean canReadPrincipal(Session session,
Principal principalToRead)
canReadPrincipal in interface PrincipalProviderprincipalToRead - The principal to be accessed by the specified subject.
true
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||