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

org.deegree.portal.portlet.modules.map.actions.portlets
Class WMCManagementPortletPerfom

java.lang.Object
  extended by org.deegree.portal.portlet.modules.actions.AbstractPortletPerform
      extended by org.deegree.portal.portlet.modules.actions.IGeoPortalPortletPerform
          extended by org.deegree.portal.portlet.modules.map.actions.portlets.WMCManagementPortletPerfom

public class WMCManagementPortletPerfom
extends IGeoPortalPortletPerform

Perform class for saving WMCs

Version:
$Revision: 1.9 $, $Date: 2007/01/04 11:18:33 $
Author:
Ugo Taddei, last edited by: $Author: taddei $

Field Summary
static String DESCRIPTION
           
static String FILENAME
           
static String KEYWORDS
           
static String TITLE
           
 
Fields inherited from class org.deegree.portal.portlet.modules.actions.IGeoPortalPortletPerform
PARAM_BBOX, PARAM_LAYER, PARAM_MAPMODE, PARAM_SESSIONID, PARAM_STYLE, sc, SESSION_HISTORY, SESSION_HISTORYPOSITION, vcMap
 
Fields inherited from class org.deegree.portal.portlet.modules.actions.AbstractPortletPerform
AVAILABLE_WMC, CURRENT_WMC, CURRENT_WMC_NAME, INIT_MAPPORTLETID, INIT_WMC, PARAM_MAPACTION, PARAM_MAPPORTLET, PARAM_MODE, parameter, portlet, request, SESSION_CURRENTFILAYER, SESSION_HOME, SESSION_VIEWCONTEXT
 
Constructor Summary
WMCManagementPortletPerfom(javax.servlet.http.HttpServletRequest request, org.apache.jetspeed.portal.Portlet portlet, javax.servlet.ServletContext sc)
          constructor
 
Method Summary
 void buildNormalContext()
          this method will be called each time a portlet will be repainted.
(package private)  void doLoadcontext()
          Loads a context from a file pointed to by the request parameter "wmc_filename".
(package private)  void doLoadnamedcontext(String userName)
          Loads a context from a file pointed to by the request parameter "wmc_filename".
(package private)  void doSavecontext(String userName)
          Saves the current context as a user context to a file in "WEB-INF/wmc/$USER_DIR/$mapPortletID$_CURRENTWMC.xml".
(package private)  void doSavenamedcontext(String userName)
          Saves the current context as a user context to a file named by the user
(package private)  void doSaveshared(String userName)
          Saves the current context as a shared context to a file in "WEB-INF/wmc/shared".
static List<WMCMetadataSurrogate> getSharedContextList()
           
 
Methods inherited from class org.deegree.portal.portlet.modules.actions.IGeoPortalPortletPerform
getCurrentMapContextName, getCurrentMapContextName, getCurrentViewContext, getCurrentViewContext, getNamedViewContext, getNamedViewContext, setBoundingBox, setBoundingBox, setBoundingBoxFromBBOXParam, setCurrentMapContext, setCurrentMapContext, setCurrentMapContextName, setCurrentMapContextName, setLayers, setMode, setNameContext, setNameContext, updateContext
 
Methods inherited from class org.deegree.portal.portlet.modules.actions.AbstractPortletPerform
getInitParam, getMapPortletID, readMapContextID_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE

public static final String TITLE
See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION
See Also:
Constant Field Values

KEYWORDS

public static final String KEYWORDS
See Also:
Constant Field Values

FILENAME

public static final String FILENAME
See Also:
Constant Field Values
Constructor Detail

WMCManagementPortletPerfom

WMCManagementPortletPerfom(javax.servlet.http.HttpServletRequest request,
                           org.apache.jetspeed.portal.Portlet portlet,
                           javax.servlet.ServletContext sc)
constructor

Parameters:
request -
portlet -
sc -
Method Detail

doSavecontext

void doSavecontext(String userName)
             throws Exception
Saves the current context as a user context to a file in "WEB-INF/wmc/$USER_DIR/$mapPortletID$_CURRENTWMC.xml".

Parameters:
userName -
Throws:
Exception

doSavenamedcontext

void doSavenamedcontext(String userName)
                  throws Exception
Saves the current context as a user context to a file named by the user

Parameters:
userName -
Throws:
Exception

doSaveshared

void doSaveshared(String userName)
            throws Exception
Saves the current context as a shared context to a file in "WEB-INF/wmc/shared".

Parameters:
userName -
Throws:
Exception

doLoadcontext

void doLoadcontext()
             throws Exception
Loads a context from a file pointed to by the request parameter "wmc_filename". The file must be in the "WEB-INF/wmc/shared/" directory.

Throws:
Exception

doLoadnamedcontext

void doLoadnamedcontext(String userName)
                  throws Exception
Loads a context from a file pointed to by the request parameter "wmc_filename". The file must be in the "WEB-INF/wmc/$USER_NAME$/" directory.

Parameters:
userName - name of the user who loads a context
Throws:
Exception

getSharedContextList

public static List<WMCMetadataSurrogate> getSharedContextList()
Returns:
shared context list

buildNormalContext

public void buildNormalContext()
                        throws PortalException
Description copied from class: AbstractPortletPerform
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

Overrides:
buildNormalContext in class AbstractPortletPerform
Throws:
PortalException

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