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

org.deegree.portal
Class PortalUtils

java.lang.Object
  extended by org.deegree.portal.PortalUtils

public class PortalUtils
extends Object

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

Constructor Summary
PortalUtils()
           
 
Method Summary
static String[] createBaseRequests(ViewContext vc)
          creates the GetMap basic requests required by the JSP page assigned to the MapViewPortlet.
static String[] createBaseRequests(ViewContext vc, String user, String password, String sessionID)
          creates the GetMap basic requests required by the JSP page assigned to the MapViewPortlet.
static List<String> getFeatureInfoLayers(ViewContext vc)
          returns a comma seperated list of layers marked as sensible for feature info requestes
static List<String[]> getVisibleLayers(ViewContext vc)
          returns a comma separated list of visible layers
static boolean hasNodeVisibleLayers(ViewContext vc, int nodeID)
          returns true if at least one layer within the node is visible
static boolean hasServerVisibleLayers(ViewContext vc, String serverTitle)
          returns true if at least one layer of the passed server is visible
static void setVisibility(ViewContext vc, int nodeID, boolean hidden)
          set visibility for a node and all child nodes/layers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalUtils

public PortalUtils()
Method Detail

getFeatureInfoLayers

public static List<String> getFeatureInfoLayers(ViewContext vc)
returns a comma seperated list of layers marked as sensible for feature info requestes

Parameters:
vc -
Returns:
a comma seperated list of layers marked as sensible for feature info requestes

getVisibleLayers

public static List<String[]> getVisibleLayers(ViewContext vc)
returns a comma separated list of visible layers

Parameters:
vc -
Returns:
a comma separated list of visible layers

hasServerVisibleLayers

public static boolean hasServerVisibleLayers(ViewContext vc,
                                             String serverTitle)
returns true if at least one layer of the passed server is visible

Parameters:
vc -
serverTitle -
Returns:
true if at least one layer of the passed server is visible

hasNodeVisibleLayers

public static boolean hasNodeVisibleLayers(ViewContext vc,
                                           int nodeID)
returns true if at least one layer within the node is visible

Parameters:
vc -
nodeID -
Returns:
true if at least one layer of the passed server is visible

setVisibility

public static void setVisibility(ViewContext vc,
                                 int nodeID,
                                 boolean hidden)
set visibility for a node and all child nodes/layers

Parameters:
vc -
nodeID -
hidden -

createBaseRequests

public static String[] createBaseRequests(ViewContext vc,
                                          String user,
                                          String password,
                                          String sessionID)
creates the GetMap basic requests required by the JSP page assigned to the MapViewPortlet.

Parameters:
vc -
user -
password -
sessionID -
Returns:
list of GetMap requests

createBaseRequests

public static String[] createBaseRequests(ViewContext vc)
creates the GetMap basic requests required by the JSP page assigned to the MapViewPortlet.

Parameters:
vc -
Returns:
the GetMap basic requests

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