public class RFC4519DirectoryMembershipsIterable extends Object implements Iterable<Membership>
Iterable
over group Membership
s optimised for the case
where we already have all or some of the DNs and names of possible users and sub-groups.
Memberships are fetched while iterating (batched by the partition size)
If some dn to name mappings are missing, these are fetched in batches while iterating.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PARTITION_SIZE |
Modifier | Constructor and Description |
---|---|
|
RFC4519DirectoryMembershipsIterable(RFC4519Directory connector,
Collection<? extends LDAPGroupWithAttributes> groupsToInclude,
Map<LdapName,String> users,
Map<LdapName,String> groups)
Create an iterable over memberships for the specified groups
|
|
RFC4519DirectoryMembershipsIterable(RFC4519Directory connector,
Map<LdapName,String> users,
Map<LdapName,String> groups)
Create an iterable over all memberships for the specified groups
|
protected |
RFC4519DirectoryMembershipsIterable(RFC4519Directory connector,
Map<LdapName,String> users,
Map<LdapName,String> groups,
Map<LdapName,String> groupsToInclude,
int membershipBatchSize) |
Modifier and Type | Method and Description |
---|---|
Iterator<Membership> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final int DEFAULT_PARTITION_SIZE
public RFC4519DirectoryMembershipsIterable(RFC4519Directory connector, Collection<? extends LDAPGroupWithAttributes> groupsToInclude, Map<LdapName,String> users, Map<LdapName,String> groups)
connector
- the remote directory to querygroupsToInclude
- a collection of groups to get the memberships forusers
- the known dn to name mappings for users, can be empty, missing entries will be fetched as neededgroups
- the known dn to name mappings for groups, can be empty, missing entries will be fetched as neededpublic RFC4519DirectoryMembershipsIterable(RFC4519Directory connector, Map<LdapName,String> users, Map<LdapName,String> groups)
connector
- the remote directory to queryusers
- the known dn to name mappings for users, can be empty, missing entries will be fetched as neededgroups
- the dn to name mappings for the groups to get the memberships forpublic Iterator<Membership> iterator()
iterator
in interface Iterable<Membership>
Copyright © 2017 Atlassian. All rights reserved.