|
|||||||||||
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.turbine.util.velocity.VelocityActionEvent org.apache.turbine.modules.actions.VelocityAction org.apache.jetspeed.modules.actions.controllers.VelocityControllerAction
An abstract action class to build VelocityPortlet actions.
Don't call it from the URL, the Portlet and the Action are automatically associated through the registry PortletName
Field Summary |
Fields inherited from class org.apache.turbine.modules.ActionEvent |
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX |
Constructor Summary | |
VelocityControllerAction()
|
Method Summary | |
protected void |
buildCustomizeContext(PortletController controller,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData rundata)
Subclasses must override this method to provide default behavior for the portlet action |
protected abstract void |
buildNormalContext(PortletController controller,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData rundata)
Subclasses must override this method to provide default behavior for the portlet action |
void |
doCancel(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
Switch out of customize mode |
void |
doPerform(org.apache.turbine.util.RunData rundata,
org.apache.velocity.context.Context context)
|
protected org.apache.velocity.context.Context |
getContext(org.apache.turbine.util.RunData data)
Return the Context needed by Velocity. |
protected void |
perform(org.apache.turbine.util.RunData rundata)
This overrides the default Action.perform() to execute the doEvent() method. |
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. |
Methods inherited from class org.apache.turbine.modules.actions.VelocityAction |
doPerform |
Methods inherited from class org.apache.turbine.util.velocity.VelocityActionEvent |
executeEvents |
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 VelocityControllerAction()
Method Detail |
protected void perform(org.apache.turbine.util.RunData rundata) throws java.lang.Exception
Exception,
- a generic exception.
java.lang.Exception
public void setTemplate(org.apache.turbine.util.RunData data, java.lang.String template)
data
- Turbine information.template
- The template that will be executed next.protected org.apache.velocity.context.Context getContext(org.apache.turbine.util.RunData data)
public void doPerform(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
protected void buildCustomizeContext(PortletController controller, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
protected abstract void buildNormalContext(PortletController controller, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
public void doCancel(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |