deegree 2.5 (2011/06/29 09:44 build-8-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 java.lang.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 java.lang.String AVAILABLE_WMC
          define 'availableWMC'
static java.lang.String CURRENT_WMC
          define 'CURRENTWMC'
static java.lang.String CURRENT_WMC_NAME
          define 'CURRENTWMCNAME'
static java.lang.String INIT_MAPPORTLETID
          define 'mapPortletID'
static java.lang.String INIT_WMC
          define 'wmc'
static java.lang.String PARAM_MAPACTION
          define 'MAPACTIONPORTLET'
static java.lang.String PARAM_MAPPORTLET
          define 'MAPPORTLET'
static java.lang.String PARAM_MODE
          define 'MODE'
protected  java.util.Map<java.lang.String,java.lang.String> parameter
           
protected  org.apache.jetspeed.portal.Portlet portlet
           
protected  javax.servlet.http.HttpServletRequest request
           
static java.lang.String SESSION_CURRENTFILAYER
          define 'CURRENTFILAYER'
static java.lang.String SESSION_HOME
          define 'HOME'
static java.lang.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  java.lang.String getInitParam(java.lang.String name)
          returns the value of the passed init parameter.
protected  java.lang.String getMapPortletID()
          returns the ID of the mapmodel assigned to a portlet.
protected  java.lang.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 java.lang.String INIT_MAPPORTLETID
define 'mapPortletID'

See Also:
Constant Field Values

INIT_WMC

public static final java.lang.String INIT_WMC
define 'wmc'

See Also:
Constant Field Values

AVAILABLE_WMC

public static final java.lang.String AVAILABLE_WMC
define 'availableWMC'

See Also:
Constant Field Values

SESSION_HOME

public static final java.lang.String SESSION_HOME
define 'HOME'

See Also:
Constant Field Values

CURRENT_WMC

public static final java.lang.String CURRENT_WMC
define 'CURRENTWMC'

See Also:
Constant Field Values

CURRENT_WMC_NAME

public static final java.lang.String CURRENT_WMC_NAME
define 'CURRENTWMCNAME'

See Also:
Constant Field Values

SESSION_VIEWCONTEXT

public static final java.lang.String SESSION_VIEWCONTEXT
define 'VIEWCONTEXT'

See Also:
Constant Field Values

SESSION_CURRENTFILAYER

public static final java.lang.String SESSION_CURRENTFILAYER
define 'CURRENTFILAYER'

See Also:
Constant Field Values

PARAM_MAPPORTLET

public static final java.lang.String PARAM_MAPPORTLET
define 'MAPPORTLET'

See Also:
Constant Field Values

PARAM_MAPACTION

public static final java.lang.String PARAM_MAPACTION
define 'MAPACTIONPORTLET'

See Also:
Constant Field Values

PARAM_MODE

public static final java.lang.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 java.util.Map<java.lang.String,java.lang.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 java.lang.String getInitParam(java.lang.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 java.lang.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 java.lang.String readMapContextID_()

deegree 2.5 (2011/06/29 09:44 build-8-official)

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