Esri Geoportal Server
1.0

com.esri.gpt.catalog.search
Class SearchFilterConnection

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

public class SearchFilterConnection
extends Object
implements ISearchFilter, ISearchFilterURI

The Class SearchFilterConnection.

See Also:
Serialized Form

Nested Class Summary
static class SearchFilterConnection.OptionConnect
          The Enum OptionConnect.
 
Constructor Summary
SearchFilterConnection()
          Instantiates a new search filter connection.
 
Method Summary
 boolean equals(Object obj)
           
 String getDefaultSearchUri()
          Gets the default search uri.
 SearchParameterMap getParams()
          Object serialized in map
 URI getSearchURI()
          Connection to search.
 String getSelectedConnectionOption()
          Gets the selected connection option.
 String getSelectedUri()
          Gets the selected uri.
 boolean isEquals(Object obj)
          Checks if object in argument is equal to this
 void reset()
          Resets this Object.
 void setParams(SearchParameterMap parameterMap)
          Hydrate object from map
 void setSelectedConnectionOption(String selectedConnectionOption)
          Sets the selected connection option.
 void setSelectedUri(String uri)
          Sets the selected uri.
 String toString()
          String representation of class
 void validate()
          Checks if object has valid data.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchFilterConnection

public SearchFilterConnection()
Instantiates a new search filter connection.

Method Detail

getSelectedUri

public String getSelectedUri()
Gets the selected uri.

Returns:
the selected uri

setSelectedUri

public void setSelectedUri(String uri)
Sets the selected uri.

Parameters:
uri - the new selected uri

getDefaultSearchUri

public String getDefaultSearchUri()
Gets the default search uri.

Returns:
the default search uri

getSelectedConnectionOption

public String getSelectedConnectionOption()
Gets the selected connection option.

Returns:
the selected connection option (never null)

setSelectedConnectionOption

public void setSelectedConnectionOption(String selectedConnectionOption)
Sets the selected connection option.

Parameters:
selectedConnectionOption - the new selected connection option

reset

public void reset()
Resets this Object.

Specified by:
reset in interface ISearchFilter

getParams

public SearchParameterMap getParams()
Object serialized in map

Specified by:
getParams in interface ISearchFilter
Returns:
Map of parameters

setParams

public void setParams(SearchParameterMap parameterMap)
Hydrate object from map

Specified by:
setParams in interface ISearchFilter
Parameters:
parameterMap -

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 - Exception thrown when none valid data found

getSearchURI

public URI getSearchURI()
                 throws URISyntaxException
Connection to search.

Specified by:
getSearchURI in interface ISearchFilterURI
Returns:
URI that will be used for search
Throws:
URISyntaxException

toString

public String toString()
String representation of class

Overrides:
toString in class Object
Returns:
string representation

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
Parameters:
obj - Object to compare with this
Returns:
true if obj values is same as this values

isEquals

public boolean isEquals(Object obj)
Checks if object in argument is equal to this

Specified by:
isEquals in interface ISearchFilter
Parameters:
obj -
Returns:
true if equal, false otherwise

Esri Geoportal Server
1.0

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