01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.security;
05:
06: import javax.jcr.RangeIterator;
07:
08: /**
09: * Allows easy iteration through a list of <code>AccessControlPolicy</code>s
10: * with <code>nextAccessControlPolicy</code> as well as a <code>skip</code>
11: * method inherited from <code>RangeIterator</code>.
12: *
13: * @since JCR 2.0
14: */
15: public interface AccessControlPolicyIterator extends RangeIterator {
16:
17: /**
18: * Returns the next <code>AccessControlPolicy</code> in the iteration.
19: *
20: * @return the next <code>AccessControlPolicy</code> in the iteration.
21: * @throws java.util.NoSuchElementException if iteration has no more
22: * <code>AccessControlPolicy</code>s.
23: */
24: public AccessControlPolicy nextAccessControlPolicy();
25:
26: }
|