com.solidstategroup.action
Class SearchAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.solidstategroup.webwork.BaseAction
com.solidstategroup.webwork.PagingAction
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
| 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 |
| 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 |
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
SearchAction
public SearchAction()
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)