1// Copyright (c) 2006-2020, JGraph Ltd 2/** 3 */ 4RemoteLibrary = function(ui, data, libObj) 5{ 6 RemoteFile.call(this, ui, data, libObj.title); 7 this.libObj = libObj; 8}; 9 10//Extends mxEventSource 11mxUtils.extend(RemoteLibrary, LocalFile); 12 13/** 14 * 15 */ 16RemoteLibrary.prototype.getHash = function() 17{ 18 return 'R' + encodeURIComponent(JSON.stringify([this.libObj.id, this.libObj.title, this.libObj.downloadUrl])); //Using an array to get the same order in all platforms 19}; 20 21/** 22 * 23 */ 24RemoteLibrary.prototype.isEditable = function() 25{ 26 return false; 27}; 28/** 29 * 30 */ 31RemoteLibrary.prototype.isRenamable = function() 32{ 33 return false; 34}; 35 36/** 37 * 38 */ 39RemoteLibrary.prototype.isAutosave = function() 40{ 41 return false; 42}; 43 44/** 45 * 46 */ 47RemoteLibrary.prototype.save = function(revision, success, error) 48{ 49 // Do nothing 50}; 51 52/** 53 * 54 */ 55RemoteLibrary.prototype.saveAs = function(title, success, error) 56{ 57 // Do nothing 58}; 59 60/** 61 * 62 */ 63RemoteLibrary.prototype.updateFileData = function() 64{ 65 // Do nothing 66}; 67 68/** 69 */ 70RemoteLibrary.prototype.open = function() 71{ 72 // Do nothing - this should never be called 73}; 74