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

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

public class PsmlUpdateAction
extends SecureVelocityPortletAction

This action enables to update the psml entries

Version:
$Id: PsmlUpdateAction.java,v 1.19 2005/01/17 23:35:30 morciuch Exp $
Author:
David Sean Taylor

Field Summary
protected static java.lang.String CATEGORY_NAME
           
protected static java.lang.String CATEGORY_VALUE
           
protected static java.lang.String COPY_FROM
           
protected static java.lang.String COPY_TO
           
protected static java.lang.String FALSE
           
protected static java.lang.String PSML_REFRESH_FLAG
           
protected static java.lang.String PSML_UPDATE_PANE
           
protected static java.lang.String TEMP_LOCATOR
           
protected static java.lang.String TRUE
           
 
Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Constructor Summary
PsmlUpdateAction()
           
 
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.
 void doDelete(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Delete Psml entry
 void doExport(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          File Export Action for Psml.
 void doExportall(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          File Export All Action for Psml.
 void doImport(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          File Import Action for Psml.
 void doImportall(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          File Import All Action for Psml.
 void doInsert(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          Database Insert Action for Psml.
 void setRefreshPsmlFlag(org.apache.turbine.util.RunData rundata, java.lang.String value)
           
 
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
 

Field Detail

PSML_REFRESH_FLAG

protected static final java.lang.String PSML_REFRESH_FLAG
See Also:
Constant Field Values

TRUE

protected static final java.lang.String TRUE
See Also:
Constant Field Values

FALSE

protected static final java.lang.String FALSE
See Also:
Constant Field Values

CATEGORY_NAME

protected static final java.lang.String CATEGORY_NAME
See Also:
Constant Field Values

CATEGORY_VALUE

protected static final java.lang.String CATEGORY_VALUE
See Also:
Constant Field Values

COPY_FROM

protected static final java.lang.String COPY_FROM
See Also:
Constant Field Values

COPY_TO

protected static final java.lang.String COPY_TO
See Also:
Constant Field Values

TEMP_LOCATOR

protected static final java.lang.String TEMP_LOCATOR
See Also:
Constant Field Values

PSML_UPDATE_PANE

protected static final java.lang.String PSML_UPDATE_PANE
See Also:
Constant Field Values
Constructor Detail

PsmlUpdateAction

public PsmlUpdateAction()
Method Detail

buildNormalContext

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.

Specified by:
buildNormalContext in class 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 Psml.

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
Delete Psml entry

Throws:
java.lang.Exception

setRefreshPsmlFlag

public void setRefreshPsmlFlag(org.apache.turbine.util.RunData rundata,
                               java.lang.String value)

doExport

public void doExport(org.apache.turbine.util.RunData rundata,
                     org.apache.velocity.context.Context context)
              throws java.lang.Exception
File Export Action for Psml.

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

doExportall

public void doExportall(org.apache.turbine.util.RunData rundata,
                        org.apache.velocity.context.Context context)
                 throws java.lang.Exception
File Export All Action for Psml.

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

doImport

public void doImport(org.apache.turbine.util.RunData rundata,
                     org.apache.velocity.context.Context context)
              throws java.lang.Exception
File Import Action for Psml. TODO: Implement file upload.

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

doImportall

public void doImportall(org.apache.turbine.util.RunData rundata,
                        org.apache.velocity.context.Context context)
                 throws java.lang.Exception
File Import All Action for Psml.

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


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