public class PackageSearchAction extends BaseSearchAction
ALL_CHANNELS, ARCHITECTURE, CHANNEL, CHANNEL_ARCH, CHANNEL_ARCHES, CHANNEL_FILTER, DEFAULT_ARCHES, DISPLAY_KEY, ERRATA_BUG, ERRATA_ENH, ERRATA_SEC, EXCLUDED_ARCHES, FINE_GRAINED, INVERT_RESULTS, LOG, OPT_ADVISORY, OPT_ALL_FIELDS, OPT_CONTENT_ONLY, OPT_CONTENT_TITLE, OPT_CVE, OPT_FREE_FORM, OPT_GROUPS_KEYS, OPT_GROUPS_MAP, OPT_ISSUE_DATE, OPT_NAME_AND_DESC, OPT_NAME_AND_SUMMARY, OPT_NAME_ONLY, OPT_PKG_NAME, OPT_TITLE_ONLY, RELEVANT, SCAN_DATE_SEARCH, SEARCH_OPT, SEARCH_STR, VALUE_KEY, VIEW_MODE, WHERE_ALL, WHERE_CRITERIA, WHERE_SSM, WHERE_TO_SEARCH| Constructor and Description |
|---|
PackageSearchAction() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.struts.action.ActionForward |
doExecute(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.DynaActionForm form)
This is the guts of a search action - do what needs doing,
and return what you think the next page should be
|
protected void |
insureFormDefaults(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.DynaActionForm form)
Make sure we have appropriate defaults no matter how we got here
Set the defaults (where needed) back into the form so that the rest of the action
can find them
|
java.util.List<PackageOverview> |
performSearch(RequestContext ctx,
java.lang.String searchString,
java.lang.String viewmode,
java.lang.Boolean fineGrained,
java.lang.String[] selectedArches,
java.lang.Long filterChannelId,
boolean relevantFlag,
java.lang.String searchCriteria)
Actually do the package-search desired
|
addOption, addOption, execute, executeBodyaddGlobalMessage, addGlobalMessage, addMessage, createErrorMessage, createErrorMessageWithMultipleArgs, createLabelValueList, createMessage, createSuccessMessage, getStrutsDelegate, isSubmitted, l10n, localize, lv, lve, lvel10n, lvl10n, makeParamMap, saveMessagesaddErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveToken, setLocale, setServletprotected org.apache.struts.action.ActionForward doExecute(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.DynaActionForm form)
throws java.net.MalformedURLException,
redstone.xmlrpc.XmlRpcFault,
SearchServerIndexException
BaseSearchActiondoExecute in class BaseSearchActionrequest - incoming HTTP requestmapping - incoming action-mappingform - form associated with this mappingjava.net.MalformedURLException - malformed URL exceptionredstone.xmlrpc.XmlRpcFault - XMLrpc faultSearchServerIndexExceptionpublic java.util.List<PackageOverview> performSearch(RequestContext ctx, java.lang.String searchString, java.lang.String viewmode, java.lang.Boolean fineGrained, java.lang.String[] selectedArches, java.lang.Long filterChannelId, boolean relevantFlag, java.lang.String searchCriteria) throws redstone.xmlrpc.XmlRpcFault, java.net.MalformedURLException
ctx - incoming request contextsearchString - string we're going to search onviewmode - what kind-of search are we doing?fineGrained - exact or fuzzy?selectedArches - do we care about specific arches?filterChannelId - do we care about a specific channel?relevantFlag - do we only care about 'relevant to registered profiles"?searchCriteria - the type of search we are doingredstone.xmlrpc.XmlRpcFault - bad communication with search serverjava.net.MalformedURLException - possibly bad configuration for search server addressprotected void insureFormDefaults(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.DynaActionForm form)
insureFormDefaults in class BaseSearchActionform - where we expect values to end uprequest - incoming HTTP request