org.openscience.nmrshiftdb.modules.actions.portlets
Class WishlistPortletAction
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
org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction
org.openscience.nmrshiftdb.modules.actions.portlets.WishlistPortletAction
public class WishlistPortletAction
- extends org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction
Handles actions for the wishlist portlet.
- Author:
- shk3
Field Summary |
static java.lang.String |
CELLS_KEY
a key for the context. |
Fields inherited from class org.apache.jetspeed.modules.actions.portlets.GenericMVCAction |
logger |
Fields inherited from class org.apache.turbine.modules.ActionEvent |
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX |
Method Summary |
protected void |
buildNormalContext(org.apache.jetspeed.portal.portlets.VelocityPortlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData data)
Default behavior for the portlet action. |
protected void |
buildWishlistContext(org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData data)
Default behavior for the portlet action. |
void |
doEntry(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
puts an entry into wishlist. |
void |
doMain(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
sets main page |
void |
doUpload(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
Handles an mdl upload action. |
void |
handleEntry(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context,
java.lang.String molecule)
puts an entry into wishlist. |
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction |
buildConfigureContext, buildConfigureContext, buildMaximizedContext, buildMaximizedContext, buildNormalContext |
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.GenericMVCAction |
checkAdministrativeAction, doPerform, getAttribute, getAttribute, getPortletInstance, perform, setAttribute |
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.PortletAction |
doPerform, getContext, getPortlet, getTemplate, resetTemplate, setTemplate, setTemplate |
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.PortletActionEvent |
executeEvents, fireEvent |
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 |
CELLS_KEY
public static final java.lang.String CELLS_KEY
- a key for the context.
- See Also:
- Constant Field Values
WishlistPortletAction
public WishlistPortletAction()
doMain
public void doMain(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
- sets main page
- Parameters:
data
- Description of Parametercontext
- Description of Parameter
doEntry
public void doEntry(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
throws java.lang.Exception
- puts an entry into wishlist.
- Parameters:
data
- Description of Parametercontext
- Description of Parameter
- Throws:
java.lang.Exception
- Description of Exception
handleEntry
public void handleEntry(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context,
java.lang.String molecule)
throws java.lang.Exception
- puts an entry into wishlist.
- Parameters:
data
- Description of Parametercontext
- Description of Parametermolecule
- The structure to save in mol format.
- Throws:
java.lang.Exception
- Description of Exception
doUpload
public void doUpload(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
throws java.lang.Exception
- Handles an mdl upload action.
- Parameters:
data
- Description of Parametercontext
- Description of Parameter
- Throws:
java.lang.Exception
- Description of Exception
buildNormalContext
protected void buildNormalContext(org.apache.jetspeed.portal.portlets.VelocityPortlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData data)
- Default behavior for the portlet action.
- Specified by:
buildNormalContext
in class org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction
- Parameters:
portlet
- Description of Parametercontext
- Description of Parameterdata
- Description of Parameter
buildWishlistContext
protected void buildWishlistContext(org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData data)
- Default behavior for the portlet action.
- Parameters:
context
- Description of Parameterdata
- Description of Parameter