com.solidstategroup.action
Class SearchAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.solidstategroup.webwork.BaseAction
          extended by com.solidstategroup.webwork.PagingAction
              extended by com.solidstategroup.action.SearchAction
All Implemented Interfaces:
com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable

public class SearchAction
extends com.solidstategroup.webwork.PagingAction

SearchAction

See Also:
Serialized Form

Field Summary
protected  boolean cancelStoreConfigInSession
           
protected  boolean next
           
static java.lang.String SEARCH_CONFIG_IN_SESSION
           
static java.lang.String SEARCH_PAGE_NUMBER
           
static java.lang.String SEARCH_RESULTS_IN_SESSION
           
static java.lang.String SEARCH_RESULTS_PER_PAGE
           
static java.lang.String SEARCH_RESULTS_TOTAL_IN_SESSION
           
protected  SearchConfig searchConfig
           
protected  SearchResult searchResult
           
protected  java.lang.String typeId
           
 
Fields inherited from class com.solidstategroup.webwork.PagingAction
pageNumber, results, resultsPerPage, resultsTotal
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
SearchAction()
           
 
Method Summary
 java.lang.String backToSearch()
           
 void customSearch()
           
 SearchConfig getSearchConfig()
           
 SearchResult getSearchResult()
           
 java.lang.String getTypeId()
           
 boolean hasNeighbourResult(int type, int id, boolean next)
           
 boolean isCancelStoreConfigInSession()
           
 boolean isNext()
           
 java.lang.String jumpToPage()
           
 java.lang.String nextPage()
           
 java.lang.String prevPage()
           
 java.lang.String reindex()
           
protected  void runSearch()
           
 java.lang.String search()
           
 java.lang.String searchBackend()
          Runs the search over the backend stuff.
 void setCancelStoreConfigInSession(boolean cancelStoreConfigInSession)
           
 void setNext(boolean next)
           
 void setSearchConfig(SearchConfig searchConfig)
           
 void setSearchResult(SearchResult searchResult)
           
 void setTypeId(java.lang.String typeId)
           
 java.lang.String specificResult()
          this will return the next or prev search result to the id passed in
 
Methods inherited from class com.solidstategroup.webwork.PagingAction
copyToResults, getIndexStart, getNumberOfPages, getPageNumber, getPages, getResults, getResultsPerPage, getResultsTotal, getShowingEnd, getShowingStart, isNextPage, isPrevPage, setPageNumber, setResults, setResultsPerPage, setResultsTotal
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clone, doDefault, doInput, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEARCH_RESULTS_IN_SESSION

public static final java.lang.String SEARCH_RESULTS_IN_SESSION
See Also:
Constant Field Values

SEARCH_RESULTS_TOTAL_IN_SESSION

public static final java.lang.String SEARCH_RESULTS_TOTAL_IN_SESSION
See Also:
Constant Field Values

SEARCH_CONFIG_IN_SESSION

public static final java.lang.String SEARCH_CONFIG_IN_SESSION
See Also:
Constant Field Values

SEARCH_PAGE_NUMBER

public static final java.lang.String SEARCH_PAGE_NUMBER
See Also:
Constant Field Values

SEARCH_RESULTS_PER_PAGE

public static final java.lang.String SEARCH_RESULTS_PER_PAGE
See Also:
Constant Field Values

searchConfig

protected SearchConfig searchConfig

searchResult

protected SearchResult searchResult

typeId

protected java.lang.String typeId

next

protected boolean next

cancelStoreConfigInSession

protected boolean cancelStoreConfigInSession
Constructor Detail

SearchAction

public SearchAction()
Method Detail

customSearch

public void customSearch()

search

public java.lang.String search()

runSearch

protected void runSearch()

backToSearch

public java.lang.String backToSearch()

jumpToPage

public java.lang.String jumpToPage()

nextPage

public java.lang.String nextPage()

prevPage

public java.lang.String prevPage()

specificResult

public java.lang.String specificResult()
this will return the next or prev search result to the id passed in


hasNeighbourResult

public boolean hasNeighbourResult(int type,
                                  int id,
                                  boolean next)

searchBackend

public java.lang.String searchBackend()
Runs the search over the backend stuff. means that ALL content is included - more of a find than a search


reindex

public java.lang.String reindex()

getSearchConfig

public SearchConfig getSearchConfig()

setSearchConfig

public void setSearchConfig(SearchConfig searchConfig)

getSearchResult

public SearchResult getSearchResult()

setSearchResult

public void setSearchResult(SearchResult searchResult)

getTypeId

public java.lang.String getTypeId()

setTypeId

public void setTypeId(java.lang.String typeId)

isNext

public boolean isNext()

setNext

public void setNext(boolean next)

isCancelStoreConfigInSession

public boolean isCancelStoreConfigInSession()

setCancelStoreConfigInSession

public void setCancelStoreConfigInSession(boolean cancelStoreConfigInSession)