com.waveset.adapter
Class SAPHRActiveSyncAdapter.AcctIter

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

protected class SAPHRActiveSyncAdapter.AcctIter
extends java.lang.Object
implements AccountIterator

Iterator gets the list of SAP Employees using EmployeeAbstract.GetList (BAPI_EMPLOYEE_GETDATA), caches that list, then uses various BAPI calls to fetch the users one at a time.


Field Summary
 
Fields inherited from interface com.waveset.adapter.AccountIterator
code_id
 
Constructor Summary
SAPHRActiveSyncAdapter.AcctIter()
           
 
Method Summary
 void close()
           
 boolean hasNext()
          Get the next user.
 WSUser next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAPHRActiveSyncAdapter.AcctIter

public SAPHRActiveSyncAdapter.AcctIter()
                                throws WavesetException
Method Detail

hasNext

public boolean hasNext()
Get the next user. May trigger a search with the next pattern from _searchPatternIterator. Sets _nextUser and returns true if user is discovered.

Specified by:
hasNext in interface AccountIterator

next

public WSUser next()
            throws WavesetException
Specified by:
next in interface AccountIterator
Returns:
the next account

Throws:
WavesetException

close

public void close()
Specified by:
close in interface AccountIterator