com.waveset.adapter
Class GenericScriptResourceAdapter.AcctIter

java.lang.Object
  extended bycom.waveset.adapter.GenericScriptResourceAdapter.AcctIter
All Implemented Interfaces:
AccountIterator
Enclosing class:
GenericScriptResourceAdapter

protected static class GenericScriptResourceAdapter.AcctIter
extends java.lang.Object
implements AccountIterator

Very basic AccountIterator implementation that can be built by simple construction with a collection of names. Builds users on the fly as the iterator progresses.


Field Summary
 
Fields inherited from interface com.waveset.adapter.AccountIterator
code_id
 
Constructor Summary
GenericScriptResourceAdapter.AcctIter(java.util.Collection names)
          Constructor takes collection of all user name strings.
GenericScriptResourceAdapter.AcctIter(java.lang.String spaceDelimitedNames)
          Convenience constructor that builds an account iterator from a string of space delimited user names.
 
Method Summary
 void close()
          Closes the iterator.
 boolean hasNext()
          Returns true if there are more users to go.
 WSUser next()
          Returns the next user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericScriptResourceAdapter.AcctIter

public GenericScriptResourceAdapter.AcctIter(java.lang.String spaceDelimitedNames)
Convenience constructor that builds an account iterator from a string of space delimited user names.


GenericScriptResourceAdapter.AcctIter

public GenericScriptResourceAdapter.AcctIter(java.util.Collection names)
Constructor takes collection of all user name strings.

Method Detail

hasNext

public boolean hasNext()
Returns true if there are more users to go.

Specified by:
hasNext in interface AccountIterator

next

public WSUser next()
Returns the next user.

Specified by:
next in interface AccountIterator
Returns:
the next account


close

public void close()
Closes the iterator.

Specified by:
close in interface AccountIterator