org.openscience.nmrshiftdb.modules.actions.portlets.security
Class ReviewGroupsUpdateAction

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.security.ReviewGroupsUpdateAction

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

This action sets up the template context for editing review groups in the Turbine database.

Author:
David Sean TaylorAdopted by shk3

Field Summary
private static java.lang.String TEMP_PERMISSION
           
 
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
ReviewGroupsUpdateAction()
           
 
Method Summary
protected  void buildConfigureContext(org.apache.jetspeed.portal.portlets.VelocityPortlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
          Build the configure state content for this portlet.
protected  void buildMaximizedContext(org.apache.jetspeed.portal.portlets.VelocityPortlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
          Build the maximized state content for this portlet.
protected  void buildNormalContext(org.apache.jetspeed.portal.portlets.VelocityPortlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
          Build the normal state content for this portlet.
 void doDelete(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Database Delete Action for Security Permissions.
 void doInsert(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Database Insert Action for Security Permissions.
 void doUpdate(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Database Update Action for Security Permissions.
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction
buildConfigureContext, 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

TEMP_PERMISSION

private static final java.lang.String TEMP_PERMISSION
See Also:
Constant Field Values
Constructor Detail

ReviewGroupsUpdateAction

public ReviewGroupsUpdateAction()
Method Detail

buildMaximizedContext

protected void buildMaximizedContext(org.apache.jetspeed.portal.portlets.VelocityPortlet portlet,
                                     org.apache.velocity.context.Context context,
                                     org.apache.turbine.util.RunData rundata)
Build the maximized state content for this portlet. (Same as normal state).

Overrides:
buildMaximizedContext in class org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction
Parameters:
portlet - The velocity-based portlet that is being built.
context - The velocity context for this request.
rundata - The turbine rundata context for this request.

buildConfigureContext

protected void buildConfigureContext(org.apache.jetspeed.portal.portlets.VelocityPortlet portlet,
                                     org.apache.velocity.context.Context context,
                                     org.apache.turbine.util.RunData rundata)
Build the configure state content for this portlet. TODO: we could configure this portlet with configurable skins, etc..

Overrides:
buildConfigureContext in class org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction
Parameters:
portlet - The velocity-based portlet that is being built.
context - The velocity context for this request.
rundata - The turbine rundata context for this request.

buildNormalContext

protected void buildNormalContext(org.apache.jetspeed.portal.portlets.VelocityPortlet portlet,
                                  org.apache.velocity.context.Context context,
                                  org.apache.turbine.util.RunData rundata)
Build the normal state content for this portlet.

Specified by:
buildNormalContext in class org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction
Parameters:
portlet - The velocity-based portlet that is being built.
context - The velocity context for this request.
rundata - The turbine rundata context for this request.

doInsert

public void doInsert(org.apache.turbine.util.RunData rundata,
                     org.apache.velocity.context.Context context)
              throws java.lang.Exception
Database Insert Action for Security Permissions. Performs inserts into security database.

Parameters:
rundata - The turbine rundata context for this request.
context - The velocity context for this request.
Throws:
java.lang.Exception

doUpdate

public void doUpdate(org.apache.turbine.util.RunData rundata,
                     org.apache.velocity.context.Context context)
              throws java.lang.Exception
Database Update Action for Security Permissions. Performs updates into security database.

Parameters:
rundata - The turbine rundata context for this request.
context - The velocity context for this request.
Throws:
java.lang.Exception

doDelete

public void doDelete(org.apache.turbine.util.RunData rundata,
                     org.apache.velocity.context.Context context)
              throws java.lang.Exception
Database Delete Action for Security Permissions. Performs deletes into security database.

Parameters:
rundata - The turbine rundata context for this request.
context - The velocity context for this request.
Throws:
java.lang.Exception