com.atlassian.crowd.directory
Class DirectoryMembershipsIterable

java.lang.Object
  extended by com.atlassian.crowd.directory.DirectoryMembershipsIterable
All Implemented Interfaces:
Iterable<Membership>

public class DirectoryMembershipsIterable
extends Object
implements Iterable<Membership>

An Iterable view of the memberships of a collection of named groups, backed with individual calls to a RemoteDirectory.

Any underlying failures during iteration will be wrapped as Membership.MembershipIterationExceptions.


Field Summary
static com.google.common.base.Function<Group,String> GROUPS_TO_NAMES
           
 
Constructor Summary
DirectoryMembershipsIterable(RemoteDirectory remoteDirectory)
           
DirectoryMembershipsIterable(RemoteDirectory remoteDirectory, Iterable<String> groupNames)
           
 
Method Summary
 Iterator<Membership> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUPS_TO_NAMES

public static final com.google.common.base.Function<Group,String> GROUPS_TO_NAMES
Constructor Detail

DirectoryMembershipsIterable

public DirectoryMembershipsIterable(RemoteDirectory remoteDirectory,
                                    Iterable<String> groupNames)

DirectoryMembershipsIterable

public DirectoryMembershipsIterable(RemoteDirectory remoteDirectory)
                             throws OperationFailedException
Throws:
OperationFailedException
Method Detail

iterator

public Iterator<Membership> iterator()
Specified by:
iterator in interface Iterable<Membership>


Copyright © 2012 Atlassian. All Rights Reserved.