com.tivoli.pd.rgy.RgyIterator
This interface provides an iterator for lists of user and group IDs.
Depending on the RgyRegistry method that
returns the RgyIterator instance, the group IDs are
either Verify Identity Access IDs
or native IDs.
- hasNext()
-
Returns the Boolean value
trueif another ID is available.This method generates SizeLimitExceededRgyException if more results are available than those specified in
maxResultswhen theRgyIteratorwas constructed, or the Registry Server is configured to allow. This exception occurs on the call after returning the last available ID.Prototype:boolean hasNext() throws RgyException;
- next()
-
Returns the next available ID.
Prototype:String next() throws RgyException;
- close()
-
Stops the iteration.
If
RgyIteratordoes not throw an exception orhasNext()does not returnfalseand the caller has finished using theRgyIteratorinstance, callclose()immediately to release any used resource. Each openRgyIteratorinstance opens a connection to the native registry.The Registry Direct Java API limits the number of open
RgyIteratorto restrict the number of simultaneous connections. When the maximum limit is reached, instantiating newRgyIteratoris not possible until at least one of the existing connections is closed.Prototype:void close();