|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.catalog.search.ASearchEngine com.esri.gpt.catalog.search.SearchEngineFactory
public abstract class SearchEngineFactory
A factory for creating Search Data Access Objects. Factory caches the engines in session.
Constructor Summary | |
---|---|
protected |
SearchEngineFactory()
Instantiates a new search DAO factory. |
Method Summary | |
---|---|
static ASearchEngine |
createSearchEngine(SearchCriteria criteria,
SearchResult result,
RequestContext context,
MessageBroker messageBroker)
Creates a new SearchDAO object. |
static ASearchEngine |
createSearchEngine(SearchCriteria criteria,
SearchResult result,
RequestContext context,
String key,
MessageBroker messageBroker)
Creates a new SearchEngine object. |
static ASearchEngine |
createSearchEngine(SearchCriteria criteria,
SearchResult result,
RequestContext context,
String key,
MessageBroker messageBroker,
String username,
String password)
Creates a new Search |
ASearchEngine |
createSearchEngine(String endPointUrl,
String endPointData,
SearchPointOptions options)
Creates a new SearchEngine object. |
static Map<String,Object> |
createSearchEngines(SearchCriteria criteria,
SearchResult result,
RequestContext context,
StringSet rids,
MessageBroker messageBroker,
String username,
String password)
Creates a new SearchEngine object. |
static ASearchEngine |
getSearchEngine(String className,
String key,
RequestContext context)
Gets the search engine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SearchEngineFactory()
Method Detail |
---|
public static ASearchEngine createSearchEngine(SearchCriteria criteria, SearchResult result, RequestContext context, MessageBroker messageBroker) throws SearchException
criteria
- the criteria to be used by the searchresult
- the result reference where the results will be stored after \
search.context
- Used for connection information. Can be null if you intend
to use CSW only.messageBroker
- the message broker
SearchException
- when URI to search cannot be foundpublic static ASearchEngine createSearchEngine(SearchCriteria criteria, SearchResult result, RequestContext context, String key, MessageBroker messageBroker) throws SearchException
criteria
- the criteria (should never be null)result
- the result (should never be null)context
- the context (should never be null)key
- the key to find the corresponding search engine(should never be null)messageBroker
- the message broker
SearchException
- the search exceptioncreateSearchEngine(SearchCriteria, SearchResult, RequestContext, String, MessageBroker, String, String)
public static ASearchEngine createSearchEngine(SearchCriteria criteria, SearchResult result, RequestContext context, String key, MessageBroker messageBroker, String username, String password) throws SearchException
criteria
- the criteria (should never be null)result
- the result (should never be null)context
- the context (should never be null)key
- the key to find the corresponding search engine(should never be null) (Should be a string to be used with regex on the SearchConfig.getSearchFactoryRepos()
keyusername
- the usernamepassword
- the password
SearchException
- Thrown if any parameters are null and on other faultspublic ASearchEngine createSearchEngine(String endPointUrl, String endPointData, SearchPointOptions options)
endPointUrl
- the end point urlendPointData
- the end point dataoptions
- the options
public static ASearchEngine getSearchEngine(String className, String key, RequestContext context) throws SearchException
className
- the class namekey
- the keycontext
- the context
SearchException
- if class cannot be constructedpublic static Map<String,Object> createSearchEngines(SearchCriteria criteria, SearchResult result, RequestContext context, StringSet rids, MessageBroker messageBroker, String username, String password) throws SearchException
criteria
- the criteriaresult
- the resultcontext
- the contextrids
- the ridsmessageBroker
- the message brokerusername
- the usernamepassword
- the password
SearchException
- the search exception
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |