From 91eb4906638a81ea029f48c1b83b9fae7612f604 Mon Sep 17 00:00:00 2001
From: jakubs <jakubs>
Date: Wed, 21 Jan 2015 14:32:28 +0000
Subject: [PATCH] SSDM-1440 SSDM-1383 add more methods from ApplicationServer
 to v3-api.js

SVN: 33297
---
 .../html/openbis-v3-api.js                    | 51 +++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/js-test/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/openbis-v3-api.js b/js-test/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/openbis-v3-api.js
index 9eac8c5ec87..a270ad16fca 100644
--- a/js-test/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/openbis-v3-api.js
+++ b/js-test/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/openbis-v3-api.js
@@ -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
-- 
GitLab