Interface DynamicMembershipProvider
- 
public interface DynamicMembershipProvider 
- 
- 
Field Summary
Fields Modifier and Type Field Description static DynamicMembershipProviderEMPTY 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancoversAllMembers(@NotNull Group group)Returnstrueif this implementation ofDynamicMembershipProvidercovers all members for the givenGroupmaking it a fully dynamic group.@NotNull java.util.Iterator<Authorizable>getMembers(@NotNull Group group, boolean includeInherited)Returns the dynamic members for the given group.@NotNull java.util.Iterator<Group>getMembership(@NotNull Authorizable authorizable, boolean includeInherited)Returns an iterator over all groups the givenauthorizableis a dynamic member of.booleanisMember(@NotNull Group group, @NotNull Authorizable authorizable, boolean includeInherited)Returnstrueif the givenauthorizableis a dynamic member of the given target group. 
 - 
 
- 
- 
Field Detail
- 
EMPTY
static final DynamicMembershipProvider EMPTY
 
 - 
 
- 
Method Detail
- 
coversAllMembers
boolean coversAllMembers(@NotNull @NotNull Group group)Returnstrueif this implementation ofDynamicMembershipProvidercovers all members for the givenGroupmaking it a fully dynamic group.- Parameters:
 group- The target group- Returns:
 trueif the provider covers all members of the given target group i.e. making it a fully dynamic group (like for example the 'everyone' group);falseotherwise.
 
- 
getMembers
@NotNull @NotNull java.util.Iterator<Authorizable> getMembers(@NotNull @NotNull Group group, boolean includeInherited) throws javax.jcr.RepositoryException
Returns the dynamic members for the given group.- Parameters:
 group- The target group.includeInherited- Iftrueinherited members should be included in the resulting iterator.- Returns:
 - An iterator of user/groups that are dynamic members of the given target group.
 - Throws:
 javax.jcr.RepositoryException- If an error occurs.
 
- 
isMember
boolean isMember(@NotNull @NotNull Group group, @NotNull @NotNull Authorizable authorizable, boolean includeInherited) throws javax.jcr.RepositoryExceptionReturnstrueif the givenauthorizableis 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 totrueinherited group membership will be evaluated.- Returns:
 trueif the givenauthorizableis a dynamic member of the given target group.- Throws:
 javax.jcr.RepositoryException- If an error occurs.
 
- 
getMembership
@NotNull @NotNull java.util.Iterator<Group> getMembership(@NotNull @NotNull Authorizable authorizable, boolean includeInherited) throws javax.jcr.RepositoryException
Returns an iterator over all groups the givenauthorizableis a dynamic member of.- Parameters:
 authorizable- The target user/group for which to evaluate membership.includeInherited- If set totrueinherited group membership will be included in the result.- Returns:
 - An iterator over all groups the given 
authorizableis a dynamic member of. - Throws:
 javax.jcr.RepositoryException- If an error occurs.
 
 - 
 
 -