com.gisgraphy.webapp.action
Class FulltextSearchAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by com.gisgraphy.webapp.action.SearchAction
          extended by com.gisgraphy.webapp.action.FulltextSearchAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable

public class FulltextSearchAction
extends SearchAction

fulltext search Action

Author:
David Masclet
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.gisgraphy.webapp.action.SearchAction
DEFAULT_NUMBER_OF_RESULTS_PER_PAGE, errorMessage, POPUP_VIEW
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
FulltextSearchAction()
           
 
Method Summary
 java.util.List<Country> getCountries()
           
 java.lang.String getCountry()
           
 Output.OutputFormat[] getFormats()
           
 java.lang.String getLang()
           
 java.util.List<java.lang.String> getLanguages()
           
 java.lang.String getPlacetype()
           
 java.lang.String getQ()
           
 FulltextResultsDto getResponseDTO()
           
 java.lang.String getStyle()
           
 Output.OutputStyle[] getVerbosityModes()
           
 boolean isDisplayResults()
           
 boolean isSpellchecking()
           
 java.lang.String search()
          Execute a fulltextSearch from the request parameters
 java.lang.String searchpopup()
          Execute a fulltextSearch from the request parameters
 void setAlternateNameDao(IAlternateNameDao alternateNameDao)
           
 void setCountry(java.lang.String country)
           
 void setCountryDao(CountryDao countryDao)
           
 void setFullTextSearchEngine(IFullTextSearchEngine fullTextSearchEngine)
           
 void setLang(java.lang.String lang)
           
 void setPlacetype(java.lang.String placetype)
           
 void setQ(java.lang.String q)
           
 void setSpellchecking(boolean spellchecking)
           
 void setStyle(java.lang.String style)
           
 
Methods inherited from class com.gisgraphy.webapp.action.SearchAction
getDefaultNumberOfResultsPerPage, getErrorMessage, getFormat, getFrom, getPlacetypes, getTo, isAdvancedSearch, isIndent, setAdvancedSearch, setFormat, setFrom, setIndent, setTo
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FulltextSearchAction

public FulltextSearchAction()
Method Detail

isDisplayResults

public boolean isDisplayResults()
Returns:
Wether the search has been done and the results should be displayed

search

public java.lang.String search()
                        throws java.lang.Exception
Execute a fulltextSearch from the request parameters

Returns:
SUCCESS if the search is successfull
Throws:
java.lang.Exception - in case of errors

searchpopup

public java.lang.String searchpopup()
                             throws java.lang.Exception
Execute a fulltextSearch from the request parameters

Returns:
POPUPVIEW if the search is successfull The view will not be decorated by sitemesh (see decorators.xml)
Throws:
java.lang.Exception - in case of errors

getLanguages

public java.util.List<java.lang.String> getLanguages()
Returns:
the languages

getCountries

public java.util.List<Country> getCountries()
Returns:
the available countries

getVerbosityModes

public Output.OutputStyle[] getVerbosityModes()
Returns:
the available

getFormats

public Output.OutputFormat[] getFormats()
Returns:
the available formats for fulltext search

setFullTextSearchEngine

public void setFullTextSearchEngine(IFullTextSearchEngine fullTextSearchEngine)
Parameters:
fullTextSearchEngine - the fullTextSearchEngine to set

setCountry

public void setCountry(java.lang.String country)
Parameters:
country - the country parameter to set

setLang

public void setLang(java.lang.String lang)
Parameters:
lang - the lang parameter to set

setStyle

public void setStyle(java.lang.String style)
Parameters:
style - the style parameter to set

setQ

public void setQ(java.lang.String q)
Parameters:
q - The q parameter to set

getCountry

public java.lang.String getCountry()
Returns:
the country

getLang

public java.lang.String getLang()
Returns:
the lang

getStyle

public java.lang.String getStyle()
Returns:
the style

getQ

public java.lang.String getQ()
Returns:
the q

setPlacetype

public void setPlacetype(java.lang.String placetype)
Parameters:
placetype - the placetype to set

getPlacetype

public java.lang.String getPlacetype()
Returns:
the placetype

setCountryDao

public void setCountryDao(CountryDao countryDao)
Parameters:
countryDao - the countryDao to set

setAlternateNameDao

public void setAlternateNameDao(IAlternateNameDao alternateNameDao)
Parameters:
alternateNameDao - the alternateNameDao to set

getResponseDTO

public FulltextResultsDto getResponseDTO()
Returns:
the response

isSpellchecking

public boolean isSpellchecking()
Returns:
the spellchecking

setSpellchecking

public void setSpellchecking(boolean spellchecking)
Parameters:
spellchecking - the spellchecking to set


Copyright © 2010. All Rights Reserved.