org.ow2.weblab.portlet
Class FacetPortlet
java.lang.Object
javax.portlet.GenericPortlet
org.ow2.weblab.portlet.WebLabPortlet
org.ow2.weblab.portlet.FacetPortlet
- All Implemented Interfaces:
- javax.portlet.EventPortlet, javax.portlet.Portlet, javax.portlet.PortletConfig, javax.portlet.ResourceServingPortlet
public class FacetPortlet
- extends WebLabPortlet
|
Method Summary |
protected void |
doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
|
protected
<T extends org.ow2.weblab.core.model.Resource>
java.util.Set<T> |
|
filterResources(org.ow2.weblab.core.model.Resource receveidResultSet,
java.util.Set<java.lang.String> acceptedURIs,
java.lang.Class<T> resClass)
|
FacetConfig |
getPortletConf()
|
void |
init(javax.portlet.PortletConfig config)
|
protected org.ow2.weblab.core.model.Query |
prepareQuery(org.ow2.weblab.core.model.Query q)
|
void |
processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
|
void |
processEvent(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
handle the incoming event |
protected FacetBundle |
processResultSet(org.ow2.weblab.core.model.ResultSet receveidResultSet)
Processing a ResultSet to extract the facet and related information and
produce a valid FacetBundle. |
void |
setPortletConf(FacetConfig portletConf)
|
| 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 |
destroy, doDispatch, doEdit, 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 |
TO_BE_RANKED_BY
public static final java.lang.String TO_BE_RANKED_BY
- See Also:
- Constant Field Values
TO_BE_RANKED_ASCENDING
public static final java.lang.String TO_BE_RANKED_ASCENDING
- See Also:
- Constant Field Values
HAS_SCOPE
public static final java.lang.String HAS_SCOPE
- See Also:
- Constant Field Values
IS_RANKED_ASCENDING
public static final java.lang.String IS_RANKED_ASCENDING
- See Also:
- Constant Field Values
FACET_SUGGESTION
public static final java.lang.String FACET_SUGGESTION
- See Also:
- Constant Field Values
normalView
protected javax.portlet.PortletRequestDispatcher normalView
noDataView
protected javax.portlet.PortletRequestDispatcher noDataView
errorView
protected javax.portlet.PortletRequestDispatcher errorView
FacetPortlet
public FacetPortlet()
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
doView
protected void doView(javax.portlet.RenderRequest req,
javax.portlet.RenderResponse res)
throws javax.portlet.PortletException,
java.io.IOException
- Overrides:
doView in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
java.io.IOException
processEvent
public void processEvent(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
throws javax.portlet.PortletException,
java.io.IOException
- handle the incoming event
- Specified by:
processEvent in interface javax.portlet.EventPortlet- Overrides:
processEvent in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
java.io.IOException
processAction
public void processAction(javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws javax.portlet.PortletException,
java.io.IOException
- Specified by:
processAction in interface javax.portlet.Portlet- Overrides:
processAction in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
java.io.IOException
prepareQuery
protected org.ow2.weblab.core.model.Query prepareQuery(org.ow2.weblab.core.model.Query q)
processResultSet
protected FacetBundle processResultSet(org.ow2.weblab.core.model.ResultSet receveidResultSet)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
- Processing a ResultSet to extract the facet and related information and
produce a valid FacetBundle.
- Parameters:
receveidResultSet -
- Returns:
-
- Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException
filterResources
protected <T extends org.ow2.weblab.core.model.Resource> java.util.Set<T> filterResources(org.ow2.weblab.core.model.Resource receveidResultSet,
java.util.Set<java.lang.String> acceptedURIs,
java.lang.Class<T> resClass)
getPortletConf
public FacetConfig getPortletConf()
setPortletConf
public void setPortletConf(FacetConfig portletConf)
Copyright © 2004-2012. All Rights Reserved.