|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.proxy.IteratorProxy
public class IteratorProxy
Protection proxy for Iterators of polls, categories, forums, threads, messages, private messages and attachments. The class is smart enough to skip over elements in the Iterator that the user doesn't have permission to read.
Constructor Summary | |
---|---|
IteratorProxy(int type,
java.util.Iterator iterator,
AuthToken authToken)
Creates a new iterator proxy. |
Method Summary | |
---|---|
java.lang.Object |
getNextElement()
Returns the next available element, or null if there are no more elements. |
boolean |
hasNext()
Returns true if there are more elements in the iteration. |
java.lang.Object |
next()
Returns the next element. |
void |
remove()
Not supported for security reasons. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IteratorProxy(int type, java.util.Iterator iterator, AuthToken authToken)
type
- the type of object to be proxied. Must be a valid value from
JiveConstants.iterator
- the Iterator to create proxies for.authToken
- the authToken.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
java.util.NoSuchElementException
- if there are no more elements.public void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
public java.lang.Object getNextElement()
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |