From 840b58a02ebe7583179a5ca86b38f57297b59db2 Mon Sep 17 00:00:00 2001 From: alaskowski <alaskowski@ethz.ch> Date: Fri, 12 May 2023 15:52:53 +0200 Subject: [PATCH] SSDM-13524: added setProperty methods to JS API --- .../src/v3/as/dto/dataset/DataSet.js | 90 +++++++++++++++++++ .../as/dto/dataset/create/DataSetCreation.js | 90 +++++++++++++++++++ .../v3/as/dto/dataset/update/DataSetUpdate.js | 90 +++++++++++++++++++ .../src/v3/as/dto/experiment/Experiment.js | 90 +++++++++++++++++++ .../experiment/create/ExperimentCreation.js | 90 +++++++++++++++++++ .../dto/experiment/update/ExperimentUpdate.js | 90 +++++++++++++++++++ .../src/v3/as/dto/material/Material.js | 90 +++++++++++++++++++ .../dto/material/create/MaterialCreation.js | 90 +++++++++++++++++++ .../as/dto/material/update/MaterialUpdate.js | 90 +++++++++++++++++++ .../src/v3/as/dto/sample/Sample.js | 90 +++++++++++++++++++ .../v3/as/dto/sample/create/SampleCreation.js | 90 +++++++++++++++++++ .../v3/as/dto/sample/update/SampleUpdate.js | 90 +++++++++++++++++++ 12 files changed, 1080 insertions(+) diff --git a/api-openbis-javascript/src/v3/as/dto/dataset/DataSet.js b/api-openbis-javascript/src/v3/as/dto/dataset/DataSet.js index 878a8272466..532f7d576d9 100644 --- a/api-openbis-javascript/src/v3/as/dto/dataset/DataSet.js +++ b/api-openbis-javascript/src/v3/as/dto/dataset/DataSet.js @@ -425,6 +425,96 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setSampleProperties = function(sampleProperties) { this.sampleProperties = sampleProperties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.getDataProducer = function() { return this.dataProducer; }; diff --git a/api-openbis-javascript/src/v3/as/dto/dataset/create/DataSetCreation.js b/api-openbis-javascript/src/v3/as/dto/dataset/create/DataSetCreation.js index 2f4e6fff88e..032716b1d8c 100644 --- a/api-openbis-javascript/src/v3/as/dto/dataset/create/DataSetCreation.js +++ b/api-openbis-javascript/src/v3/as/dto/dataset/create/DataSetCreation.js @@ -102,6 +102,96 @@ define([ "stjs" ], function(stjs) { prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.getContainerIds = function() { return this.containerIds; }; diff --git a/api-openbis-javascript/src/v3/as/dto/dataset/update/DataSetUpdate.js b/api-openbis-javascript/src/v3/as/dto/dataset/update/DataSetUpdate.js index d122f4555fa..bfd89ec147e 100644 --- a/api-openbis-javascript/src/v3/as/dto/dataset/update/DataSetUpdate.js +++ b/api-openbis-javascript/src/v3/as/dto/dataset/update/DataSetUpdate.js @@ -113,6 +113,96 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/ prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.getTagIds = function() { return this.tagIds; }; diff --git a/api-openbis-javascript/src/v3/as/dto/experiment/Experiment.js b/api-openbis-javascript/src/v3/as/dto/experiment/Experiment.js index 5f4b5c5e61b..92eddf528fd 100644 --- a/api-openbis-javascript/src/v3/as/dto/experiment/Experiment.js +++ b/api-openbis-javascript/src/v3/as/dto/experiment/Experiment.js @@ -244,6 +244,96 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setSampleProperties = function(sampleProperties) { this.sampleProperties = sampleProperties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.getTags = function() { if (this.getFetchOptions() && this.getFetchOptions().hasTags()) { return this.tags; diff --git a/api-openbis-javascript/src/v3/as/dto/experiment/create/ExperimentCreation.js b/api-openbis-javascript/src/v3/as/dto/experiment/create/ExperimentCreation.js index 13c20725733..d5af878a291 100644 --- a/api-openbis-javascript/src/v3/as/dto/experiment/create/ExperimentCreation.js +++ b/api-openbis-javascript/src/v3/as/dto/experiment/create/ExperimentCreation.js @@ -52,6 +52,96 @@ define([ "stjs" ], function(stjs) { prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.getAttachments = function() { return this.attachments; }; diff --git a/api-openbis-javascript/src/v3/as/dto/experiment/update/ExperimentUpdate.js b/api-openbis-javascript/src/v3/as/dto/experiment/update/ExperimentUpdate.js index 7154cda99c6..b34d7714a3a 100644 --- a/api-openbis-javascript/src/v3/as/dto/experiment/update/ExperimentUpdate.js +++ b/api-openbis-javascript/src/v3/as/dto/experiment/update/ExperimentUpdate.js @@ -62,6 +62,96 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/ prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.setProjectId = function(projectId) { this.projectId.setValue(projectId); }; diff --git a/api-openbis-javascript/src/v3/as/dto/material/Material.js b/api-openbis-javascript/src/v3/as/dto/material/Material.js index d710fa0e5f3..59d747cd0f0 100644 --- a/api-openbis-javascript/src/v3/as/dto/material/Material.js +++ b/api-openbis-javascript/src/v3/as/dto/material/Material.js @@ -99,6 +99,96 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.getMaterialProperty = function(propertyName) { var properties = this.getMaterialProperties(); return properties ? properties[propertyName] : null; diff --git a/api-openbis-javascript/src/v3/as/dto/material/create/MaterialCreation.js b/api-openbis-javascript/src/v3/as/dto/material/create/MaterialCreation.js index 39a11d5963c..f41bd5a2186 100644 --- a/api-openbis-javascript/src/v3/as/dto/material/create/MaterialCreation.js +++ b/api-openbis-javascript/src/v3/as/dto/material/create/MaterialCreation.js @@ -57,6 +57,96 @@ define([ "stjs" ], function(stjs) { prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; }, { typeId : "IEntityTypeId", creationId : "CreationId", diff --git a/api-openbis-javascript/src/v3/as/dto/material/update/MaterialUpdate.js b/api-openbis-javascript/src/v3/as/dto/material/update/MaterialUpdate.js index 004c1c4f9b7..48034e981a5 100644 --- a/api-openbis-javascript/src/v3/as/dto/material/update/MaterialUpdate.js +++ b/api-openbis-javascript/src/v3/as/dto/material/update/MaterialUpdate.js @@ -35,6 +35,96 @@ define([ "stjs", "as/dto/common/update/IdListUpdateValue" ], function(stjs, IdLi prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.getTagIds = function() { return this.tagIds; }; diff --git a/api-openbis-javascript/src/v3/as/dto/sample/Sample.js b/api-openbis-javascript/src/v3/as/dto/sample/Sample.js index 375f349f34e..99695a3495e 100644 --- a/api-openbis-javascript/src/v3/as/dto/sample/Sample.js +++ b/api-openbis-javascript/src/v3/as/dto/sample/Sample.js @@ -204,6 +204,96 @@ define([ "stjs", "util/Exceptions", "as/dto/common/Relationship" ], function(stj prototype.setSampleProperties = function(sampleProperties) { this.sampleProperties = sampleProperties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.getParents = function() { if (this.getFetchOptions() && this.getFetchOptions().hasParents()) { return this.parents; diff --git a/api-openbis-javascript/src/v3/as/dto/sample/create/SampleCreation.js b/api-openbis-javascript/src/v3/as/dto/sample/create/SampleCreation.js index fae67eca69e..61e717b3f8e 100644 --- a/api-openbis-javascript/src/v3/as/dto/sample/create/SampleCreation.js +++ b/api-openbis-javascript/src/v3/as/dto/sample/create/SampleCreation.js @@ -122,6 +122,96 @@ define([ "stjs", "as/dto/common/Relationship" ], function(stjs, Relationship) { prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.getCreationId = function() { return this.creationId; }; diff --git a/api-openbis-javascript/src/v3/as/dto/sample/update/SampleUpdate.js b/api-openbis-javascript/src/v3/as/dto/sample/update/SampleUpdate.js index f0ab14f75b3..216bd09c018 100644 --- a/api-openbis-javascript/src/v3/as/dto/sample/update/SampleUpdate.js +++ b/api-openbis-javascript/src/v3/as/dto/sample/update/SampleUpdate.js @@ -118,6 +118,96 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/ prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getIntegerProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getMultilineVarcharProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setMultilineVarcharProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getBooleanProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setBooleanProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getControlledVocabularyProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setControlledVocabularyProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getSampleProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setSampleProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getHyperlinkProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setHyperlinkProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getXmlProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setXmlProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getIntegerArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setIntegerArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getRealArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setRealArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getStringArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setStringArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getTimestampArrayProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setTimestampArrayProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; + prototype.getJsonProperty = function(propertyName) { + return this.getProperty(propertyName); + }; + prototype.setJsonProperty = function(propertyName, propertyValue) { + this.setProperty(propertyName, propertyValue); + }; prototype.getTagIds = function() { return this.tagIds; }; -- GitLab