|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.portlet.GenericPortlet
org.ow2.weblab.portlet.WebLabPortlet
org.ow2.weblab.portlet.AdvancedSearchPortlet
public class AdvancedSearchPortlet
Portlet used to generate text requests. When request is submitted, a RequestEvent (request and service definition) is sent. Portlet allow modification by user of the searcher service URL to call.
| Field Summary | |
|---|---|
protected static AdvancedSearchConfigBean |
advanced_search_conf
|
protected static java.lang.String |
DEFAULT_SYNTAX_NAME
|
static java.lang.String |
DISPLAY_CHECKING_POPUP
|
protected static int |
distinct_submit_query
|
static java.lang.String |
ENABLE_ADVANCED_SEARCH
|
static java.lang.String |
ENABLE_GENERATE
|
static java.lang.String |
ENABLE_SAVE
|
static java.lang.String |
ESB_CONFIG_NAME
|
static java.lang.String |
LAST_SEARCH_SERVICE
|
static java.lang.String |
LAST_TEXT_KEYWORDS_INPUT
|
static java.lang.String |
NATIVE_SYNTAX
|
static java.lang.String |
NATIVE_SYNTAX_DISPLAYED
|
static java.lang.String |
QUERY_INPUT
|
static java.lang.String |
SEARCH_ERROR
|
static java.lang.String |
SEARCH_SERVICE
|
static java.lang.String |
SEARCH_SERVICES_MAP
|
protected static java.net.URL |
SEARCHER_WSDL_LOCATION
|
protected static java.util.Map<java.lang.String,org.ow2.weblab.core.services.Searcher> |
searchers
|
static java.lang.String |
SUBMIT_INPUT
|
static java.lang.String |
TEXT_KEYWORDS_INPUT
|
protected static java.util.Map<java.lang.String,org.ow2.weblab.core.services.Analyser> |
translators
|
protected static java.util.Map<java.lang.String,java.lang.String> |
usageContexts
|
protected static boolean |
USE_REDIRECTION
|
static java.lang.String |
USER_ESB_CONF
|
static java.lang.String |
USER_LAST_SEARCH
|
| Fields inherited from class org.ow2.weblab.portlet.WebLabPortlet |
|---|
PORTLET_ACTION_NAMESPACE, PORTLET_REACTION_NAMESPACE, PORTLET_REDIRECT_NAMESPACE |
| Constructor Summary | |
|---|---|
AdvancedSearchPortlet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
void |
doEdit(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
|
protected void |
doSave(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
org.ow2.weblab.core.model.StringQuery q)
Send the received query in a "saveQuery" event. |
protected void |
doSearch(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
org.ow2.weblab.core.model.StringQuery q)
Sending query to search engine |
void |
doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
Render HTML corresponding to the view mode |
protected static java.lang.String |
generateQuery(java.lang.String textQuery,
java.util.List<AdvancedSearchFieldBean> advancedSearchFieldList)
To generate the query from a search field list |
protected static java.util.List<AdvancedSearchFieldBean> |
getFieldListFromParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
to get the search fields |
void |
init()
|
protected org.ow2.weblab.core.services.searcher.SearchReturn |
launchQuery(javax.portlet.PortletRequest req,
javax.portlet.PortletResponse res,
org.ow2.weblab.core.services.searcher.SearchArgs args)
Launch the query to the selected Searcher |
void |
processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
|
void |
processEvent(javax.portlet.EventRequest request,
javax.portlet.EventResponse response)
|
void |
serveResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
|
| Methods inherited from class org.ow2.weblab.portlet.WebLabPortlet |
|---|
addRedirection, deleteRedirection, getActionEventMap, getFile, getReaction, getReactionEventMap, getRedirectEventMap, getURL, modifyRedirection, sendEventForAction, sendEventForAction, sendEventForActionAndRedirect |
| Methods inherited from class javax.portlet.GenericPortlet |
|---|
doDispatch, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, render |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String DEFAULT_SYNTAX_NAME
public static java.lang.String ENABLE_ADVANCED_SEARCH
public static java.lang.String ENABLE_SAVE
public static java.lang.String ENABLE_GENERATE
public static java.lang.String TEXT_KEYWORDS_INPUT
public static java.lang.String LAST_TEXT_KEYWORDS_INPUT
public static java.lang.String QUERY_INPUT
public static java.lang.String SUBMIT_INPUT
public static java.lang.String USER_LAST_SEARCH
public static java.lang.String USER_ESB_CONF
public static java.lang.String SEARCH_ERROR
public static java.lang.String ESB_CONFIG_NAME
public static java.lang.String SEARCH_SERVICES_MAP
public static java.lang.String DISPLAY_CHECKING_POPUP
public static java.lang.String SEARCH_SERVICE
public static java.lang.String LAST_SEARCH_SERVICE
public static java.lang.String NATIVE_SYNTAX
public static java.lang.String NATIVE_SYNTAX_DISPLAYED
protected static AdvancedSearchConfigBean advanced_search_conf
protected static java.net.URL SEARCHER_WSDL_LOCATION
protected static java.util.Map<java.lang.String,org.ow2.weblab.core.services.Searcher> searchers
protected static java.util.Map<java.lang.String,org.ow2.weblab.core.services.Analyser> translators
protected static java.util.Map<java.lang.String,java.lang.String> usageContexts
protected static int distinct_submit_query
protected static boolean USE_REDIRECTION
| Constructor Detail |
|---|
public AdvancedSearchPortlet()
| Method Detail |
|---|
public void init()
throws javax.portlet.PortletException
init in class org.ow2.weblab.portlet.WebLabPortletjavax.portlet.PortletExceptionpublic void destroy()
destroy in interface javax.portlet.Portletdestroy in class javax.portlet.GenericPortlet
public void doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws java.io.IOException,
javax.portlet.PortletException
doView in class javax.portlet.GenericPortletjava.io.IOException
javax.portlet.PortletException
public void doEdit(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws javax.portlet.PortletException,
java.io.IOException
doEdit in class javax.portlet.GenericPortletjavax.portlet.PortletException
java.io.IOException
public void processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws java.io.IOException,
javax.portlet.PortletException
processAction in interface javax.portlet.PortletprocessAction in class javax.portlet.GenericPortletjava.io.IOException
javax.portlet.PortletException
public void serveResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
throws javax.portlet.PortletException,
java.io.IOException
serveResource in interface javax.portlet.ResourceServingPortletserveResource in class javax.portlet.GenericPortletjavax.portlet.PortletException
java.io.IOException
public void processEvent(javax.portlet.EventRequest request,
javax.portlet.EventResponse response)
throws javax.portlet.PortletException,
java.io.IOException
processEvent in interface javax.portlet.EventPortletprocessEvent in class javax.portlet.GenericPortletjavax.portlet.PortletException
java.io.IOException
protected void doSave(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
org.ow2.weblab.core.model.StringQuery q)
req - res - q -
protected void doSearch(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res,
org.ow2.weblab.core.model.StringQuery q)
req - res - q -
protected org.ow2.weblab.core.services.searcher.SearchReturn launchQuery(javax.portlet.PortletRequest req,
javax.portlet.PortletResponse res,
org.ow2.weblab.core.services.searcher.SearchArgs args)
throws javax.portlet.PortletException
req - res - q -
javax.portlet.PortletExceptionprotected static java.util.List<AdvancedSearchFieldBean> getFieldListFromParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
protected static java.lang.String generateQuery(java.lang.String textQuery,
java.util.List<AdvancedSearchFieldBean> advancedSearchFieldList)
textQuery - advancedSearchFieldList -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||