Geomajas, Geomajas server: Main - commands 1.15.1

org.geomajas.command.configuration
Class GetMapConfigurationCommand

java.lang.Object
  extended by org.geomajas.command.configuration.GetMapConfigurationCommand
All Implemented Interfaces:
Command<GetMapConfigurationRequest,GetMapConfigurationResponse>

@Api
@Component
public class GetMapConfigurationCommand
extends Object
implements Command<GetMapConfigurationRequest,GetMapConfigurationResponse>

This command fetches, and returns the initial application configuration for a specific MapWidget.

Since:
1.6.0
Author:
Pieter De Graef, Jan De Moerloose, Joachim Van der Auwera, Jan Venstermans

Constructor Summary
GetMapConfigurationCommand()
           
 
Method Summary
 void execute(GetMapConfigurationRequest request, GetMapConfigurationResponse response)
           
 GetMapConfigurationResponse getEmptyCommandResponse()
           
 ClientLayerInfo securityClone(ClientLayerInfo original)
          Clone layer information considering what may be copied to the client.
 ClientLayerTreeInfo securityClone(ClientLayerTreeInfo original)
           
 ClientLayerTreeNodeInfo securityClone(ClientLayerTreeNodeInfo original)
           
 ClientMapInfo securityClone(ClientMapInfo original)
           
 ClientToolbarInfo securityClone(ClientToolbarInfo original)
           
 List<ClientToolInfo> securityClone(List<ClientToolInfo> original)
           
 Map<String,ClientWidgetInfo> securityClone(Map<String,ClientWidgetInfo> widgetInfo)
          Clone a widget info map considering what may be copied to the client.
 Map<String,LayerExtraInfo> securityCloneLayerExtraInfo(Map<String,LayerExtraInfo> extraInfoMap)
          Clone a LayerInfo.extraInfo considering what may be copied to the client.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetMapConfigurationCommand

public GetMapConfigurationCommand()
Method Detail

getEmptyCommandResponse

public GetMapConfigurationResponse getEmptyCommandResponse()
Specified by:
getEmptyCommandResponse in interface Command<GetMapConfigurationRequest,GetMapConfigurationResponse>

execute

public void execute(GetMapConfigurationRequest request,
                    GetMapConfigurationResponse response)
             throws Exception
Specified by:
execute in interface Command<GetMapConfigurationRequest,GetMapConfigurationResponse>
Throws:
Exception

securityClone

public ClientMapInfo securityClone(ClientMapInfo original)

securityClone

public Map<String,ClientWidgetInfo> securityClone(Map<String,ClientWidgetInfo> widgetInfo)
Clone a widget info map considering what may be copied to the client.

Parameters:
widgetInfo - widget info map
Returns:
cloned copy including only records which are not ServerSideOnlyInfo

securityCloneLayerExtraInfo

public Map<String,LayerExtraInfo> securityCloneLayerExtraInfo(Map<String,LayerExtraInfo> extraInfoMap)
Clone a LayerInfo.extraInfo considering what may be copied to the client.

Parameters:
extraInfoMap - map of extra info
Returns:
cloned copy including only records which are not ServerSideOnlyInfo

securityClone

public ClientLayerInfo securityClone(ClientLayerInfo original)
Clone layer information considering what may be copied to the client.

Parameters:
original - layer info
Returns:
cloned copy including only allowed information

securityClone

public ClientLayerTreeInfo securityClone(ClientLayerTreeInfo original)

securityClone

public ClientLayerTreeNodeInfo securityClone(ClientLayerTreeNodeInfo original)

securityClone

public ClientToolbarInfo securityClone(ClientToolbarInfo original)

securityClone

public List<ClientToolInfo> securityClone(List<ClientToolInfo> original)

Geomajas, Geomajas server: Main - commands 1.15.1

Copyright © 2014 Geosparc. All Rights Reserved.