diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/update/SampleUpdate.js b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/update/SampleUpdate.js index 990ea55079770a27c911cb004ea2d7c56233bd8a..7a06aa8e651b5a36cada375898d24f4c123aba72 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/update/SampleUpdate.js +++ b/openbis/source/java/ch/systemsx/cisd/openbis/public/resources/api/v3/as/dto/sample/update/SampleUpdate.js @@ -5,6 +5,7 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/ IdListUpdateValue, AttachmentListUpdateValue) { var SampleUpdate = function() { this.properties = {}; + this.sampleProperties = {}; this.experimentId = new FieldUpdateValue(); this.projectId = new FieldUpdateValue(); this.spaceId = new FieldUpdateValue(); @@ -114,6 +115,12 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/ prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.setSampleProperty = function(propertyName, sampleId) { + this.sampleProperties[propertyName] = sampleId; + }; + prototype.getSampleProperties = function() { + return this.sampleProperties; + }; prototype.getTagIds = function() { return this.tagIds; };