Esri Geoportal Server
1.0

com.esri.gpt.catalog.search
Class SearchFilterHarvestSites

java.lang.Object
  extended by com.esri.gpt.catalog.search.SearchFilterHarvestSites
All Implemented Interfaces:
ISearchFilter, ISearchFilterAuthURI, ISearchFilterURI, Serializable

public class SearchFilterHarvestSites
extends Object
implements ISearchFilterAuthURI

The Class SearchFilterHarvestSites. Class started out as connecting the harvesting sites to the search UI. Over time has evolved to facilitate external search.

See Also:
Serialized Form

Constructor Summary
SearchFilterHarvestSites()
           
 
Method Summary
protected  CswCatalog doGetCswCatalog(String url, String name, String profile)
          Do get csw catalog.
 String getJscriptForeignSites()
          Gets the jscript foreign sites.
 SearchParameterMap getParams()
          Gets the parameters associated with the object
 URI getSearchURI()
          Gets A url fo rthe search end point
 String getSearchUrl()
          Gets the search url.
 String getSelectedDistributedIds()
          Gets the selected search site ids.
 String getSelectedDistributedNames()
          Gets the selected distributed names.
 String getSelectedHarvestSiteGetRecordUrl()
          Gets the selected harvest site get record url.
 String getSelectedHarvestSiteId()
          Gets the selected harvest site id.
 String getSelectedHarvestSiteName()
          Gets the selected harvest site name.
 String getSelectedHarvestSitePassword()
          Gets the selected harvest site password.
 String getSelectedHarvestSitePostUrl()
          Gets the selected harvest site post url.
 String getSelectedHarvestSiteProfile()
          Gets the selected harvest site profile.
 String getSelectedHarvestSiteSupoortsCtpQury()
          Gets the selected harvest site supoorts ctp qury.
 String getSelectedHarvestSiteSupoortsSptBnds()
          Gets the selected harvest site supoorts spt bnds.
 String getSelectedHarvestSiteSupoortsSptlQury()
          Gets the selected harvest site supoorts sptl qury.
 String getSelectedHarvestSiteUrl()
          Gets the selected harvest site url.
 String getSelectedHarvestSiteUsername()
          Gets the selected harvest site username.
 boolean isDistributedPanelOpen()
          Checks if is distributed panel open.
 boolean isEquals(Object obj)
          Checks for equality
 boolean isSelectedHarvestSiteUsesAuth()
          Checks if is selected harvest site uses auth.
 String readPassword()
          Reads users's password
 String readUsername()
          Reads user's username
 void reset()
          Resets this object to default properties.
 void setDistributedPanelOpen(boolean distributedPanelOpen)
           
 void setParams(SearchParameterMap parameterMap)
          Restores this object to the state held by the values in the Parameter map.
 void setSearchUrl(String searchUrl)
          Sets the current search url.
 void setSelectedDistributedIds(String selectedSearchSiteIds)
          Sets the selected search site ids.
 void setSelectedDistributedNames(String selectedDistributedNames)
          Sets the selected distributed names.
 void setSelectedHarvestSiteGetRecordUrl(String selectedHarvestSiteGetRecordUrl)
          Sets the selected harvest site get record url.
 void setSelectedHarvestSiteId(String selectedHarvestSiteId)
          Sets the selected harvest site id.
 void setSelectedHarvestSiteName(String selectedHarvestSiteName)
          Sets the selected harvest site name.
 void setSelectedHarvestSitePassword(String selectedHarvestSitePassword)
          Sets the selected harvest site password.
 void setSelectedHarvestSitePostUrl(String selectedHarvestSitePostUrl)
          Sets the selected harvest site post url.
 void setSelectedHarvestSiteProfile(String selectedHarvestSiteProfile)
          Sets the selected harvest site profile.
 void setSelectedHarvestSiteSupoortsCtpQury(String selectedHarvestSiteSupoortsCtpQury)
          Sets the selected harvest site supoorts ctp qury.
 void setSelectedHarvestSiteSupoortsSptBnds(String selectedHarvestSiteSupoortsSptBnds)
          Sets the selected harvest site supoorts spt bnds.
 void setSelectedHarvestSiteSupoortsSptlQury(String selectedHarvestSiteSupoortsSptlQury)
          Sets the selected harvest site supoorts sptl qury.
 void setSelectedHarvestSiteUrl(String selectedHarvestSiteUrl)
          Sets the selected harvest site url.
 void setSelectedHarvestSiteUsername(String selectedHarvestSiteUsername)
          Sets the selected harvest site username.
 void setSelectedHarvestSiteUsesAuth(boolean selectedHarvestSiteUsesAuth)
          Sets the selected harvest site uses auth.
 void validate()
          Checks if object has valid data.
protected  void writePostGetUrl()
          Write post get url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchFilterHarvestSites

public SearchFilterHarvestSites()
Method Detail

getSearchUrl

public String getSearchUrl()
Gets the search url.

Returns:
the current searchurl (never null, trimmed)

setSearchUrl

public void setSearchUrl(String searchUrl)
Sets the current search url.

Parameters:
searchUrl - Search url

getSelectedDistributedIds

public String getSelectedDistributedIds()
Gets the selected search site ids.

Returns:
the selected search site ids (trimmed, never null)

setSelectedDistributedIds

public void setSelectedDistributedIds(String selectedSearchSiteIds)
Sets the selected search site ids.

Parameters:
selectedSearchSiteIds - the new selected search site ids

isDistributedPanelOpen

public boolean isDistributedPanelOpen()
Checks if is distributed panel open.

Returns:
true, if is distributed panel open

setDistributedPanelOpen

public void setDistributedPanelOpen(boolean distributedPanelOpen)

getSelectedDistributedNames

public String getSelectedDistributedNames()
Gets the selected distributed names.

Returns:
the selected distributed names (trimmed, never null)

setSelectedDistributedNames

public void setSelectedDistributedNames(String selectedDistributedNames)
Sets the selected distributed names.

Parameters:
selectedDistributedNames - the new selected distributed names

getSelectedHarvestSiteGetRecordUrl

public String getSelectedHarvestSiteGetRecordUrl()
Gets the selected harvest site get record url.

Returns:
the selected harvest site get record url (never null)

setSelectedHarvestSiteGetRecordUrl

public void setSelectedHarvestSiteGetRecordUrl(String selectedHarvestSiteGetRecordUrl)
Sets the selected harvest site get record url.

Parameters:
selectedHarvestSiteGetRecordUrl - the new selected harvest site get record url

getSelectedHarvestSitePostUrl

public String getSelectedHarvestSitePostUrl()
                                     throws SearchException
Gets the selected harvest site post url.

Returns:
the selected harvest site post url
Throws:
SearchException - the search exception

setSelectedHarvestSitePostUrl

public void setSelectedHarvestSitePostUrl(String selectedHarvestSitePostUrl)
Sets the selected harvest site post url.

Parameters:
selectedHarvestSitePostUrl - the new selected harvest site post url

getSelectedHarvestSiteUrl

public String getSelectedHarvestSiteUrl()
Gets the selected harvest site url.

Returns:
the selected harvest site url (never null, trimmed)

setSelectedHarvestSiteUrl

public void setSelectedHarvestSiteUrl(String selectedHarvestSiteUrl)
Sets the selected harvest site url.

Parameters:
selectedHarvestSiteUrl - the new selected harvest site url

getSelectedHarvestSiteName

public String getSelectedHarvestSiteName()
Gets the selected harvest site name.

Returns:
the selected harvest site name (trimmed, never null)

setSelectedHarvestSiteName

public void setSelectedHarvestSiteName(String selectedHarvestSiteName)
Sets the selected harvest site name.

Parameters:
selectedHarvestSiteName - the new selected harvest site name

getSelectedHarvestSiteProfile

public String getSelectedHarvestSiteProfile()
Gets the selected harvest site profile.

Returns:
the selected harvest site profile

setSelectedHarvestSiteProfile

public void setSelectedHarvestSiteProfile(String selectedHarvestSiteProfile)
Sets the selected harvest site profile.

Parameters:
selectedHarvestSiteProfile - the new selected harvest site profile

getSelectedHarvestSiteSupoortsSptlQury

public String getSelectedHarvestSiteSupoortsSptlQury()
Gets the selected harvest site supoorts sptl qury.

Returns:
the selected harvest site supoorts sptl qury

setSelectedHarvestSiteSupoortsSptlQury

public void setSelectedHarvestSiteSupoortsSptlQury(String selectedHarvestSiteSupoortsSptlQury)
Sets the selected harvest site supoorts sptl qury.

Parameters:
selectedHarvestSiteSupoortsSptlQury - the new selected harvest site supoorts sptl qury

getSelectedHarvestSiteSupoortsCtpQury

public String getSelectedHarvestSiteSupoortsCtpQury()
Gets the selected harvest site supoorts ctp qury.

Returns:
the selected harvest site supoorts ctp qury

setSelectedHarvestSiteSupoortsCtpQury

public void setSelectedHarvestSiteSupoortsCtpQury(String selectedHarvestSiteSupoortsCtpQury)
Sets the selected harvest site supoorts ctp qury.

Parameters:
selectedHarvestSiteSupoortsCtpQury - the new selected harvest site supoorts ctp qury

getSelectedHarvestSiteSupoortsSptBnds

public String getSelectedHarvestSiteSupoortsSptBnds()
Gets the selected harvest site supoorts spt bnds.

Returns:
the selected harvest site supoorts spt bnds

setSelectedHarvestSiteSupoortsSptBnds

public void setSelectedHarvestSiteSupoortsSptBnds(String selectedHarvestSiteSupoortsSptBnds)
Sets the selected harvest site supoorts spt bnds.

Parameters:
selectedHarvestSiteSupoortsSptBnds - the new selected harvest site supoorts spt bnds

getSelectedHarvestSitePassword

public String getSelectedHarvestSitePassword()
Gets the selected harvest site password.

Returns:
the selected harvest site password

setSelectedHarvestSitePassword

public void setSelectedHarvestSitePassword(String selectedHarvestSitePassword)
Sets the selected harvest site password.

Parameters:
selectedHarvestSitePassword - the new selected harvest site password

getSelectedHarvestSiteUsername

public String getSelectedHarvestSiteUsername()
Gets the selected harvest site username.

Returns:
the selected harvest site username

setSelectedHarvestSiteUsername

public void setSelectedHarvestSiteUsername(String selectedHarvestSiteUsername)
Sets the selected harvest site username.

Parameters:
selectedHarvestSiteUsername - the new selected harvest site username

isSelectedHarvestSiteUsesAuth

public boolean isSelectedHarvestSiteUsesAuth()
Checks if is selected harvest site uses auth.

Returns:
true, if is selected harvest site uses auth

setSelectedHarvestSiteUsesAuth

public void setSelectedHarvestSiteUsesAuth(boolean selectedHarvestSiteUsesAuth)
Sets the selected harvest site uses auth.

Parameters:
selectedHarvestSiteUsesAuth - the new selected harvest site uses auth

getSelectedHarvestSiteId

public String getSelectedHarvestSiteId()
Gets the selected harvest site id.

Returns:
the selected harvest site id (trimmed, never null, default = -1)

setSelectedHarvestSiteId

public void setSelectedHarvestSiteId(String selectedHarvestSiteId)
Sets the selected harvest site id.

Parameters:
selectedHarvestSiteId - the new selected harvest site id

getParams

public SearchParameterMap getParams()
Gets the parameters associated with the object

Specified by:
getParams in interface ISearchFilter
Returns:
Returns the parameter map (never null)

isEquals

public boolean isEquals(Object obj)
Checks for equality

Specified by:
isEquals in interface ISearchFilter
Parameters:
obj - Object to check
Returns:
true if equals, false if not

reset

public void reset()
Description copied from interface: ISearchFilter
Resets this object to default properties.

Specified by:
reset in interface ISearchFilter

setParams

public void setParams(SearchParameterMap parameterMap)
               throws SearchException
Description copied from interface: ISearchFilter
Restores this object to the state held by the values in the Parameter map.

Specified by:
setParams in interface ISearchFilter
Parameters:
parameterMap -
Throws:
SearchException

validate

public void validate()
              throws SearchException
Description copied from interface: ISearchFilter
Checks if object has valid data. Also performs any corrections to the date needed. Should be called at the beginning of the business process stage.

Specified by:
validate in interface ISearchFilter
Throws:
SearchException

writePostGetUrl

protected void writePostGetUrl()
                        throws SearchException
Write post get url.

Throws:
SearchException - the search exception

doGetCswCatalog

protected CswCatalog doGetCswCatalog(String url,
                                     String name,
                                     String profile)
                              throws SearchException
Do get csw catalog.

Parameters:
url - the url
name - the name
profile - the profile
Returns:
the csw catalog
Throws:
SearchException

getSearchURI

public URI getSearchURI()
                 throws URISyntaxException
Gets A url fo rthe search end point

Specified by:
getSearchURI in interface ISearchFilterURI
Returns:
The url associated with the search
Throws:
URISyntaxException

readPassword

public String readPassword()
Reads users's password

Specified by:
readPassword in interface ISearchFilterAuthURI
Returns:
the password

readUsername

public String readUsername()
Reads user's username

Specified by:
readUsername in interface ISearchFilterAuthURI
Returns:
the username

getJscriptForeignSites

public String getJscriptForeignSites()
Gets the jscript foreign sites.

Returns:
the jscript foreign sites

Esri Geoportal Server
1.0

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