org.ow2.weblab.portlet
Class SearchPortlet
java.lang.Object
javax.portlet.GenericPortlet
org.ow2.weblab.portlet.WebLabPortlet
org.ow2.weblab.portlet.SearchPortlet
- All Implemented Interfaces:
- javax.portlet.EventPortlet, javax.portlet.Portlet, javax.portlet.PortletConfig, javax.portlet.ResourceServingPortlet
public class SearchPortlet
- extends org.ow2.weblab.portlet.WebLabPortlet
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.
- Author:
- emilien, gdupont
| Fields inherited from class org.ow2.weblab.portlet.WebLabPortlet |
PORTLET_ACTION_NAMESPACE, PORTLET_REACTION_NAMESPACE, PORTLET_REDIRECT_NAMESPACE |
|
Method Summary |
void |
changeService(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
|
protected org.ow2.weblab.core.model.ComposedQuery |
createAdvQuery(javax.portlet.ActionRequest req)
|
protected org.ow2.weblab.core.services.searcher.SearchArgs |
createSearchArgs(org.ow2.weblab.core.model.Query q)
|
void |
destroy()
|
void |
doAdvSearch(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
|
void |
doEdit(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
|
void |
doSearch(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
|
protected org.ow2.weblab.core.services.searcher.SearchReturn |
doSearch(java.lang.String userURI,
java.lang.String context,
java.lang.String searcherURI,
org.ow2.weblab.core.services.searcher.SearchArgs args)
|
void |
doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
Render HTML corresponding to the view mode |
void |
getAdvSearch(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
|
void |
init(javax.portlet.PortletConfig config)
|
void |
processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
|
void |
processEvent(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
|
| Methods inherited from class org.ow2.weblab.portlet.WebLabPortlet |
addRedirection, deleteRedirection, getActionEventMap, getFile, getReaction, getReactionEventMap, getRedirectEventMap, getURL, init, 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, render, serveResource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
normalView
protected javax.portlet.PortletRequestDispatcher normalView
maximizedView
protected javax.portlet.PortletRequestDispatcher maximizedView
helpView
protected javax.portlet.PortletRequestDispatcher helpView
errorView
protected javax.portlet.PortletRequestDispatcher errorView
parser
protected WebLabQueryParser parser
SearchPortlet
public SearchPortlet()
init
public void init(javax.portlet.PortletConfig config)
throws javax.portlet.PortletException
- Specified by:
init in interface javax.portlet.Portlet- Overrides:
init in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
destroy
public void destroy()
- Specified by:
destroy in interface javax.portlet.Portlet- Overrides:
destroy in class javax.portlet.GenericPortlet
doView
public void doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws java.io.IOException,
javax.portlet.PortletException
- Render HTML corresponding to the view mode
- Overrides:
doView in class javax.portlet.GenericPortlet
- Throws:
java.io.IOException
javax.portlet.PortletException
doEdit
public void doEdit(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws javax.portlet.PortletException,
java.io.IOException
- Overrides:
doEdit in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
java.io.IOException
doSearch
public void doSearch(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws javax.portlet.PortletException,
java.io.IOException
- Throws:
javax.portlet.PortletException
java.io.IOException
doAdvSearch
public void doAdvSearch(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws javax.portlet.PortletException,
java.io.IOException
- Throws:
javax.portlet.PortletException
java.io.IOException
getAdvSearch
public void getAdvSearch(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws javax.portlet.PortletException,
java.io.IOException
- Throws:
javax.portlet.PortletException
java.io.IOException
changeService
public void changeService(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws javax.portlet.PortletException,
java.io.IOException
- Throws:
javax.portlet.PortletException
java.io.IOException
processAction
public void processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws java.io.IOException,
javax.portlet.PortletException
- Specified by:
processAction in interface javax.portlet.Portlet- Overrides:
processAction in class javax.portlet.GenericPortlet
- Throws:
java.io.IOException
javax.portlet.PortletException
processEvent
public void processEvent(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
throws javax.portlet.PortletException,
java.io.IOException
- Specified by:
processEvent in interface javax.portlet.EventPortlet- Overrides:
processEvent in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
java.io.IOException
createAdvQuery
protected org.ow2.weblab.core.model.ComposedQuery createAdvQuery(javax.portlet.ActionRequest req)
createSearchArgs
protected org.ow2.weblab.core.services.searcher.SearchArgs createSearchArgs(org.ow2.weblab.core.model.Query q)
doSearch
protected org.ow2.weblab.core.services.searcher.SearchReturn doSearch(java.lang.String userURI,
java.lang.String context,
java.lang.String searcherURI,
org.ow2.weblab.core.services.searcher.SearchArgs args)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
- Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException
Copyright © 2004-2012. All Rights Reserved.