public class RFC4519DirectoryMembershipsIterable extends Object implements Iterable<Membership>
Iterable
over group Membership
s optimised for the case
where we already have the DNs and names of all possible users and
sub-groups.Constructor and Description |
---|
RFC4519DirectoryMembershipsIterable(RFC4519Directory springLDAPConnector,
Map<LdapName,String> users,
Map<LdapName,String> groups) |
RFC4519DirectoryMembershipsIterable(RFC4519Directory connector,
Map<LdapName,String> users,
Map<LdapName,String> groups,
Set<String> groupsToInclude) |
Modifier and Type | Method and Description |
---|---|
Iterator<Membership> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RFC4519DirectoryMembershipsIterable(RFC4519Directory connector, Map<LdapName,String> users, Map<LdapName,String> groups, Set<String> groupsToInclude)
connector
- the remote directory to queryusers
- all known usersgroups
- all known groupsgroupsToInclude
- a set of lowercased group names. Restrict membership retrieval to only the known groups that also appear in this set.public Iterator<Membership> iterator()
iterator
in interface Iterable<Membership>
Copyright © 2016 Atlassian. All rights reserved.