Skip to content
Snippets Groups Projects
Commit 116acb31 authored by felmer's avatar felmer
Browse files

SSDM-4724: DataSetCreation.js and LinkedDataCreation.js added. LinkedData.js...

SSDM-4724: DataSetCreation.js and LinkedDataCreation.js added. LinkedData.js fixed and createDataSets added to facade

SVN: 38011
parent 6c4606a6
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,10 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { ...@@ -44,7 +44,10 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
}, { }, {
fetchOptions : "LinkedDataFetchOptions", fetchOptions : "LinkedDataFetchOptions",
externalDms : "ExternalDms", externalDms : "ExternalDms",
contentCopies : "ContentCopy" contentCopies : {
name : "List",
arguments : [ "ContentCopy" ]
}
}); });
return LinkedData; return LinkedData;
}) })
\ No newline at end of file
define([ "stjs" ], function(stjs) {
var DataSetCreation = function() {
};
stjs.extend(DataSetCreation, null, [], function(constructor, prototype) {
prototype['@type'] = 'as.dto.dataset.create.DataSetCreation';
constructor.serialVersionUID = 1;
prototype.typeId = null;
prototype.experimentId = null;
prototype.sampleId = null;
prototype.dataStoreId = null;
prototype.code = null;
prototype.measured = null;
prototype.dataProducer = null;
prototype.dataProductionDate = null;
prototype.linkedData = null;
prototype.tagIds = null;
prototype.properties = null;
prototype.containerIds = null;
prototype.componentIds = null;
prototype.parentIds = null;
prototype.childIds = null;
prototype.creationId = null;
prototype.autoGeneratedCode = null;
prototype.getTypeId = function() {
return this.typeId;
};
prototype.setTypeId = function(typeId) {
this.typeId = typeId;
};
prototype.getExperimentId = function() {
return this.experimentId;
};
prototype.setExperimentId = function(experimentId) {
this.experimentId = experimentId;
};
prototype.getSampleId = function() {
return this.sampleId;
};
prototype.setSampleId = function(sampleId) {
this.sampleId = sampleId;
};
prototype.getDataStoreId = function() {
return this.dataStoreId;
};
prototype.setDataStoreId = function(dataStoreId) {
this.dataStoreId = dataStoreId;
};
prototype.getCode = function() {
return this.code;
};
prototype.setCode = function(code) {
this.code = code;
};
prototype.isMeasured = function() {
return this.measured;
};
prototype.setMeasured = function(measured) {
this.measured = measured;
};
prototype.getDataProducer = function() {
return this.dataProducer;
};
prototype.setDataProducer = function(dataProducer) {
this.dataProducer = dataProducer;
};
prototype.getDataProductionDate = function() {
return this.dataProductionDate;
};
prototype.setDataProductionDate = function(dataProductionDate) {
this.dataProductionDate = dataProductionDate;
};
prototype.getLinkedData = function() {
return this.linkedData;
};
prototype.setLinkedData = function(linkedData) {
this.linkedData = linkedData;
};
prototype.getTagIds = function() {
return this.tagIds;
};
prototype.setTagIds = function(tagIds) {
this.tagIds = tagIds;
};
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.getContainerIds = function() {
return this.containerIds;
};
prototype.setContainerIds = function(containerIds) {
this.containerIds = containerIds;
};
prototype.getComponentIds = function() {
return this.componentIds;
};
prototype.setComponentIds = function(componentIds) {
this.componentIds = componentIds;
};
prototype.getChildIds = function() {
return this.childIds;
};
prototype.setChildIds = function(childIds) {
this.childIds = childIds;
};
prototype.getParentIds = function() {
return this.parentIds;
};
prototype.setParentIds = function(parentIds) {
this.parentIds = parentIds;
};
prototype.getCreationId = function() {
return this.creationId;
};
prototype.setCreationId = function(creationId) {
this.creationId = creationId;
};
prototype.isAutoGeneratedCode = function() {
return this.autoGeneratedCode;
}
prototype.setAutoGeneratedCode = function(autoGeneratedCode) {
this.autoGeneratedCode = autoGeneratedCode;
};
}, {
typeId : "IEntityTypeId",
experimentId : "IExperimentId",
sampleId : "ISampleId",
dataStoreId : "IDataStoreId",
dataProductionDate : "Date",
linkedData : "LinkedDataCreation",
tagIds : {
name : "List",
arguments : [ "Object" ]
},
properties : {
name : "Map",
arguments : [ null, null ]
},
containerIds : {
name : "List",
arguments : [ "Object" ]
},
componentIds : {
name : "List",
arguments : [ "Object" ]
},
parentIds : {
name : "List",
arguments : [ "Object" ]
},
childIds : {
name : "List",
arguments : [ "Object" ]
},
creationId : "CreationId"
});
return DataSetCreation;
})
\ No newline at end of file
define([ "stjs" ], function(stjs) {
var LinkedDataCreation = function() {
};
stjs.extend(LinkedDataCreation, null, [], function(constructor, prototype) {
prototype['@type'] = 'as.dto.dataset.create.LinkedDataCreation';
constructor.serialVersionUID = 1;
prototype.externalCode = null;
prototype.externalDmsId = null;
prototype.contentCopies = null;
prototype.getExternalCode = function() {
return this.externalCode;
};
prototype.setExternalCode = function(externalCode) {
this.externalCode = externalCode;
};
prototype.getExternalDmsId = function() {
return this.externalDmsId;
};
prototype.setExternalDmsId = function(externalDmsId) {
this.externalDmsId = externalDmsId;
};
prototype.getContentCopies = function() {
return this.contentCopies;
};
prototype.setContentCopies = function(contentCopies) {
this.contentCopies = contentCopies;
};
}, {
externalDmsId : "IExternalDmsId",
contentCopies : {
name : "List",
arguments : [ "Object" ]
}
});
return LinkedDataCreation;
})
...@@ -358,6 +358,21 @@ define([ 'jquery', 'util/Json', 'as/dto/datastore/search/DataStoreSearchCriteria ...@@ -358,6 +358,21 @@ define([ 'jquery', 'util/Json', 'as/dto/datastore/search/DataStoreSearchCriteria
}); });
} }
this.createDataSets = function(creations) {
var thisFacade = this;
return thisFacade._private.ajaxRequest({
url : openbisUrl,
data : {
"method" : "createDataSets",
"params" : [ thisFacade._private.sessionToken, creations ]
},
returnType : {
name : "List",
arguments : [ "DataSetPermId" ]
}
});
}
this.createMaterials = function(creations) { this.createMaterials = function(creations) {
var thisFacade = this; var thisFacade = this;
return thisFacade._private.ajaxRequest({ return thisFacade._private.ajaxRequest({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment