Interface DynamicMembershipProvider
public interface DynamicMembershipProvider
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
coversAllMembers
(@NotNull Group group) Returnstrue
if this implementation ofDynamicMembershipProvider
covers all members for the givenGroup
making it a fully dynamic group.@NotNull Iterator<Authorizable>
getMembers
(@NotNull Group group, boolean includeInherited) Returns the dynamic members for the given group.getMembership
(@NotNull Authorizable authorizable, boolean includeInherited) Returns an iterator over all groups the givenauthorizable
is a dynamic member of.boolean
isMember
(@NotNull Group group, @NotNull Authorizable authorizable, boolean includeInherited) Returnstrue
if the givenauthorizable
is a dynamic member of the given target group.
-
Field Details
-
EMPTY
-
-
Method Details
-
coversAllMembers
Returnstrue
if this implementation ofDynamicMembershipProvider
covers all members for the givenGroup
making it a fully dynamic group.- Parameters:
group
- The target group- Returns:
true
if the provider covers all members of the given target group i.e. making it a fully dynamic group (like for example the 'everyone' group);false
otherwise.
-
getMembers
@NotNull @NotNull Iterator<Authorizable> getMembers(@NotNull @NotNull Group group, boolean includeInherited) throws RepositoryException Returns the dynamic members for the given group.- Parameters:
group
- The target group.includeInherited
- Iftrue
inherited members should be included in the resulting iterator.- Returns:
- An iterator of user/groups that are dynamic members of the given target group.
- Throws:
RepositoryException
- If an error occurs.
-
isMember
boolean isMember(@NotNull @NotNull Group group, @NotNull @NotNull Authorizable authorizable, boolean includeInherited) throws RepositoryException Returnstrue
if the givenauthorizable
is a dynamic member of the given target group.- Parameters:
group
- The target group.authorizable
- The user/group that may or may not be dynamic member of the given target group.includeInherited
- If set totrue
inherited group membership will be evaluated.- Returns:
true
if the givenauthorizable
is a dynamic member of the given target group.- Throws:
RepositoryException
- If an error occurs.
-
getMembership
@NotNull @NotNull Iterator<Group> getMembership(@NotNull @NotNull Authorizable authorizable, boolean includeInherited) throws RepositoryException Returns an iterator over all groups the givenauthorizable
is a dynamic member of.- Parameters:
authorizable
- The target user/group for which to evaluate membership.includeInherited
- If set totrue
inherited group membership will be included in the result.- Returns:
- An iterator over all groups the given
authorizable
is a dynamic member of. - Throws:
RepositoryException
- If an error occurs.
-