Class NestedGroupsIterator<T>
java.lang.Object
com.atlassian.crowd.manager.directory.nestedgroups.NestedGroupsIterator<T>
Class simplifying iterating over nested groups.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleananyMatch(NestedGroupsIterator.PredicateWithException<T> consumer) static NestedGroupsIterator<Group>groupsIterator(Collection<? extends Group> groups, boolean includeOriginal, NestedGroupsProvider provider) static NestedGroupsIterator<Group>groupsIterator(Collection<String> groups, NestedGroupsProvider provider) booleanhasNext()static NestedGroupsIterator<String>namesIterator(Collection<String> groups, boolean includeOriginal, NestedGroupsProvider provider) next()nextBatch(int maxBatchSize) toList()voidvisitAll()
-
Method Details
-
hasNext
- Throws:
OperationFailedException
-
next
- Throws:
OperationFailedException
-
toList
- Throws:
OperationFailedException
-
nextBatch
- Throws:
OperationFailedException
-
anyMatch
public boolean anyMatch(NestedGroupsIterator.PredicateWithException<T> consumer) throws OperationFailedException - Throws:
OperationFailedException
-
visitAll
- Throws:
OperationFailedException
-
groupsIterator
public static NestedGroupsIterator<Group> groupsIterator(Collection<? extends Group> groups, boolean includeOriginal, NestedGroupsProvider provider) -
namesIterator
public static NestedGroupsIterator<String> namesIterator(Collection<String> groups, boolean includeOriginal, NestedGroupsProvider provider) -
groupsIterator
public static NestedGroupsIterator<Group> groupsIterator(Collection<String> groups, NestedGroupsProvider provider)
-