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

org.deegree.portal
Class PortalUtils

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

public class PortalUtils
extends java.lang.Object

Since:
2.0
Version:
$Revision: 28715 $, 1.0. $Revision: 28715 $, $Date: 2010-12-10 14:42:46 +0100 (Fr, 10 Dez 2010) $
Author:
Andreas Poth, last edited by: $Author: apoth $

Constructor Summary
PortalUtils()
           
 
Method Summary
static java.lang.String[] createBaseRequests(ViewContext vc)
          creates the GetMap basic requests required by the JSP page assigned to the MapViewPortlet.
static java.lang.String[] createBaseRequests(ViewContext vc, java.lang.String user, java.lang.String password, java.lang.String sessionID)
          creates the GetMap basic requests required by the JSP page assigned to the MapViewPortlet.
static java.util.List<java.lang.String> getFeatureInfoLayers(ViewContext vc)
          returns a comma seperated list of layers marked as sensible for feature info requestes
static java.util.List<java.lang.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, java.lang.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 java.util.List<java.lang.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 java.util.List<java.lang.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,
                                             java.lang.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 java.lang.String[] createBaseRequests(ViewContext vc,
                                                    java.lang.String user,
                                                    java.lang.String password,
                                                    java.lang.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 java.lang.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.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