Skip to content
Snippets Groups Projects
Commit 23fd0fb0 authored by felmer's avatar felmer
Browse files

SSDM-2369: Javascript part implemented .

SVN: 38760
parent 6ded1eae
No related branches found
No related tags found
No related merge requests found
define([ "stjs" ], function(stjs) {
var WebAppSettings = function() {
};
stjs.extend(WebAppSettings, null, [], function(constructor, prototype) {
prototype['@type'] = 'as.dto.webapp.WebAppSettings';
constructor.serialVersionUID = 1;
prototype.webAppId = null;
prototype.settings = {};
prototype.getWebAppId = function() {
return this.webAppId;
};
prototype.setWebAppId = function(webAppId) {
this.webAppId = webAppId;
};
prototype.getSettings = function() {
return this.settings;
};
prototype.setSettings = function(settings) {
this.settings = settings;
};
}, {
settings : {
name : "Map",
arguments : [ null, null ]
},
});
return WebAppSettings;
})
\ No newline at end of file
......@@ -1188,6 +1188,28 @@ define([ 'jquery', 'util/Json', 'as/dto/datastore/search/DataStoreSearchCriteria
});
}
this.setWebAppSettings = function(webAppSettings) {
var thisFacade = this;
return thisFacade._private.ajaxRequest({
url : openbisUrl,
data : {
"method" : "setWebAppSettings",
"params" : [ thisFacade._private.sessionToken, webAppSettings]
}
});
}
this.getWebAppSettings = function(webAppId) {
var thisFacade = this;
return thisFacade._private.ajaxRequest({
url : openbisUrl,
data : {
"method" : "getWebAppSettings",
"params" : [ thisFacade._private.sessionToken, webAppId]
}
});
}
this.createPermIdStrings = function(amount) {
var thisFacade = this;
return thisFacade._private.ajaxRequest({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment