org.apache.jackrabbit.core.security
Class AccessControlPolicyIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.core.security.AccessControlPolicyIteratorAdapter
- All Implemented Interfaces:
- Iterator, RangeIterator, AccessControlPolicyIterator
public class AccessControlPolicyIteratorAdapter
- extends RangeIteratorDecorator
- implements AccessControlPolicyIterator
Adapter class for turning RangeIterator
s or Iterator
s
into AccessControlPolicyIteratorAdapter
s.
TODO: move to jackrabbit-jcr-commons project as soon as jsr 283 is released.
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-2008 The Apache Software Foundation. All Rights Reserved.