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

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

public class ClientUpdateAction
extends RegistryUpdateAction

This action enables to update the client entries

Version:
$Id: ClientUpdateAction.java,v 1.4 2004/02/23 02:56:58 jford Exp $
Author:
Jeremy Ford

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
ClientUpdateAction()
           
 
Method Summary
protected  void buildNormalContext(VelocityPortlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
          Build the normal state content for this portlet.
protected  void clearUserData(org.apache.turbine.util.RunData rundata)
          Clears the temporary storage of any data that was used
 void doAddmimetype(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Add a mimetype to a client entry
 void doRemovemimetype(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Remove mime types from a client entry
protected  void resetForm(org.apache.turbine.util.RunData rundata)
          Populates the user's temp storage with form data
protected  void updateRegistryEntry(org.apache.turbine.util.RunData rundata, RegistryEntry registryEntry)
          Basic implementation of a method to update a registry entry.
 
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
 
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

ClientUpdateAction

public ClientUpdateAction()
Method Detail

buildNormalContext

protected void buildNormalContext(VelocityPortlet portlet,
                                  org.apache.velocity.context.Context context,
                                  org.apache.turbine.util.RunData rundata)
                           throws java.lang.Exception
Build the normal state content for this portlet.

Overrides:
buildNormalContext in class RegistryUpdateAction
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.
Throws:
java.lang.Exception

doAddmimetype

public void doAddmimetype(org.apache.turbine.util.RunData rundata,
                          org.apache.velocity.context.Context context)
                   throws java.lang.Exception
Add a mimetype to a client entry

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

doRemovemimetype

public void doRemovemimetype(org.apache.turbine.util.RunData rundata,
                             org.apache.velocity.context.Context context)
                      throws java.lang.Exception
Remove mime types from a client entry

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

updateRegistryEntry

protected void updateRegistryEntry(org.apache.turbine.util.RunData rundata,
                                   RegistryEntry registryEntry)
                            throws java.lang.Exception
Description copied from class: RegistryUpdateAction
Basic implementation of a method to update a registry entry. The fields that are common to all registry entries can simply be added below.

Overrides:
updateRegistryEntry in class RegistryUpdateAction
Parameters:
rundata - The turbine rundata context for this request.
registryEntry - The registry entry to update
Throws:
java.lang.Exception
See Also:
RegistryUpdateAction.updateRegistryEntry(org.apache.turbine.util.RunData, org.apache.jetspeed.om.registry.RegistryEntry)

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.

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 - The turbine rundata context for this request.


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