public static void processShapeFileUpload(String fileId, LayerModelDto lmd, final DataCallback<ProcessShapeFileResponse> onFinish) { ProcessShapeFileRequest request = new ProcessShapeFileRequest(); request.setFileId(fileId); request.setLayerName(lmd.getClientLayerId()); GwtCommand command = new GwtCommand(ProcessShapeFileRequest.COMMAND); command.setCommandRequest(request); GwtCommandDispatcher.getInstance().execute(command, new AbstractCommandCallback<ProcessShapeFileResponse>() { @Override public void execute(ProcessShapeFileResponse commandResponse) { if (onFinish != null) { onFinish.execute(commandResponse); } } }); }
public LayerModel fromDto(LayerModelDto dto) throws GeomajasException { if (dto == null) { return null; } LayerModel lm = new LayerModel(); lm.setActive(dto.isActive()); lm.setClientLayerId(dto.getClientLayerId()); lm.setId(dto.getId()); lm.setName(dto.getName()); lm.setPublic(dto.isPublic()); lm.setLayerType(dto.getLayerType()); lm.setReadOnly(dto.isReadOnly()); lm.setDynamicLayerConfiguration(dto.getLayerConfiguration()); lm.getWidgetInfo().putAll(dto.getWidgetInfo()); return lm; }
public LayerModel fromDto(LayerModelDto dto) throws GeomajasException { if (dto == null) { return null; } LayerModel lm = new LayerModel(); lm.setActive(dto.isActive()); lm.setClientLayerId(dto.getClientLayerId()); lm.setId(dto.getId()); lm.setName(dto.getName()); lm.setPublic(dto.isPublic()); lm.setLayerType(dto.getLayerType()); lm.setReadOnly(dto.isReadOnly()); lm.setDynamicLayerConfiguration(dto.getLayerConfiguration()); lm.getWidgetInfo().putAll(dto.getWidgetInfo()); return lm; }