/** * @author pkupczyk */ define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/IdListUpdateValue", "as/dto/attachment/update/AttachmentListUpdateValue", "as/dto/common/update/ListUpdateMapValues" ], function(stjs, FieldUpdateValue, IdListUpdateValue, AttachmentListUpdateValue, ListUpdateMapValues) { var ExperimentUpdate = function() { this.properties = {}; this.projectId = new FieldUpdateValue(); this.tagIds = new IdListUpdateValue(); this.attachments = new AttachmentListUpdateValue(); this.metaData = new ListUpdateMapValues(); }; stjs.extend(ExperimentUpdate, null, [], function(constructor, prototype) { prototype['@type'] = 'as.dto.experiment.update.ExperimentUpdate'; constructor.serialVersionUID = 1; prototype.experimentId = null; prototype.freeze = null; prototype.freezeForDataSets = null; prototype.freezeForSamples = null; prototype.properties = null; prototype.projectId = null; prototype.tagIds = null; prototype.attachments = null; prototype.metaData = null; prototype.getObjectId = function() { return this.getExperimentId(); }; prototype.getExperimentId = function() { return this.experimentId; }; prototype.setExperimentId = function(experimentId) { this.experimentId = experimentId; }; prototype.shouldBeFrozen = function() { return this.freeze; } prototype.freeze = function() { this.freeze = true; } prototype.shouldBeFrozenForDataSets = function() { return this.freezeForDataSets; } prototype.freezeForDataSets = function() { this.freeze = true; this.freezeForDataSets = true; } prototype.shouldBeFrozenForSamples = function() { return this.freezeForSamples; } prototype.freezeForSamples = function() { this.freeze = true; this.freezeForSamples = true; } prototype.getProperty = function(propertyName) { return this.properties[propertyName]; }; prototype.setProperty = function(propertyName, propertyValue) { this.properties[propertyName] = propertyValue; }; prototype.getProperties = function() { return this.properties; }; 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); }; prototype.getProjectId = function() { return this.projectId; }; prototype.getTagIds = function() { return this.tagIds; }; prototype.getAttachments = function() { return this.attachments; }; prototype.setAttachmentsActions = function(actions) { this.attachments.setActions(actions); }; prototype.getMetaData = function() { return this.metaData; }; prototype.setMetaDataActions = function(actions) { this.metaData.setActions(actions); }; }, { experimentId : "IExperimentId", properties : { name : "Map", arguments : [ "String", "Serializable" ] }, projectId : { name : "FieldUpdateValue", arguments : [ "IProjectId" ] }, tagIds : { name : "IdListUpdateValue", arguments : [ "ITagId" ] }, attachments : "AttachmentListUpdateValue", metaData : "ListUpdateMapValues" }); return ExperimentUpdate; })