org.openscience.nmrshiftdb.modules.actions.portlets
Class WishlistPortletAction

java.lang.Object
  extended by org.apache.turbine.modules.Assembler
      extended by org.apache.turbine.modules.Action
          extended by org.apache.turbine.modules.ActionEvent
              extended by org.apache.jetspeed.modules.actions.portlets.PortletActionEvent
                  extended by org.apache.jetspeed.modules.actions.portlets.PortletAction
                      extended by org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
                          extended by org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction
                              extended by 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
 
Constructor Summary
WishlistPortletAction()
           
 
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
 

Field Detail

CELLS_KEY

public static final java.lang.String CELLS_KEY
a key for the context.

See Also:
Constant Field Values
Constructor Detail

WishlistPortletAction

public WishlistPortletAction()
Method Detail

doMain

public void doMain(org.apache.turbine.util.RunData data,
                   org.apache.velocity.context.Context context)
sets main page

Parameters:
data - Description of Parameter
context - 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 Parameter
context - 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 Parameter
context - Description of Parameter
molecule - 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 Parameter
context - 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 Parameter
context - Description of Parameter
data - 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 Parameter
data - Description of Parameter