|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.portal.portlet.modules.actions.AbstractPortletPerform org.deegree.portal.portlet.modules.actions.IGeoPortalPortletPerform
public class IGeoPortalPortletPerform
Field Summary | |
---|---|
static String |
PARAM_BBOX
A String denoting BBOX |
static String |
PARAM_LAYER
A String denoting LAYER |
static String |
PARAM_MAPMODE
A String denoting MAPMODE |
static String |
PARAM_SESSIONID
A String denoting SESSIONID |
static String |
PARAM_STYLE
A String denoting STYLE |
protected javax.servlet.ServletContext |
sc
|
static String |
SESSION_HISTORY
A String denoting HISTORY |
static String |
SESSION_HISTORYPOSITION
A String denoting HISTORYPOSITION |
protected static Map<String,ViewContext> |
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 | |
---|---|
IGeoPortalPortletPerform(javax.servlet.http.HttpServletRequest request,
org.apache.jetspeed.portal.Portlet portlet,
javax.servlet.ServletContext sc)
|
Method Summary | |
---|---|
static String |
getCurrentMapContextName(javax.servlet.http.HttpSession session,
String pid)
returns the name of the current WMC into the users session |
String |
getCurrentMapContextName(String pid)
returns the name of the current WMC into the users session |
static ViewContext |
getCurrentViewContext(javax.servlet.http.HttpSession session,
String pid)
returns the current <@link ViewContext> read from the portlet session. |
ViewContext |
getCurrentViewContext(String pid)
returns the current <@link ViewContext> read from the portlet session. |
ViewContext |
getNamedViewContext(javax.servlet.http.HttpSession session,
String name)
returns an instance of <@link ViewContext> read from the portlet session. |
ViewContext |
getNamedViewContext(String name)
returns an instance of <@link ViewContext> read from the portlet session. |
void |
setBoundingBox(Envelope env)
sets a new bounding box of the map read from the the request object passed when initialized an instance of MapWindowPortletPerfom |
void |
setBoundingBox(String bbox)
the method expects a string with four comma seperated coordinate values. |
void |
setBoundingBoxFromBBOXParam()
sets a new bounding box of the map read from the the request object passed when initialized an instance of MapWindowPortletPerfom |
static void |
setCurrentMapContext(javax.servlet.http.HttpSession session,
ViewContext vc,
String pid)
sets the current MapContext to the users session |
void |
setCurrentMapContext(ViewContext vc,
String pid)
sets the current MapContext to the users session |
static void |
setCurrentMapContextName(javax.servlet.http.HttpSession session,
String pid,
String name)
writes the name of the current WMC into the users session |
void |
setCurrentMapContextName(String pid,
String name)
writes the name of the current WMC into the users session |
void |
setLayers()
sets layers of the view context as visible or invisble depending on the incoming request |
void |
setMode()
writes the current map mode (if set) into the users WMC. |
static void |
setNameContext(javax.servlet.http.HttpSession session,
String name,
URL url)
writes the URL to a WMC with a assigend name into a users session |
void |
setNameContext(String name,
URL url)
writes the URL to a WMC with a assigend name into a users session |
void |
updateContext()
updates the view context with the current bounding box, the list of visible layers and the current map mode |
Methods inherited from class org.deegree.portal.portlet.modules.actions.AbstractPortletPerform |
---|
buildNormalContext, getInitParam, getMapPortletID, readMapContextID_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PARAM_BBOX
public static final String PARAM_LAYER
public static final String PARAM_STYLE
public static final String PARAM_MAPMODE
public static final String PARAM_SESSIONID
public static final String SESSION_HISTORY
public static final String SESSION_HISTORYPOSITION
protected javax.servlet.ServletContext sc
protected static Map<String,ViewContext> vcMap
Constructor Detail |
---|
public IGeoPortalPortletPerform(javax.servlet.http.HttpServletRequest request, org.apache.jetspeed.portal.Portlet portlet, javax.servlet.ServletContext sc)
request
- portlet
- sc
- contextMethod Detail |
---|
public void updateContext()
public void setLayers()
public void setMode()
public void setBoundingBoxFromBBOXParam()
MapWindowPortletPerfom
public void setBoundingBox(Envelope env)
MapWindowPortletPerfom
env
- new bounding boxpublic void setBoundingBox(String bbox)
bbox
- public static ViewContext getCurrentViewContext(javax.servlet.http.HttpSession session, String pid)
session
- pid
- MapWindowPortlet id
public ViewContext getCurrentViewContext(String pid)
pid
- MapWindowPortlet id
public static void setCurrentMapContext(javax.servlet.http.HttpSession session, ViewContext vc, String pid)
session
- vc
- pid
- public void setCurrentMapContext(ViewContext vc, String pid)
vc
- pid
- public static void setCurrentMapContextName(javax.servlet.http.HttpSession session, String pid, String name)
session
- pid
- name
- public void setCurrentMapContextName(String pid, String name)
pid
- name
- public static String getCurrentMapContextName(javax.servlet.http.HttpSession session, String pid)
session
- pid
-
public String getCurrentMapContextName(String pid)
pid
-
public ViewContext getNamedViewContext(javax.servlet.http.HttpSession session, String name)
null
will be returned.
session
- name
- map context name/id
null
will be returned.public ViewContext getNamedViewContext(String name)
null
will be returned.
name
- map context name/id
null
will be returned.public static void setNameContext(javax.servlet.http.HttpSession session, String name, URL url)
session
- name
- url
- public void setNameContext(String name, URL url)
name
- url
-
|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org