From 3e60f6f142030acf7c5b59c3dcda48a2bdd463c7 Mon Sep 17 00:00:00 2001
From: vkovtun <viktor.kovtun@id.ethz.ch>
Date: Wed, 8 Feb 2023 11:23:52 +0100
Subject: [PATCH] SSDM-13368 Fixing JS vs Java API test.

---
 .../as/dto/common/search/AbstractEntitySearchCriteria.js  | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/common/search/AbstractEntitySearchCriteria.js b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/common/search/AbstractEntitySearchCriteria.js
index 2f0ae6b899f..bf35e19d9a3 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/common/search/AbstractEntitySearchCriteria.js
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/common/search/AbstractEntitySearchCriteria.js
@@ -62,6 +62,14 @@ define([ "require", "stjs", "as/dto/common/search/AbstractObjectSearchCriteria",
 			var BooleanPropertySearchCriteria = require("as/dto/common/search/BooleanPropertySearchCriteria");
 			return this.addCriteria(new BooleanPropertySearchCriteria(propertyName));
 		};
+		prototype.withSampleProperty = function(propertyName) {
+			var SamplePropertySearchCriteria = require("as/dto/common/search/SamplePropertySearchCriteria");
+			return this.addCriteria(new SamplePropertySearchCriteria(propertyName));
+		};
+		prototype.withVocabularyProperty = function(propertyName) {
+			var ControlledVocabularyPropertySearchCriteria = require("as/dto/common/search/ControlledVocabularyPropertySearchCriteria");
+			return this.addCriteria(new ControlledVocabularyPropertySearchCriteria(propertyName));
+		};
 		prototype.withTag = function() {
 			var TagSearchCriteria = require("as/dto/tag/search/TagSearchCriteria");
 			return this.addCriteria(new TagSearchCriteria());
-- 
GitLab