Skip to content
Snippets Groups Projects
Commit 91eb4906 authored by jakubs's avatar jakubs
Browse files

SSDM-1440 SSDM-1383 add more methods from ApplicationServer to v3-api.js

SVN: 33297
parent d5e5152b
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,13 @@ define(['jquery'], function($) {
return dfd.promise();
}
this.performOperations = function(operations) {
return _private.ajaxRequest({
"method" : "performOperations",
"params" : [_private.sessionToken, operations]
});
}
this.mapSamples = function(sampleIds, sampleFetchOptions) {
return _private.ajaxRequest({
url : openbisUrl,
......@@ -139,6 +146,16 @@ define(['jquery'], function($) {
});
}
this.searchDataSets = function(dataSetSearchCriterion, dataSetFetchOptions) {
return _private.ajaxRequest({
url : openbisUrl,
data : {
"method" : "searchDataSets",
"params" : [_private.sessionToken, dataSetSearchCriterion, dataSetFetchOptions]
}
});
}
this.createExperiments = function(experimentCreations) {
return _private.ajaxRequest({
url : openbisUrl,
......@@ -179,6 +196,40 @@ define(['jquery'], function($) {
});
}
this.deleteExperiments = function(experimentIds, deletionOptions) {
return _private.ajaxRequest({
"method" : "deleteExperiments",
"params" : [_private.sessionToken, experimentIds, deletionOptions]
});
}
this.deleteSamples = function(sampleIds, deletionOptions) {
return _private.ajaxRequest({
"method" : "deleteSamples",
"params" : [_private.sessionToken, sampleIds, deletionOptions]
});
}
this.listDeletions = function(fetchOptions) {
return _private.ajaxRequest({
"method" : "listDeletions",
"params" : [_private.sessionToken, fetchOptions]
});
}
this.revertDeletions = function(deletionIds) {
return _private.ajaxRequest({
"method" : "revertDeletions",
"params" : [_private.sessionToken, deletionIds]
});
}
this.confirmDeletions = function(deletionIds) {
return _private.ajaxRequest({
"method" : "confirmDeletions",
"params" : [_private.sessionToken, deletionIds]
});
}
}
});
\ No newline at end of file
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