|
|||||||||
| 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
public abstract class WebLabPortlet
The Class WebLabPortlet.
| Field Summary | |
|---|---|
static java.lang.String |
PORTLET_ACTION_NAMESPACE
The Constant PORTLET_ACTION_NAMESPACE. |
static java.lang.String |
PORTLET_REACTION_NAMESPACE
The Constant PORTLET_REACTION_NAMESPACE. |
static java.lang.String |
PORTLET_REDIRECT_NAMESPACE
The Constant PORTLET_REDIRECT_NAMESPACE. |
| Constructor Summary | |
|---|---|
WebLabPortlet()
|
|
| Method Summary | |
|---|---|
void |
addRedirection(javax.xml.namespace.QName qn,
java.lang.String url)
Adds the redirection url to a specified action name. |
void |
deleteRedirection(javax.xml.namespace.QName qn)
Delete redirection. |
java.util.Map<javax.xml.namespace.QName,javax.xml.namespace.QName> |
getActionEventMap()
Gets the action event map. |
java.io.File |
getFile(java.lang.String localPath)
Gets an accessible file from the Portlet context. |
javax.xml.namespace.QName |
getReaction(javax.xml.namespace.QName specifiedQName)
Gets the reaction associated to the QName of the event received (from file portlet.xml in your project). |
java.util.Map<javax.xml.namespace.QName,javax.xml.namespace.QName> |
getReactionEventMap()
Gets the reaction event map. |
java.util.Map<javax.xml.namespace.QName,java.lang.String> |
getRedirectEventMap()
Gets the redirect event map. |
java.net.URL |
getURL(java.lang.String localPath)
Gets the uRL. |
void |
init()
|
void |
modifyRedirection(javax.xml.namespace.QName qn,
java.lang.String url)
Modify redirection. |
void |
sendEventForAction(java.lang.String action,
org.ow2.weblab.core.model.Resource resource,
javax.portlet.ActionResponse actionResponse)
Send event for action. |
void |
sendEventForAction(java.lang.String action,
org.ow2.weblab.core.model.Resource resource,
javax.portlet.EventResponse eventResponse)
Send event for action. |
void |
sendEventForActionAndRedirect(java.lang.String action,
org.ow2.weblab.core.model.Resource resource,
javax.portlet.ActionResponse actionResponse)
Send event for action. |
| Methods inherited from class javax.portlet.GenericPortlet |
|---|
destroy, doDispatch, doEdit, doHeaders, doHelp, doView, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processAction, processEvent, render, serveResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PORTLET_ACTION_NAMESPACE
public static final java.lang.String PORTLET_REACTION_NAMESPACE
public static final java.lang.String PORTLET_REDIRECT_NAMESPACE
| Constructor Detail |
|---|
public WebLabPortlet()
| Method Detail |
|---|
public void init()
throws javax.portlet.PortletException
init in class javax.portlet.GenericPortletjavax.portlet.PortletExceptionpublic java.util.Map<javax.xml.namespace.QName,javax.xml.namespace.QName> getReactionEventMap()
public java.util.Map<javax.xml.namespace.QName,javax.xml.namespace.QName> getActionEventMap()
public java.util.Map<javax.xml.namespace.QName,java.lang.String> getRedirectEventMap()
public javax.xml.namespace.QName getReaction(javax.xml.namespace.QName specifiedQName)
specifiedQName - the specified q name
public void sendEventForAction(java.lang.String action,
org.ow2.weblab.core.model.Resource resource,
javax.portlet.ActionResponse actionResponse)
action - the action associated to a QName in the portlet.xml fileresource - the resource to send in the eventactionResponse - the response of the processAction
java.io.IOException - Signals that an I/O exception has occurred.
public void sendEventForAction(java.lang.String action,
org.ow2.weblab.core.model.Resource resource,
javax.portlet.EventResponse eventResponse)
action - the action associated to a QName in the portlet.xml fileresource - the resource to send in the eventeventResponse - the response of the processEvent
java.io.IOException - Signals that an I/O exception has occurred.
public void sendEventForActionAndRedirect(java.lang.String action,
org.ow2.weblab.core.model.Resource resource,
javax.portlet.ActionResponse actionResponse)
throws java.io.IOException
action - the action associated to a QName in the portlet.xml fileresource - the resource to send in the eventactionResponse - the response of the processAction
WARNING : the method used for auto redirection is
sendRedirect, then it is not allow to setRenderParameter for
instance. For more information look for Exceptions that
sendRedirect can launch.
java.io.IOException - Signals that an I/O exception has occurred.
public void addRedirection(javax.xml.namespace.QName qn,
java.lang.String url)
qn - the qn (PORTLET_REDIRECT_NAMESPACE+action)url - the url (url of the page in the portal)
public void modifyRedirection(javax.xml.namespace.QName qn,
java.lang.String url)
qn - the qn (PORTLET_REDIRECT_NAMESPACE+action)url - the url (url of the page in the portal)public void deleteRedirection(javax.xml.namespace.QName qn)
qn - the qn
public java.io.File getFile(java.lang.String localPath)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
localPath - the local path
org.ow2.weblab.core.extended.exception.WebLabCheckedException - the web lab checked exception
public java.net.URL getURL(java.lang.String localPath)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
localPath - the local path
org.ow2.weblab.core.extended.exception.WebLabCheckedException - the web lab checked exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||