org.apache.jackrabbit.commons.iterator
Class AccessControlPolicyIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.commons.iterator.AccessControlPolicyIteratorAdapter
- All Implemented Interfaces:
- Iterator, RangeIterator, AccessControlPolicyIterator
public class AccessControlPolicyIteratorAdapter
- extends RangeIteratorDecorator
- implements AccessControlPolicyIterator
Adapter class for turning RangeIterators or Iterators
into AccessControlPolicyIteratorAdapters.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final AccessControlPolicyIterator EMPTY
- Static instance of an empty
AccessControlPolicyIteratorAdapter.
AccessControlPolicyIteratorAdapter
public AccessControlPolicyIteratorAdapter(RangeIterator iterator)
- Creates an adapter for the given
RangeIterator.
- Parameters:
iterator - iterator of access control policies.
AccessControlPolicyIteratorAdapter
public AccessControlPolicyIteratorAdapter(Iterator iterator)
- Creates an adapter for the given
Iterator.
- Parameters:
iterator - iterator of access control policies.
AccessControlPolicyIteratorAdapter
public AccessControlPolicyIteratorAdapter(Collection collection)
- Creates an iterator for the given collection.
- Parameters:
collection - collection of AccessControlPolicy objects.
nextAccessControlPolicy
public AccessControlPolicy nextAccessControlPolicy()
throws NoSuchElementException
- Returns the next policy.
- Specified by:
nextAccessControlPolicy in interface AccessControlPolicyIterator
- Returns:
- next policy.
- Throws:
NoSuchElementException - if there is no next policy.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.