removing VML support from client side

This commit is contained in:
Pablo Luna
2011-03-16 11:40:48 +00:00
parent 1b04d1effc
commit 7acfd763fa
41 changed files with 27 additions and 1914 deletions

View File

@@ -49,27 +49,21 @@ public class MapEditorService
return response;
}
public ResponseMessage saveMap(final int mapId, final String nativeXml, final String chartType,
public ResponseMessage saveMap(final int mapId, final String nativeXml,
String chartXml, final String editorProperties,boolean saveHistory)
throws IOException, WiseMappingException {
final MindmapService serservice = getMindmapService();
final MindMap mindMap = serservice.getMindmapById(mapId);
final User user = this.getUser();
MindMapNative nativeBrowser = mindMap.getNativeBrowser();
if (nativeBrowser == null) {
nativeBrowser = new MindMapNative();
}
if ("SVG".equals(chartType)) {
nativeBrowser.setSvgXml(chartXml);
nativeBrowser.setVmlXml((byte[]) null);
} else {
nativeBrowser.setVmlXml(chartXml);
nativeBrowser.setSvgXml((byte[]) null);
}
nativeBrowser.setSvgXml(chartXml);
nativeBrowser.setVmlXml((byte[]) null);
mindMap.setNativeBrowser(nativeBrowser);
mindMap.setProperties(editorProperties);