| |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
Request | Allows to conrol aspects of the documents and seedlists retrieving actions. |
RetrieverFactory | Used to obtain the seedlist retriever service and seedlist request objects. |
RetrieverSeedlist | Represents a Seedlist whose enrties (documents or sub-seedlists) relate to another Retriever type. |
RetrieverService | Represents a host, which provides content retrieving services. |
Package contains interfaces for retrieving content from specific content provider.
The content provider can be any application, located locally or remotely.
The content of the application from the API perspective is structured in a tree and any level of nodes
which points to additional content is called a Seedlist (See - Seedlist).
The letfs are called "Documents (See - Document).
The API provides functionality to obtain from specified seedlist :
HttpServletRequest servletRequest = ...; // received on the Portlet request HttpServletResponse servletResponse = ...; // received on the Portlet request Properties props = ...; // taken for example from the plugin.xml which defines the retriever implementation RetrieverService retrieverService = retrieverFactory.getRetrieverService(props, servletRequest, servletResponse);
Seedlist seedlist = ...; // the seedlist which its content is required com.ibm.lotus.search.providers.content.seedlist.retriever.Request retrieverRequest = retrieverFactory.createRequest(seedlist.getId()); // range (i.e, start index and number of requested entries) of retrieved entries retrieverRequest.setEntryRange(startIndex, numEntries); // last update date for retrieved documents retrieverRequest.setDate(lastUpdate); // locale to represent localized data retrieverRequest.setLocale(locale); // session inner state retrieverRequest.setState(state); // inter-session state retrieverRequest.setTimestamp(timestamp); // prepare user security information ApplicationInfo appInfo = retrieverFactory.createApplicationInfo(userId); EntrySet entries = null; if(seedlist.canRetrieveDocuments()) { entries = retrieverService.getDocuments(appInfo, retrieverRequest); } else { entries = retrieverService.getChildren(appInfo, retrieverRequest); }
| |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |