2011-08-07 19:27:23 -03:00
|
|
|
mindplot.collaboration = {};
|
|
|
|
|
mindplot.collaboration.CollaborationManager = new Class({
|
2011-08-08 09:20:32 -03:00
|
|
|
initialize:function() {
|
2011-08-07 19:27:23 -03:00
|
|
|
this.collaborativeModelReady = false;
|
|
|
|
|
this.collaborativeModelReady = null;
|
|
|
|
|
this.wiseReady = false;
|
|
|
|
|
},
|
2011-08-08 09:20:32 -03:00
|
|
|
|
|
|
|
|
isCollaborationFrameworkAvailable:function() {
|
|
|
|
|
return (typeof goog != "undefined") && (typeof goog.collab != "undefined");
|
2011-08-07 19:27:23 -03:00
|
|
|
},
|
2011-08-08 09:20:32 -03:00
|
|
|
|
|
|
|
|
setCollaborativeFramework:function(framework) {
|
2011-08-07 19:27:23 -03:00
|
|
|
this._collaborativeFramework = framework;
|
|
|
|
|
this.collaborativeModelReady = true;
|
2011-08-08 09:20:32 -03:00
|
|
|
if (this.wiseReady) {
|
2011-08-07 19:27:23 -03:00
|
|
|
buildCollaborativeMindmapDesigner();
|
|
|
|
|
}
|
|
|
|
|
},
|
2011-08-08 09:20:32 -03:00
|
|
|
|
|
|
|
|
setWiseReady:function(ready) {
|
|
|
|
|
this.wiseReady = ready;
|
2011-08-07 19:27:23 -03:00
|
|
|
},
|
2011-08-08 09:20:32 -03:00
|
|
|
|
|
|
|
|
isCollaborativeFrameworkReady:function() {
|
2011-08-07 19:27:23 -03:00
|
|
|
return this.collaborativeModelReady;
|
|
|
|
|
},
|
2011-08-08 09:20:32 -03:00
|
|
|
|
|
|
|
|
buildWiseModel: function() {
|
2011-08-07 19:27:23 -03:00
|
|
|
return this._collaborativeFramework.buildWiseModel();
|
2011-08-07 21:13:20 -03:00
|
|
|
},
|
2011-08-08 09:20:32 -03:00
|
|
|
|
|
|
|
|
getCollaborativeFramework:function() {
|
2011-08-07 21:13:20 -03:00
|
|
|
return this._collaborativeFramework;
|
2011-08-07 19:27:23 -03:00
|
|
|
}
|
2011-08-08 09:20:32 -03:00
|
|
|
|
2011-08-07 19:27:23 -03:00
|
|
|
});
|
|
|
|
|
|
2011-08-08 09:20:32 -03:00
|
|
|
mindplot.collaboration.CollaborationManager.getInstance = function() {
|
|
|
|
|
if (!$defined(mindplot.collaboration.CollaborationManager.__collaborationManager)) {
|
|
|
|
|
mindplot.collaboration.CollaborationManager.__collaborationManager = new mindplot.collaboration.CollaborationManager();
|
|
|
|
|
}
|
|
|
|
|
return mindplot.collaboration.CollaborationManager.__collaborationManager;
|
|
|
|
|
}
|
|
|
|
|
mindplot.collaboration.CollaborationManager.getInstance();
|