Esri Geoportal Server
1.0

com.esri.gpt.catalog.search
Class SearchEngineLocal

java.lang.Object
  extended by com.esri.gpt.catalog.search.ASearchEngine
      extended by com.esri.gpt.catalog.search.SearchEngineCSW
          extended by com.esri.gpt.catalog.search.SearchEngineLocal
All Implemented Interfaces:
IRequest<SearchRequestDefinition>

public class SearchEngineLocal
extends SearchEngineCSW

CSW based search engine that executes against the local GPT catalog.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.gpt.catalog.search.SearchEngineCSW
SearchEngineCSW.AimsContentTypes, SearchEngineCSW.Scheme, SearchEngineCSW.SEARCH_OPERATION
 
Field Summary
static String ID
          The ID that can be associated with the search factory hint.
 
Fields inherited from class com.esri.gpt.catalog.search.SearchEngineCSW
DATE_FORMAT, KEY_LINK_INFO, KEY_REFERENCES, KEY_TYPES
 
Constructor Summary
SearchEngineLocal(RequestContext context)
           
 
Method Summary
 Map<String,Object> createInstances(StringSet rids)
          Creates instances
 String getKeyAbstract()
          Gets the abstract associated with the key
protected  CswRecord getMetadata(String uuid)
          Sends a CSW GetRecordByID request to CSW service.
 void init()
          Inits the Object after you have set the properties.
protected  CswRecords sendRequest(String cswRequest)
          Sends a CSW GetRecords request to the local CSW service.
 
Methods inherited from class com.esri.gpt.catalog.search.SearchEngineCSW
doSearch, doSearch, getCapabilities, getCswClient, getCswProfile, getGetCapabiltiesUrl, getGetMetadataRecordUrl, getGetRecordsUrl, getMetadataAsSearchResultRecord, getMetadataAsText, getMetadataUrl, getProfileId, getSearchQuery, marshallGptToCswClientCriteria, marshallGptToCswClientCriteria2, marshallRecord, marshallRecords, parseResponse, readIsExternalSearch, setCapabilities, setCswClient, setGetCapabiltiesUrl, setGetMetadataRecordUrl, setGetRecordsUrl, setProfileId, transformGptToCswRequest
 
Methods inherited from class com.esri.gpt.catalog.search.ASearchEngine
checkPagination, getConnectionTimeoutMs, getConnectionUri, getCredentials, getFactoryAttributes, getHitsOnly, getKey, getMessageBroker, getRequestContext, getRequestDefinition, getResourceLinkBuilder, getResponseTimeoutMs, getSearchTimeInMillis, getTimeInSeconds, readInputCharacters, setConnectionTimeoutMs, setConnectionUri, setCredentials, setFactoryAttributes, setHitsOnly, setKey, setMessageBroker, setRequestContext, setRequestDefinition, setResourceLinkBuilder, setResponseTimeout, setSearchTimeInMillis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
The ID that can be associated with the search factory hint.

See Also:
Constant Field Values
Constructor Detail

SearchEngineLocal

public SearchEngineLocal(RequestContext context)
Method Detail

init

public void init()
          throws SearchException
Description copied from class: ASearchEngine
Inits the Object after you have set the properties. Sets the attribute timeout connection and the attribute response timeout

Overrides:
init in class SearchEngineCSW
Throws:
SearchException - the search exception

getMetadata

protected CswRecord getMetadata(String uuid)
                         throws SearchException
Sends a CSW GetRecordByID request to CSW service.

Overrides:
getMetadata in class SearchEngineCSW
Parameters:
uuid - the document UUID
Returns:
the resultant record
Throws:
SearchException - the search exception

sendRequest

protected CswRecords sendRequest(String cswRequest)
                          throws SearchException
Sends a CSW GetRecords request to the local CSW service.

Overrides:
sendRequest in class SearchEngineCSW
Parameters:
cswRequest - the CSW XML request
Returns:
the resultant records
Throws:
SearchException - the search exception

getKeyAbstract

public String getKeyAbstract()
                      throws SearchException
Gets the abstract associated with the key

Overrides:
getKeyAbstract in class ASearchEngine
Returns:
the abstract
Throws:
SearchException

createInstances

public Map<String,Object> createInstances(StringSet rids)
Creates instances

Overrides:
createInstances in class SearchEngineCSW
Parameters:
rids -
Returns:
Map with engine

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.