deegree 2.2 (2008/12/22 11:33 build-3038-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: 9346 $, $Revision: 9346 $, $Date: 2007-12-27 17:39:07 +0100 (Do, 27 Dez 2007) $
Author:
Andreas Poth, last edited by: $Author: apoth $

Field Summary
static String AVAILABLE_WMC
           
static String CURRENT_WMC
           
static String CURRENT_WMC_NAME
           
static String INIT_MAPPORTLETID
           
static String INIT_WMC
           
static String PARAM_MAPACTION
           
static String PARAM_MAPPORTLET
           
static String PARAM_MODE
           
protected  Map<String,String> parameter
           
protected  org.apache.jetspeed.portal.Portlet portlet
           
protected  HttpServletRequest request
           
static String SESSION_CURRENTFILAYER
           
static String SESSION_HOME
           
static String SESSION_VIEWCONTEXT
           
 
Constructor Summary
AbstractPortletPerform(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
See Also:
Constant Field Values

INIT_WMC

public static final String INIT_WMC
See Also:
Constant Field Values

AVAILABLE_WMC

public static final String AVAILABLE_WMC
See Also:
Constant Field Values

SESSION_HOME

public static final String SESSION_HOME
See Also:
Constant Field Values

CURRENT_WMC

public static final String CURRENT_WMC
See Also:
Constant Field Values

CURRENT_WMC_NAME

public static final String CURRENT_WMC_NAME
See Also:
Constant Field Values

SESSION_VIEWCONTEXT

public static final String SESSION_VIEWCONTEXT
See Also:
Constant Field Values

SESSION_CURRENTFILAYER

public static final String SESSION_CURRENTFILAYER
See Also:
Constant Field Values

PARAM_MAPPORTLET

public static final String PARAM_MAPPORTLET
See Also:
Constant Field Values

PARAM_MAPACTION

public static final String PARAM_MAPACTION
See Also:
Constant Field Values

PARAM_MODE

public static final String PARAM_MODE
See Also:
Constant Field Values

portlet

protected org.apache.jetspeed.portal.Portlet portlet

request

protected HttpServletRequest request

parameter

protected Map<String,String> parameter
Constructor Detail

AbstractPortletPerform

public AbstractPortletPerform(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.2 (2008/12/22 11:33 build-3038-official)

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