Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base
Class UserIteratorProxy

java.lang.Object
  extended by com.jivesoftware.base.UserIteratorProxy
All Implemented Interfaces:
java.util.Iterator

public class UserIteratorProxy
extends java.lang.Object
implements java.util.Iterator

Protection proxy for Iterators of users.


Constructor Summary
UserIteratorProxy(java.util.Iterator iterator, AuthToken auth, Permissions permissions)
          Creates a new user 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

UserIteratorProxy

public UserIteratorProxy(java.util.Iterator iterator,
                         AuthToken auth,
                         Permissions permissions)
Creates a new user iterator proxy.

Parameters:
iterator - the Iterator to create proxies for.
auth - the authorization token.
permissions - the permissions that the new proxy will inherit.
Method Detail

hasNext

public boolean hasNext()
Returns true if there are more elements in the iteration.

Specified by:
hasNext in interface java.util.Iterator
Returns:
true if the iterator has more elements.

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Returns the next element.

Specified by:
next in interface java.util.Iterator
Returns:
the next element.
Throws:
java.util.NoSuchElementException - if there are no more elements.

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Not supported for security reasons.

Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException

getNextElement

public java.lang.Object getNextElement()
Returns the next available element, or null if there are no more elements.

Returns:
the next available element.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.