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

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.OrderAction

public class OrderAction
extends org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction

Handles actions for the GuestbookPortlet

Author:
shk3

Field Summary
static java.lang.String ROBOT
           
static java.lang.String SELF
           
static char TYPE_SEPARATOR
           
static java.lang.String WORKER
           
 
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
OrderAction()
           
 
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.
private  void buildOrderContext(org.apache.velocity.context.Context context, org.apache.turbine.util.RunData data)
           
 void doChangedates(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doClear(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doDeleteorder(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doEditorder(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doEditsubmitorder(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doFullfill(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doNoassignment(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doRemeasurement(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doSubmitorder(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
          gets the parameters for a new auction and saves it (TO DO: Validation)
 java.util.Vector<java.lang.String> getTypesC()
           
 java.util.Vector<java.lang.String> getTypesH()
           
static void processBrowse(org.apache.velocity.context.Context context, org.apache.turbine.util.RunData data, DBSample toshow)
           
 
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

WORKER

public static java.lang.String WORKER

ROBOT

public static java.lang.String ROBOT

SELF

public static java.lang.String SELF

TYPE_SEPARATOR

public static char TYPE_SEPARATOR
Constructor Detail

OrderAction

public OrderAction()
Method Detail

getTypesH

public java.util.Vector<java.lang.String> getTypesH()

getTypesC

public java.util.Vector<java.lang.String> getTypesC()

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

buildOrderContext

private void buildOrderContext(org.apache.velocity.context.Context context,
                               org.apache.turbine.util.RunData data)
                        throws java.lang.Exception
Throws:
java.lang.Exception

processBrowse

public static void processBrowse(org.apache.velocity.context.Context context,
                                 org.apache.turbine.util.RunData data,
                                 DBSample toshow)
                          throws java.io.FileNotFoundException,
                                 java.io.IOException,
                                 org.apache.torque.TorqueException
Throws:
java.io.FileNotFoundException
java.io.IOException
org.apache.torque.TorqueException

doChangedates

public void doChangedates(org.apache.turbine.util.RunData data,
                          org.apache.velocity.context.Context context)
                   throws java.lang.Exception
Throws:
java.lang.Exception

doSubmitorder

public void doSubmitorder(org.apache.turbine.util.RunData data,
                          org.apache.velocity.context.Context context)
                   throws java.lang.Exception
gets the parameters for a new auction and saves it (TO DO: Validation)

Throws:
java.lang.Exception

doEditsubmitorder

public void doEditsubmitorder(org.apache.turbine.util.RunData data,
                              org.apache.velocity.context.Context context)
                       throws java.lang.Exception
Throws:
java.lang.Exception

doEditorder

public void doEditorder(org.apache.turbine.util.RunData data,
                        org.apache.velocity.context.Context context)
                 throws java.lang.Exception
Throws:
java.lang.Exception

doNoassignment

public void doNoassignment(org.apache.turbine.util.RunData data,
                           org.apache.velocity.context.Context context)
                    throws java.lang.Exception
Throws:
java.lang.Exception

doRemeasurement

public void doRemeasurement(org.apache.turbine.util.RunData data,
                            org.apache.velocity.context.Context context)
                     throws java.lang.Exception
Throws:
java.lang.Exception

doDeleteorder

public void doDeleteorder(org.apache.turbine.util.RunData data,
                          org.apache.velocity.context.Context context)
                   throws java.lang.Exception
Throws:
java.lang.Exception

doClear

public void doClear(org.apache.turbine.util.RunData data,
                    org.apache.velocity.context.Context context)
             throws java.lang.Exception
Throws:
java.lang.Exception

doFullfill

public void doFullfill(org.apache.turbine.util.RunData data,
                       org.apache.velocity.context.Context context)
                throws java.lang.Exception
Throws:
java.lang.Exception