org.apache.jetspeed.modules.actions.portlets
Class SecurityUpdateAction

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.turbine.modules.Action
          extended byorg.apache.turbine.modules.ActionEvent
              extended byorg.apache.jetspeed.modules.actions.portlets.PortletActionEvent
                  extended byorg.apache.jetspeed.modules.actions.portlets.PortletAction
                      extended byorg.apache.jetspeed.modules.actions.portlets.GenericMVCAction
                          extended byorg.apache.jetspeed.modules.actions.portlets.VelocityPortletAction
                              extended byorg.apache.jetspeed.modules.actions.portlets.SecureVelocityPortletAction
                                  extended byorg.apache.jetspeed.modules.actions.portlets.RegistryUpdateAction
                                      extended byorg.apache.jetspeed.modules.actions.portlets.SecurityUpdateAction

public class SecurityUpdateAction
extends RegistryUpdateAction

This action sets up the template context for managing of security entries in the Turbine database.

Version:
$Id: $
Author:
Jeremy Ford, Mark Orciuch

Field Summary
 
Fields inherited from class org.apache.jetspeed.modules.actions.portlets.RegistryUpdateAction
pane, registry, registryEntryName
 
Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Constructor Summary
SecurityUpdateAction()
           
 
Method Summary
protected  void buildNormalContext(VelocityPortlet portlet, 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  void clearUserData(org.apache.turbine.util.RunData rundata)
          Clears the temporary storage of any data that was used
 void doAddaccess(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Update a security entry in the registry
 void doAddallow(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Update a security entry in the registry
 void doRemoveaccess(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Remove a access entry from a security entry in the registry
 void doRemoveallow(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Update a security entry in the registry
 void doUpdateaccess(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Update a security entry in the registry
protected  void resetForm(org.apache.turbine.util.RunData rundata)
          Populates the user's temp storage with form data
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.RegistryUpdateAction
doAddcapability, doAddmediatype, doAddparameter, doCancel, doDelete, doInsert, doRemovecapability, doRemovemediatypes, doRemoveparameters, doUpdate, doUpdateparameters, doUpdateparametervalues, hasChanged, iteratorToCollection, redirect, updateRegistryEntry
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.SecureVelocityPortletAction
executeEvents
 
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
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
 

Constructor Detail

SecurityUpdateAction

public SecurityUpdateAction()
Method Detail

buildNormalContext

protected void buildNormalContext(VelocityPortlet portlet,
                                  org.apache.velocity.context.Context context,
                                  org.apache.turbine.util.RunData rundata)
                           throws java.lang.Exception
Description copied from class: VelocityPortletAction
Subclasses must override this method to provide default behavior for the portlet action

Overrides:
buildNormalContext in class RegistryUpdateAction
Throws:
java.lang.Exception
See Also:
VelocityPortletAction.buildNormalContext(VelocityPortlet, Context, RunData)

doAddaccess

public void doAddaccess(org.apache.turbine.util.RunData rundata,
                        org.apache.velocity.context.Context context)
                 throws java.lang.Exception
Update a security entry in the registry

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

doUpdateaccess

public void doUpdateaccess(org.apache.turbine.util.RunData rundata,
                           org.apache.velocity.context.Context context)
                    throws java.lang.Exception
Update a security entry in the registry

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

doRemoveaccess

public void doRemoveaccess(org.apache.turbine.util.RunData rundata,
                           org.apache.velocity.context.Context context)
                    throws java.lang.Exception
Remove a access entry from a security entry in the registry

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

doAddallow

public void doAddallow(org.apache.turbine.util.RunData rundata,
                       org.apache.velocity.context.Context context)
                throws java.lang.Exception
Update a security entry in the registry

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

doRemoveallow

public void doRemoveallow(org.apache.turbine.util.RunData rundata,
                          org.apache.velocity.context.Context context)
                   throws java.lang.Exception
Update a security entry in the registry

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

clearUserData

protected void clearUserData(org.apache.turbine.util.RunData rundata)
Clears the temporary storage of any data that was used

Overrides:
clearUserData in class RegistryUpdateAction
Parameters:
rundata -

resetForm

protected void resetForm(org.apache.turbine.util.RunData rundata)
Populates the user's temp storage with form data

Overrides:
resetForm in class RegistryUpdateAction
Parameters:
rundata - The turbine rundata context for this request.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.