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

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

public class PsmlManagerAction
extends GenericMVCAction

This action enables to manage psml entries within current user's security context

Version:
$Id: PsmlManagerAction.java,v 1.9 2005/01/22 00:13:37 morciuch Exp $
Author:
Mark Orciuch

Field Summary
static java.lang.String CACHED_PSML
           
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 CUSTOMIZE_TEMPLATE
           
protected static java.lang.String DEFAULT_SEARCH
           
protected static java.lang.String FALSE
           
static java.lang.String FILTER_REGEXP
          name of the parameter that holds the regexp flag
static java.lang.String FILTER_TYPE
          name of the parameter that holds the filter type
static java.lang.String FILTER_TYPE_GROUP
          value of the filter type parameter for searching by group
static java.lang.String FILTER_TYPE_ROLE
          value of the filter type parameter for searching by role
static java.lang.String FILTER_TYPE_USER
          value of the filter type parameter for searching by username
static java.lang.String FILTER_VALUE
          name of the parameter that holds the filter value
protected static java.lang.String LAST_SEARCH_TYPE
           
protected static java.lang.String LAST_SEARCH_VALUE
           
protected static java.lang.String PAGE_SIZE
           
protected static java.lang.String PROFILE_ITERATOR
           
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
PsmlManagerAction()
           
 
Method Summary
protected  void buildConfigureContext(Portlet portlet, org.apache.velocity.context.Context context, org.apache.turbine.util.RunData rundata)
          Subclasses should override this method if they wish to provide their own customization behavior.
protected  void buildNormalContext(Portlet 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
 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 doFilter(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          This method is to enter filtering mode.
 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 doRefresh(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          This method is to refresh psml from disk or database.
 void doUpdate(org.apache.turbine.util.RunData rundata, org.apache.velocity.context.Context context)
          This method is called when the user configures any of the parameters.
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
buildMaximizedContext, 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

CACHED_PSML

public static final java.lang.String CACHED_PSML
See Also:
Constant Field Values

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

PROFILE_ITERATOR

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

LAST_SEARCH_TYPE

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

LAST_SEARCH_VALUE

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

PAGE_SIZE

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

DEFAULT_SEARCH

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

CUSTOMIZE_TEMPLATE

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

FILTER_VALUE

public static final java.lang.String FILTER_VALUE
name of the parameter that holds the filter value

See Also:
Constant Field Values

FILTER_REGEXP

public static final java.lang.String FILTER_REGEXP
name of the parameter that holds the regexp flag

See Also:
Constant Field Values

FILTER_TYPE

public static final java.lang.String FILTER_TYPE
name of the parameter that holds the filter type

See Also:
Constant Field Values

FILTER_TYPE_USER

public static final java.lang.String FILTER_TYPE_USER
value of the filter type parameter for searching by username

See Also:
Constant Field Values

FILTER_TYPE_ROLE

public static final java.lang.String FILTER_TYPE_ROLE
value of the filter type parameter for searching by role

See Also:
Constant Field Values

FILTER_TYPE_GROUP

public static final java.lang.String FILTER_TYPE_GROUP
value of the filter type parameter for searching by group

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

PsmlManagerAction

public PsmlManagerAction()
Method Detail

buildConfigureContext

protected void buildConfigureContext(Portlet portlet,
                                     org.apache.velocity.context.Context context,
                                     org.apache.turbine.util.RunData rundata)
Subclasses should override this method if they wish to provide their own customization behavior. Default is to use Portal base customizer action

Overrides:
buildConfigureContext in class GenericMVCAction

buildNormalContext

protected void buildNormalContext(Portlet 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

Overrides:
buildNormalContext in class GenericMVCAction
Parameters:
portlet -
context -
rundata -

doUpdate

public void doUpdate(org.apache.turbine.util.RunData rundata,
                     org.apache.velocity.context.Context context)
This method is called when the user configures any of the parameters.

Parameters:
rundata -
context - The velocity context for this request.

doRefresh

public void doRefresh(org.apache.turbine.util.RunData rundata,
                      org.apache.velocity.context.Context context)
This method is to refresh psml from disk or database.

Parameters:
rundata -
context - The velocity context for this request.

doFilter

public void doFilter(org.apache.turbine.util.RunData rundata,
                     org.apache.velocity.context.Context context)
This method is to enter filtering mode.

Parameters:
rundata -
context - The velocity 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

Parameters:
rundata -
context -
Throws:
java.lang.Exception

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.