deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.portal.portlet.modules.actions
Class AbstractPortletPerform

java.lang.Object
  extended by org.deegree.portal.portlet.modules.actions.AbstractPortletPerform
Direct Known Subclasses:
IGeoPortalPortletPerform, ToolbarPortletPerform

public abstract class AbstractPortletPerform
extends Object

Version:
$Revision: 18195 $, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Field Summary
static String AVAILABLE_WMC
          define 'availableWMC'
static String CURRENT_WMC
          define 'CURRENTWMC'
static String CURRENT_WMC_NAME
          define 'CURRENTWMCNAME'
static String INIT_MAPPORTLETID
          define 'mapPortletID'
static String INIT_WMC
          define 'wmc'
static String PARAM_MAPACTION
          define 'MAPACTIONPORTLET'
static String PARAM_MAPPORTLET
          define 'MAPPORTLET'
static String PARAM_MODE
          define 'MODE'
protected  Map<String,String> parameter
           
protected  org.apache.jetspeed.portal.Portlet portlet
           
protected  javax.servlet.http.HttpServletRequest request
           
static String SESSION_CURRENTFILAYER
          define 'CURRENTFILAYER'
static String SESSION_HOME
          define 'HOME'
static String SESSION_VIEWCONTEXT
          define 'VIEWCONTEXT'
 
Constructor Summary
AbstractPortletPerform(javax.servlet.http.HttpServletRequest request, org.apache.jetspeed.portal.Portlet portlet)
           
 
Method Summary
 void buildNormalContext()
          this method will be called each time a portlet will be repainted.
protected  String getInitParam(String name)
          returns the value of the passed init parameter.
protected  String getMapPortletID()
          returns the ID of the mapmodel assigned to a portlet.
protected  String readMapContextID_()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_MAPPORTLETID

public static final String INIT_MAPPORTLETID
define 'mapPortletID'

See Also:
Constant Field Values

INIT_WMC

public static final String INIT_WMC
define 'wmc'

See Also:
Constant Field Values

AVAILABLE_WMC

public static final String AVAILABLE_WMC
define 'availableWMC'

See Also:
Constant Field Values

SESSION_HOME

public static final String SESSION_HOME
define 'HOME'

See Also:
Constant Field Values

CURRENT_WMC

public static final String CURRENT_WMC
define 'CURRENTWMC'

See Also:
Constant Field Values

CURRENT_WMC_NAME

public static final String CURRENT_WMC_NAME
define 'CURRENTWMCNAME'

See Also:
Constant Field Values

SESSION_VIEWCONTEXT

public static final String SESSION_VIEWCONTEXT
define 'VIEWCONTEXT'

See Also:
Constant Field Values

SESSION_CURRENTFILAYER

public static final String SESSION_CURRENTFILAYER
define 'CURRENTFILAYER'

See Also:
Constant Field Values

PARAM_MAPPORTLET

public static final String PARAM_MAPPORTLET
define 'MAPPORTLET'

See Also:
Constant Field Values

PARAM_MAPACTION

public static final String PARAM_MAPACTION
define 'MAPACTIONPORTLET'

See Also:
Constant Field Values

PARAM_MODE

public static final String PARAM_MODE
define 'MODE'

See Also:
Constant Field Values

portlet

protected org.apache.jetspeed.portal.Portlet portlet

request

protected javax.servlet.http.HttpServletRequest request

parameter

protected Map<String,String> parameter
Constructor Detail

AbstractPortletPerform

public AbstractPortletPerform(javax.servlet.http.HttpServletRequest request,
                              org.apache.jetspeed.portal.Portlet portlet)
Parameters:
portlet -
request -
Method Detail

getInitParam

protected String getInitParam(String name)
returns the value of the passed init parameter. This method shal be used to hide functional implementation from concrete portlet implementation.

Parameters:
name -
Returns:
the value of the passed init parameter.

getMapPortletID

protected String getMapPortletID()
returns the ID of the mapmodel assigned to a portlet. First the method tries to read it from the portlets initparameter. If not present it returns the ID of the first iGeoPortal:MapWindowPortlet it finds.

Returns:
the ID of the mapmodel assigned to a portlet. First the method tries to read it from the portlets initparameter. If not present it returns the ID of the first iGeoPortal:MapWindowPortlet it finds.

buildNormalContext

public void buildNormalContext()
                        throws PortalException
this method will be called each time a portlet will be repainted. It determines all portlets visible in a page and writes a Map with the portlets name as key and the portlets ID as value into the forwarded HttpRequest object

Throws:
PortalException

readMapContextID_

protected String readMapContextID_()

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org