|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.enumeration.RawNamingEnumeration<SearchResult>
com.ca.jcs.sdkws.forwardinc.UserNamingEnumeration
public class UserNamingEnumeration
NamingEnumeration implementation that specifically deals with translating the web service response in to a SearchResult object that the JCS can use. This class handles User objects only. It also is using paging. It expect the handle ID of a query already performed on the endpoint. It will iterate over these results as normal, and it calls the web service for the next page as needed.
| Field Summary | |
|---|---|
static int |
DEFAULT_PAGE_SIZE
The default page size |
| Fields inherited from class com.ca.jcs.enumeration.RawNamingEnumeration |
|---|
countLimit, scope, startTime, timeLimit, visitedCount |
| Constructor Summary | |
|---|---|
UserNamingEnumeration(SDKWSMetaConnector connector,
String connObjectClass,
int handleID,
int resultSize)
Constructor that sets the handle id and the resultSize of the result set. |
|
UserNamingEnumeration(SDKWSMetaConnector connector,
String connObjectClass,
int handleID,
int resultSize,
int pageSize)
Constructor that sets the handle id and the resultSize of the result set. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this enumeration by releasing the handle on the endpoint. |
boolean |
rawHasMore()
Returns true if there are more elements in the childElements iterator. |
SearchResult |
rawNext()
Creates the SearchResult object from the next element in the WS result iterator. |
| Methods inherited from class com.ca.jcs.enumeration.RawNamingEnumeration |
|---|
getCountLimit, getNonFatalException, getTimeLimit, getVisitedCount, hasMore, hasMoreElements, next, nextElement, setCountLimit, setNonFatalException, setTimeLimit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PAGE_SIZE
| Constructor Detail |
|---|
public UserNamingEnumeration(SDKWSMetaConnector connector,
String connObjectClass,
int handleID,
int resultSize)
throws NamingException
connector - the connector.connObjectClass - the connector object class name. This will be used as the SearchResult's class name.handleID - the handle ID for paging.resultSize - the resultSize of the result set.
NamingException - if SDKWSMetaConnector is null.
public UserNamingEnumeration(SDKWSMetaConnector connector,
String connObjectClass,
int handleID,
int resultSize,
int pageSize)
throws NamingException
connector - the connector.connObjectClass - the connector object class name. This will be used as the SearchResult's class name.handleID - the handle ID for paging.resultSize - the resultSize of the result set.pageSize - the size of the page to return on each request.
NamingException - if SDKWSMetaConnector is null.| Method Detail |
|---|
public boolean rawHasMore()
throws NamingException
rawHasMore in class RawNamingEnumeration<SearchResult>NamingException - if childElements is null.
public SearchResult rawNext()
throws NamingException
rawNext in class RawNamingEnumeration<SearchResult>NamingException - if any errors occur.
public void close()
throws NamingException
NamingException - if any errors occur.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||