public class PrincipalManagerImpl extends java.lang.Object implements PrincipalQueryManager, PrincipalManager
PrincipalManager interface.SEARCH_TYPE_ALL, SEARCH_TYPE_GROUP, SEARCH_TYPE_NOT_GROUP| Constructor and Description |
|---|
PrincipalManagerImpl(@NotNull PrincipalProvider principalProvider) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull PrincipalIterator |
findPrincipals(@Nullable java.lang.String simpleFilter)
Gets the principals matching a simple filter expression applied against
the
principal name. |
@NotNull PrincipalIterator |
findPrincipals(@Nullable java.lang.String simpleFilter,
boolean fullText,
int searchType,
long offset,
long limit)
Gets the principals matching a simple filter expression applied against
the
principal name AND the specified search
type. |
@NotNull PrincipalIterator |
findPrincipals(@Nullable java.lang.String simpleFilter,
int searchType)
Gets the principals matching a simple filter expression applied against
the
principal name AND the specified search
type. |
@NotNull java.security.Principal |
getEveryone()
Returns the
Principal which is implicitly applied to
every subject. |
@NotNull PrincipalIterator |
getGroupMembership(@NotNull java.security.Principal principal)
Returns an iterator over all group principals for which the given
principal is either direct or indirect member of.
|
@Nullable java.security.Principal |
getPrincipal(@NotNull java.lang.String principalName)
Returns the principal with the given name if is known to this manager
(with respect to the sessions access rights).
|
@NotNull PrincipalIterator |
getPrincipals(int searchType)
Returns all
Principals matching the specified search type. |
boolean |
hasPrincipal(@NotNull java.lang.String principalName)
Checks if the principal with the given name is known to this manager
(in respect to the sessions access rights).
|
public PrincipalManagerImpl(@NotNull
@NotNull PrincipalProvider principalProvider)
public boolean hasPrincipal(@NotNull
@NotNull java.lang.String principalName)
PrincipalManagertrue 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 checktrue if the principal with this name is known
to this manager; false otherwise.@Nullable
public @Nullable java.security.Principal getPrincipal(@NotNull
@NotNull java.lang.String principalName)
PrincipalManagerPrincipalManager has been built for.getPrincipal in interface PrincipalManagerprincipalName - the name of the principal to retrievenull if a
principal with the given name does not exist or is not accessible
for the editing session.@NotNull public @NotNull PrincipalIterator findPrincipals(@Nullable @Nullable java.lang.String simpleFilter)
PrincipalManagerprincipal name.
TODO: define the filter expression.findPrincipals in interface PrincipalManagerPrincipalIterator over the Principals
matching the given filter.@NotNull public @NotNull PrincipalIterator findPrincipals(@Nullable @Nullable java.lang.String simpleFilter, int searchType)
PrincipalManagerprincipal 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.@NotNull public @NotNull PrincipalIterator getPrincipals(int searchType)
PrincipalManagerPrincipals matching the specified search type.getPrincipals in interface PrincipalManagersearchType - Any of the following constants:
PrincipalIterator over all the Principals
matching the given search type.@NotNull public @NotNull PrincipalIterator getGroupMembership(@NotNull @NotNull java.security.Principal principal)
PrincipalManager
Example:
If Principal P is member of Group A, and Group A is member of
Group B, this method will return Principal A and Principal B.
getGroupMembership in interface PrincipalManagerprincipal - the principal to return it's membership from.@NotNull public @NotNull java.security.Principal getEveryone()
PrincipalManagerPrincipal which is implicitly applied to
every subject.getEveryone in interface PrincipalManager@NotNull public @NotNull PrincipalIterator findPrincipals(@Nullable @Nullable java.lang.String simpleFilter, boolean fullText, int searchType, long offset, long limit)
PrincipalQueryManagerprincipal name AND the specified search
type.
Results are expected to be sorted by the principal name.
An implementation may limit the number of principals returned.
If there are no matching principals, an empty iterator is returned.findPrincipals in interface PrincipalQueryManagersearchType - Any of the following constants:
offset - Offset from where to start returning results. 0 for no offset.limit - Maximal number of results to return. -1 for no limit.PrincipalIterator over the Principals
matching the given filter and search type.Copyright © 2010 - 2023 Adobe. All Rights Reserved