public class AccessControlPolicyIteratorAdapter extends RangeIteratorDecorator implements javax.jcr.security.AccessControlPolicyIterator
Modifier and Type | Field and Description |
---|---|
static javax.jcr.security.AccessControlPolicyIterator |
EMPTY
Static instance of an empty
AccessControlPolicyIteratorAdapter . |
Constructor and Description |
---|
AccessControlPolicyIteratorAdapter(Collection collection)
Creates an iterator for the given collection.
|
AccessControlPolicyIteratorAdapter(Iterator iterator)
Creates an adapter for the given
Iterator . |
AccessControlPolicyIteratorAdapter(javax.jcr.RangeIterator iterator)
Creates an adapter for the given
RangeIterator . |
Modifier and Type | Method and Description |
---|---|
javax.jcr.security.AccessControlPolicy |
nextAccessControlPolicy()
Returns the next policy.
|
getPosition, getSize, hasNext, next, remove, skip
public static final javax.jcr.security.AccessControlPolicyIterator EMPTY
AccessControlPolicyIteratorAdapter
.public AccessControlPolicyIteratorAdapter(javax.jcr.RangeIterator iterator)
RangeIterator
.iterator
- iterator of access control policies
.public AccessControlPolicyIteratorAdapter(Iterator iterator)
Iterator
.iterator
- iterator of access control policies
.public AccessControlPolicyIteratorAdapter(Collection collection)
collection
- collection of AccessControlPolicy
objects.public javax.jcr.security.AccessControlPolicy nextAccessControlPolicy() throws NoSuchElementException
nextAccessControlPolicy
in interface javax.jcr.security.AccessControlPolicyIterator
NoSuchElementException
- if there is no next policy.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.