test_class.declarator: DOUBLE_TOLERANCE = .0000000001
test_class.modifier: private static final
test_class.original_string: private static final double DOUBLE_TOLERANCE = .0000000001;
test_class.type: double
test_class.var_name: DOUBLE_TOLERANCE
test_class.declarator: APP_ID = "simplevectors"
test_class.modifier: private static final
test_class.original_string: private static final String APP_ID = "simplevectors";
test_class.type: String
test_class.var_name: APP_ID
test_class.declarator: configurationService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private ConfigurationService configurationService;
test_class.type: ConfigurationService
test_class.var_name: configurationService
test_class.declarator: dispatcher
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private CommandDispatcher dispatcher;
test_class.type: CommandDispatcher
test_class.var_name: dispatcher
test_class.file: command/src/test/java/org/geomajas/command/configuration/GetConfigurationCommandTest.java
test_class.identifier: GetConfigurationCommandTest
test_case.body: @Test
  	public void testServerSideOnlyInfo() throws Exception {
  		GetConfigurationRequest request = new GetConfigurationRequest();
  		request.setApplicationId("appServerSideOnly");
  		GetConfigurationResponse response = (GetConfigurationResponse) dispatcher.execute(
  				GetConfigurationRequest.COMMAND, request, null, "en");
  		if (response.isError()) {
  			response.getErrors().get(0).printStackTrace();
  		}
  		Assert.assertFalse(response.isError());
  		ClientApplicationInfo appInfo = response.getApplication();
  		Assert.assertNotNull(appInfo);
  
  		// user data
  		Assert.assertNull(appInfo.getUserData());
  
  		// widget data
  		Assert.assertNotNull(appInfo.getWidgetInfo());
  		Assert.assertNull(appInfo.getWidgetInfo("appDummy")); // not present
  		Assert.assertNotNull(appInfo.getWidgetInfo("mapSelect")); // present
  		Assert.assertNull(appInfo.getWidgetInfo("mapDummy")); // filtered because ServerSideOnlyInfo
  
  		// map data
  		ClientMapInfo mapInfo = appInfo.getMaps().get(0);
  		Assert.assertNull(mapInfo.getUserData());
  		Assert.assertNotNull(mapInfo);
  		Assert.assertNotNull(mapInfo.getWidgetInfo());
  		Assert.assertNull(mapInfo.getWidgetInfo("appDummy")); // not present
  		Assert.assertNotNull(mapInfo.getWidgetInfo("layerTree")); // present
  		Assert.assertNull(mapInfo.getWidgetInfo("mapDummy")); // filtered because ServerSideOnlyInfo
  	}
test_case.class_method_signature: GetConfigurationCommandTest.testServerSideOnlyInfo()
test_case.full_signature: @Test public void testServerSideOnlyInfo()
test_case.identifier: testServerSideOnlyInfo
test_case.invocations: setApplicationId execute isError printStackTrace get getErrors assertFalse isError getApplication assertNotNull assertNull getUserData assertNotNull getWidgetInfo assertNull getWidgetInfo assertNotNull getWidgetInfo assertNull getWidgetInfo get getMaps assertNull getUserData assertNotNull assertNotNull getWidgetInfo assertNull getWidgetInfo assertNotNull getWidgetInfo assertNull getWidgetInfo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testServerSideOnlyInfo()
focal_class.declarator: context
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private ApplicationContext context;
focal_class.type: ApplicationContext
focal_class.var_name: context
focal_class.declarator: mapConfigurationCommand
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private GetMapConfigurationCommand mapConfigurationCommand;
focal_class.type: GetMapConfigurationCommand
focal_class.var_name: mapConfigurationCommand
focal_class.file: command/src/main/java/org/geomajas/command/configuration/GetConfigurationCommand.java
focal_class.identifier: GetConfigurationCommand
focal_class.interfaces: implements CommandHasRequest<GetConfigurationRequest, GetConfigurationResponse>
focal_class.class_method_signature: GetConfigurationCommand.getEmptyCommandRequest()
focal_class.full_signature: @Override public GetConfigurationRequest getEmptyCommandRequest()
focal_class.identifier: getEmptyCommandRequest
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: GetConfigurationRequest
focal_class.signature: GetConfigurationRequest getEmptyCommandRequest()
focal_class.class_method_signature: GetConfigurationCommand.getEmptyCommandResponse()
focal_class.full_signature: @Override public GetConfigurationResponse getEmptyCommandResponse()
focal_class.identifier: getEmptyCommandResponse
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: GetConfigurationResponse
focal_class.signature: GetConfigurationResponse getEmptyCommandResponse()
focal_class.class_method_signature: GetConfigurationCommand.execute(GetConfigurationRequest request, GetConfigurationResponse response)
focal_class.full_signature: @Override public void execute(GetConfigurationRequest request, GetConfigurationResponse response)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (GetConfigurationRequest request, GetConfigurationResponse response)
focal_class.return: void
focal_class.signature: void execute(GetConfigurationRequest request, GetConfigurationResponse response)
focal_method.body: @Override
  	public void execute(GetConfigurationRequest request, GetConfigurationResponse response) throws Exception {
  		if (null == request.getApplicationId()) {
  			throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "applicationId");
  		}
  
  		// the data is explicitly copied as this assures the security is considered when copying.
  		ClientApplicationInfo original = context.getBean(request.getApplicationId(), ClientApplicationInfo.class);
  		if (original == null) {
  			throw new GeomajasException(ExceptionCode.APPLICATION_NOT_FOUND, request.getApplicationId());
  		}
  		ClientApplicationInfo client = new ClientApplicationInfo();
  		client.setId(original.getId());
  		if (!(original.getUserData() instanceof ServerSideOnlyInfo)) {
  			client.setUserData(original.getUserData());
  		}
  		client.setWidgetInfo(mapConfigurationCommand.securityClone(original.getWidgetInfo()));
  		client.setScreenDpi(original.getScreenDpi());
  		List<ClientMapInfo> maps = new ArrayList<ClientMapInfo>();
  		client.setMaps(maps);
  		for (ClientMapInfo map : original.getMaps()) {
  			maps.add(mapConfigurationCommand.securityClone(map));
  		}
  		response.setApplication(client);
  	}
focal_method.class_method_signature: GetConfigurationCommand.execute(GetConfigurationRequest request, GetConfigurationResponse response)
focal_method.full_signature: @Override public void execute(GetConfigurationRequest request, GetConfigurationResponse response)
focal_method.identifier: execute
focal_method.invocations: getApplicationId getBean getApplicationId getApplicationId setId getId getUserData setUserData getUserData setWidgetInfo securityClone getWidgetInfo setScreenDpi getScreenDpi setMaps getMaps add securityClone setApplication
focal_method.modifiers: @Override public
focal_method.parameters: (GetConfigurationRequest request, GetConfigurationResponse response)
focal_method.return: void
focal_method.signature: void execute(GetConfigurationRequest request, GetConfigurationResponse response)