|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.modules.Assembler org.apache.turbine.modules.Action org.apache.turbine.modules.ActionEvent org.apache.jetspeed.modules.actions.portlets.PortletActionEvent org.apache.jetspeed.modules.actions.portlets.PortletAction
Abstract holder for the portlet specific methods required above and beyond the standard turbine action. Extends the PortletActionEvent, which encapsulates the event handling feature.
Field Summary |
Fields inherited from class org.apache.turbine.modules.ActionEvent |
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX |
Constructor Summary | |
PortletAction()
Creates a new instance of PortletAction |
Method Summary | |
protected abstract void |
buildConfigureContext(Portlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData data)
|
protected abstract void |
buildMaximizedContext(Portlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData data)
|
protected abstract void |
buildNormalContext(Portlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData data)
|
void |
doPerform(org.apache.turbine.util.RunData data)
You need to implement this in your classes that extend this class. |
abstract void |
doPerform(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
You SHOULD override this method and implement it in your action. |
protected org.apache.velocity.context.Context |
getContext(org.apache.turbine.util.RunData data)
Return the Context |
Portlet |
getPortlet(org.apache.velocity.context.Context context)
|
java.lang.String |
getTemplate(org.apache.velocity.context.Context context)
Retrieves the template for this PortletAction's Portlet. |
protected void |
resetTemplate(org.apache.turbine.util.RunData data)
Clears the PortletSessionState of the template
attribute. |
void |
setTemplate(org.apache.turbine.util.RunData data,
java.lang.String template)
This method is used when you want to short circuit an Action and change the template that will be executed next. |
void |
setTemplate(org.apache.turbine.util.RunData data,
java.lang.String template,
boolean persistent)
This method is used when you want to short circuit an Action and change the template that will be executed next. |
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.PortletActionEvent |
executeEvents, fireEvent, perform |
Methods inherited from class org.apache.turbine.modules.ActionEvent |
executeEvents, formatString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PortletAction()
Method Detail |
public void doPerform(org.apache.turbine.util.RunData data) throws java.lang.Exception
PortletActionEvent
doPerform
in class PortletActionEvent
data
- A Turbine RunData object.
java.lang.Exception
public abstract void doPerform(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context) throws java.lang.Exception
data
- Turbine information.context
- Context for web pages.
Exception,
- a generic exception.
java.lang.Exception
protected org.apache.velocity.context.Context getContext(org.apache.turbine.util.RunData data)
public void setTemplate(org.apache.turbine.util.RunData data, java.lang.String template)
data
- Turbine information.template
- The template that will be executed next.public void setTemplate(org.apache.turbine.util.RunData data, java.lang.String template, boolean persistent)
persistent
attribute is set to true
the template value is stored in the portlet's session state
and will be used until a new value has been set, either within
portlet session or within the context. Regardless of the
value of persistent
, the context will ALWAYS
have the correct "template" attribute set within.
data
- Turbine information.template
- The template that will be executed next.persistent
- whether or not to make the template set
persistent for the extent of the portlet sessionprotected void resetTemplate(org.apache.turbine.util.RunData data)
template
attribute.
public Portlet getPortlet(org.apache.velocity.context.Context context)
public java.lang.String getTemplate(org.apache.velocity.context.Context context)
init()
will have already initialized
the template value within the current context in this order:setTemplate()
methods.
protected abstract void buildConfigureContext(Portlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData data) throws java.lang.Exception
java.lang.Exception
protected abstract void buildMaximizedContext(Portlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData data) throws java.lang.Exception
java.lang.Exception
protected abstract void buildNormalContext(Portlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData data) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |