|
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.framework.context.Configuration com.esri.gpt.catalog.search.SearchConfig
public class SearchConfig
The Class SearchConfig. Holds the searchConfiguration. Do not instantiate this class to get the configuration. The configuration should be accessed through the ApplicationContext or through the convinience method getConfiguredInstance.
ApplicationContext
Field Summary | |
---|---|
static String |
DEFAULT_CSW_PROFILE
The Constant DEFAULT CSW PROFILE. |
static int |
DEFAULT_DISTR_TIMEOUT
The Constant DEFAULT_DISTR_TIMEOUT. |
static int |
DEFAULT_MAX_SAVED_SEARCHES
The dConstant DEFAULT MAXIMUM SAVED SEARCHES *. |
static int |
DEFAULT_MAXIMUM_SEARCHSITES
The Constant DEFAULT_MAXIMUM_SEARCHSITES. |
static int |
DEFAULT_RESULTS_PER_PAGE
The default number of results per page *. |
static int |
DEFAULT_TIMEOUT
The Constant DEFAULT_TIMEOUT. |
Constructor Summary | |
---|---|
SearchConfig()
Instantiates a new search configuration. |
Method Summary | |
---|---|
boolean |
getAllowExternalSearch()
Checks if is allow external search. |
static SearchConfig |
getConfiguredInstance()
Convinience method. |
String |
getCswProfile()
Gets the CSW profile. |
Envelope |
getDefaultEnvelope()
Gets the default envelope. |
String |
getDefaultViewerUrl()
Gets the default viewer url. |
int |
getDistributedSearchMaxSelectedSites()
Gets the distributed search max selected sites. |
int |
getDistributedSearchTimeoutMillisecs()
Gets the distributed search timeout millisecs. |
XsltTemplate |
getGptToCswXsltTemplate()
Gets the gpt to csw xslt template. |
SearchGptXslProfiles |
getGptXslProfiles()
Gets the gpt xsl profiles. |
String |
getJsfSuffix()
Gets the jsf suffix. |
ArrayList<MapViewerConfigs> |
getMapViewerInstances()
Gets the map viewer instances. |
String |
getMapViewerUrl()
Gets the map viewer url. |
URL |
getMapviewerUrl2()
Gets the mapviewer as java.net.URL object. |
int |
getMaxSavedSearches()
Gets the max saved searches. |
String |
getMvsPassword()
Gets the mvs password. |
String |
getMvsUsername()
Gets the mvs username. |
int |
getResultsPerPage()
Gets the results per page. |
String |
getResultsReviewsShown()
Gets the results reviews shown. |
LinkedHashMap<String,Map<String,String>> |
getSearchFactoryRepos()
Gets the search factory. |
URI |
getSearchUri()
Gets the Search URI. |
int |
getTimeOut()
Gets the time out. |
void |
setAllowExternalSearch(boolean allowExternalSearch)
Sets the allow external search. |
void |
setCswProfile(String cswProfile)
Sets the CSW profile. |
void |
setDefaultEnvelope(Envelope defaultEnvelope)
Sets the default envelope. |
void |
setDistributedSearchMaxSelectedSites(String distributedSearchMaxSelectedSites)
Sets the distributed search max selected sites. |
void |
setDistributedSearchTimeoutMillisecs(String distributedSearchTimeoutMillisecs)
Sets the distributed search timeout millisecs. |
void |
setGptToCswXsltPath(String path)
Sets the gpt to csw xslt. |
void |
setJsfSuffix(String jsfSuffix)
Sets the jsf suffix. |
void |
setMapViewerInstances(ArrayList<MapViewerConfigs> mapViewerInstances)
Sets the map viewer instances. |
void |
setMapViewerUrl(String mapViewerUrl)
Sets the map viewer url. |
void |
setMaxSavedSearches(String maxSavedSearches)
Sets the max saved searches. |
void |
setMvsPassword(String mvsPassword)
Sets the mvs password. |
void |
setMvsUsername(String mvsUsername)
Sets the mvs username. |
void |
setResultsPerPage(String resultsPerPage)
Sets the results per page. |
void |
setResultsReviewsShown(String resultsReviewsShown)
Sets the results reviews shown. |
void |
setSearchFactoryRepos(LinkedHashMap<String,Map<String,String>> searchFactory)
Sets the search factory. |
void |
setSearchUri(String searchUri)
Sets the search URI. |
void |
setTimeOut(String timeOut)
Sets the time out. |
String |
toString()
To string. |
void |
validate()
Validate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_RESULTS_PER_PAGE
public static final int DEFAULT_TIMEOUT
public static final int DEFAULT_DISTR_TIMEOUT
public static final int DEFAULT_MAXIMUM_SEARCHSITES
public static final String DEFAULT_CSW_PROFILE
public static final int DEFAULT_MAX_SAVED_SEARCHES
Constructor Detail |
---|
public SearchConfig()
Method Detail |
---|
public boolean getAllowExternalSearch()
public void setAllowExternalSearch(boolean allowExternalSearch)
allowExternalSearch
- the new allow external searchpublic int getTimeOut()
public void setTimeOut(String timeOut)
timeOut
- the new time outpublic Envelope getDefaultEnvelope()
public void setDefaultEnvelope(Envelope defaultEnvelope)
defaultEnvelope
- the new default envelopepublic String getJsfSuffix()
public void setJsfSuffix(String jsfSuffix)
jsfSuffix
- the new jsf suffixpublic String getMapViewerUrl()
public void setMapViewerUrl(String mapViewerUrl)
mapViewerUrl
- the new map viewer urlpublic XsltTemplate getGptToCswXsltTemplate() throws SearchException
SearchException
- the search exception
Searchception
- xlst template not initialized by configurationpublic int getResultsPerPage()
public void setResultsPerPage(String resultsPerPage)
resultsPerPage
- the results per pagepublic SearchGptXslProfiles getGptXslProfiles() throws SearchException
SearchException
- TODO: Make this threadsafe TMpublic URI getSearchUri() throws SearchException
SearchException
- if uri configured has a problempublic void setSearchUri(String searchUri)
searchUri
- the new search URI (nulls allowed)public String getCswProfile()
public void setCswProfile(String cswProfile)
cswProfile
- the new CSW profilepublic void setGptToCswXsltPath(String path)
path
- the new gpt to csw xslt file path
ConfigurationException
- If resource cannot be initializedpublic int getDistributedSearchTimeoutMillisecs()
public void setDistributedSearchTimeoutMillisecs(String distributedSearchTimeoutMillisecs)
distributedSearchTimeoutMillisecs
- the new distributed search timeout millisecspublic int getDistributedSearchMaxSelectedSites()
public void setDistributedSearchMaxSelectedSites(String distributedSearchMaxSelectedSites)
distributedSearchMaxSelectedSites
- the new distributed search max selected sitespublic void setMapViewerInstances(ArrayList<MapViewerConfigs> mapViewerInstances)
mapViewerInstances
- the new map viewer instancespublic int getMaxSavedSearches()
public void setMaxSavedSearches(String maxSavedSearches)
maxSavedSearches
- the new max saved searchespublic String getMvsUsername()
public void setMvsUsername(String mvsUsername)
mvsUsername
- the new mvs usernamepublic String getMvsPassword()
public void setMvsPassword(String mvsPassword)
mvsPassword
- the new mvs passwordpublic LinkedHashMap<String,Map<String,String>> getSearchFactoryRepos()
public void setSearchFactoryRepos(LinkedHashMap<String,Map<String,String>> searchFactory)
searchFactory
- the new search factorypublic ArrayList<MapViewerConfigs> getMapViewerInstances()
public String getResultsReviewsShown()
public void setResultsReviewsShown(String resultsReviewsShown)
resultsReviewsShown
- the new results reviews shownpublic static SearchConfig getConfiguredInstance()
ConfigurationException
- if SearchConfig is null in
ApplicationContextpublic String toString()
toString
in class Object
Object.toString()
public void validate()
ConfigurationException
- if configuration parameters are wrongpublic URL getMapviewerUrl2() throws SearchException
SearchException
- If mapvewer url was found to be errantpublic String getDefaultViewerUrl()
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |