From 88e2dc628d6c6d9699e6d295e94453e2c52a2e7c Mon Sep 17 00:00:00 2001
From: alaskowski <alaskowski@ethz.ch>
Date: Fri, 10 Nov 2023 14:40:12 +0100
Subject: [PATCH] BIS-713: Added simple js dtos

---
 .../dss/dto/imaging/ImagingDataSetConfig.js   |  91 ++++++++++++++
 .../dss/dto/imaging/ImagingDataSetControl.js  | 112 ++++++++++++++++++
 .../ImagingDataSetControlVisibility.js        |  51 ++++++++
 .../dss/dto/imaging/ImagingDataSetExport.js   |  58 +++++++++
 .../v3/dss/dto/imaging/ImagingDataSetImage.js |  37 ++++++
 .../dss/dto/imaging/ImagingDataSetPreview.js  |  58 +++++++++
 .../imaging/ImagingDataSetPropertyConfig.js   |  34 ++++++
 7 files changed, 441 insertions(+)
 create mode 100644 core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetConfig.js
 create mode 100644 core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetControl.js
 create mode 100644 core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetControlVisibility.js
 create mode 100644 core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetExport.js
 create mode 100644 core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetImage.js
 create mode 100644 core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetPreview.js
 create mode 100644 core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetPropertyConfig.js

diff --git a/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetConfig.js b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetConfig.js
new file mode 100644
index 00000000000..c44fe0fac0f
--- /dev/null
+++ b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetConfig.js
@@ -0,0 +1,91 @@
+define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
+	var ImagingDataSetConfig = function() {
+	};
+	stjs.extend(ImagingDataSetConfig, null, [], function(constructor, prototype) {
+		prototype['@type'] = 'dss.dto.imaging.ImagingDataSetConfig';
+		constructor.serialVersionUID = 1;
+		prototype.adaptor = null;
+		prototype.version = null;
+		prototype.speeds = null;
+		prototype.resolutions = null;
+		prototype.playable = null;
+		prototype.exports = null;
+		prototype.inputs = null;
+		prototype.metaData = null;
+
+		prototype.getAdaptor = function() {
+			return this.adaptor;
+		};
+		prototype.setAdaptor = function(adaptor) {
+			this.adaptor = adaptor;
+		};
+		prototype.getVersion = function() {
+            return this.version;
+        };
+        prototype.setVersion = function(version) {
+            this.version = version;
+        };
+        prototype.getSpeeds = function() {
+            return this.speeds;
+        };
+        prototype.setSpeeds = function(speeds) {
+            this.speeds = speeds;
+        };
+        prototype.getResolutions = function() {
+            return this.resolutions;
+        };
+        prototype.setResolutions = function(resolutions) {
+            this.resolutions = resolutions;
+        };
+        prototype.getPlayable = function() {
+            return this.playable;
+        };
+        prototype.setPlayable = function(playable) {
+            this.playable = playable;
+        };
+        prototype.getExports = function() {
+            return this.exports;
+        };
+        prototype.setExports = function(exports) {
+            this.exports = exports;
+        };
+        prototype.getInputs = function() {
+            return this.inputs;
+        };
+        prototype.setInputs = function(inputs) {
+            this.inputs = inputs;
+        };
+		prototype.getMetaData = function() {
+			return this.metaData;
+		};
+		prototype.setMetaData = function(metaData) {
+			this.metaData = metaData;
+		};
+		prototype.toString = function() {
+            return "ImagingDataSetConfig: " + this.adaptor;
+        };
+
+	}, {
+        resolutions : {
+            name : "List",
+            arguments : [ "String"]
+        },
+        speeds : {
+            name : "List",
+            arguments : [ "Integer"]
+        },
+        exports : {
+            name : "List",
+            arguments : [ "ImagingDataSetControl"]
+        },
+        inputs : {
+            name : "List",
+            arguments : [ "ImagingDataSetControl"]
+        },
+        metaData : {
+            name : "Map",
+            arguments : [ "String", "String" ]
+        }
+	});
+	return ImagingDataSetConfig;
+})
\ No newline at end of file
diff --git a/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetControl.js b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetControl.js
new file mode 100644
index 00000000000..30c9b6c9a38
--- /dev/null
+++ b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetControl.js
@@ -0,0 +1,112 @@
+define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
+	var ImagingDataSetControl = function() {
+	};
+	stjs.extend(ImagingDataSetControl, null, [], function(constructor, prototype) {
+		prototype['@type'] = 'dss.dto.imaging.ImagingDataSetControl';
+		constructor.serialVersionUID = 1;
+		prototype.label = null;
+		prototype.section = null;
+		prototype.type = null;
+		prototype.values = null;
+		prototype.unit = null;
+		prototype.range = null;
+		prototype.multiselect = null;
+		prototype.playable = null;
+		prototype.speeds = null;
+		prototype.visibility = null;
+		prototype.metaData = null;
+
+		prototype.getLabel = function() {
+			return this.label;
+		};
+		prototype.setLabel = function(label) {
+			this.label = label;
+		};
+		prototype.getSection = function() {
+            return this.section;
+        };
+        prototype.setSection = function(section) {
+            this.section = section;
+        };
+		prototype.getType = function() {
+            return this.type;
+        };
+        prototype.setType = function(type) {
+            this.type = type;
+        };
+        prototype.getValues = function() {
+            return this.values;
+        };
+        prototype.setValues = function(values) {
+            this.values = values;
+        };
+        prototype.getUnit = function() {
+            return this.unit;
+        };
+        prototype.setUnit = function(unit) {
+            this.unit = unit;
+        };
+        prototype.getRange = function() {
+            return this.range;
+        };
+        prototype.setRange = function(range) {
+            this.range = range;
+        };
+        prototype.getMultiselect = function() {
+            return this.multiselect;
+        };
+        prototype.setMultiselect = function(multiselect) {
+            this.multiselect = multiselect;
+        };
+        prototype.getPlayable = function() {
+            return this.playable;
+        };
+        prototype.setPlayable = function(playable) {
+            this.playable = playable;
+        };
+        prototype.getSpeeds = function() {
+            return this.speeds;
+        };
+        prototype.setSpeeds = function(speeds) {
+            this.speeds = speeds;
+        };
+        prototype.getVisibility = function() {
+            return this.visibility;
+        };
+        prototype.setVisibility = function(visibility) {
+            this.visibility = visibility;
+        };
+		prototype.getMetaData = function() {
+			return this.metaData;
+		};
+		prototype.setMetaData = function(metaData) {
+			this.metaData = metaData;
+		};
+		prototype.toString = function() {
+            return "ImagingDataSetControl: " + this.label;
+        };
+
+	}, {
+		values : {
+            name : "List",
+            arguments : [ "String"]
+        },
+        visibility: {
+            name : "List",
+            arguments : [ "ImagingDataSetControlVisibility"]
+        }
+        range : {
+            name : "List",
+            arguments : [ "String"]
+        },
+        speeds : {
+            name : "List",
+            arguments : [ "Integer"]
+        },
+        metaData : {
+            name : "Map",
+            arguments : [ "String", "String" ]
+        }
+	});
+	return ImagingDataSetControl;
+})
\ No newline at end of file
diff --git a/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetControlVisibility.js b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetControlVisibility.js
new file mode 100644
index 00000000000..5a0b2fc7711
--- /dev/null
+++ b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetControlVisibility.js
@@ -0,0 +1,51 @@
+define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
+	var ImagingDataSetControlVisibility = function() {
+	};
+	stjs.extend(ImagingDataSetControlVisibility, null, [], function(constructor, prototype) {
+		prototype['@type'] = 'dss.dto.imaging.ImagingDataSetControlVisibility';
+		constructor.serialVersionUID = 1;
+		prototype.label = null;
+		prototype.values = null;
+		prototype.range = null;
+		prototype.unit = null;
+
+		prototype.getLabel = function() {
+			return this.label;
+		};
+		prototype.setLabel = function(label) {
+			this.label = label;
+		};
+        prototype.getValues = function() {
+            return this.values;
+        };
+        prototype.setValues = function(values) {
+            this.values = values;
+        };
+        prototype.getUnit = function() {
+            return this.unit;
+        };
+        prototype.setUnit = function(unit) {
+            this.unit = unit;
+        };
+        prototype.getRange = function() {
+            return this.range;
+        };
+        prototype.setRange = function(range) {
+            this.range = range;
+        };
+		prototype.toString = function() {
+            return "ImagingDataSetControlVisibility: " + this.label;
+        };
+
+	}, {
+		values : {
+            name : "List",
+            arguments : [ "String"]
+        },
+        range : {
+            name : "List",
+            arguments : [ "String"]
+        }
+	});
+	return ImagingDataSetControlVisibility;
+})
\ No newline at end of file
diff --git a/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetExport.js b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetExport.js
new file mode 100644
index 00000000000..a478e50fcc6
--- /dev/null
+++ b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetExport.js
@@ -0,0 +1,58 @@
+define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
+	var ImagingDataSetExport = function() {
+	};
+	stjs.extend(ImagingDataSetExport, null, [], function(constructor, prototype) {
+		prototype['@type'] = 'dss.dto.imaging.ImagingDataSetExport';
+		constructor.serialVersionUID = 1;
+		prototype.config = null;
+		prototype.format = null;
+		prototype.bytes = null;
+		prototype.show = null;
+		prototype.metaData = null;
+
+		prototype.getConfig = function() {
+			return this.config;
+		};
+		prototype.setConfig = function(config) {
+			this.config = config;
+		};
+		prototype.getFormat = function() {
+			return this.format;
+		};
+		prototype.setFormat = function(format) {
+			this.format = format;
+		};
+		prototype.getBytes = function() {
+			return this.bytes;
+		};
+		prototype.setBytes = function(bytes) {
+			this.bytes = bytes;
+		};
+		prototype.isShow = function() {
+			return this.show;
+		};
+		prototype.setShow = function(show) {
+			this.show = show;
+		};
+		prototype.getMetaData = function() {
+			return this.metaData;
+		};
+		prototype.setMetaData = function(metaData) {
+			this.metaData = metaData;
+		};
+		prototype.toString = function() {
+            return "ImagingDataSetExport: " + this.config;
+        };
+
+	}, {
+		config : {
+            name : "Map",
+            arguments : [ "String", "Serializable" ]
+        },
+        metaData : {
+            name : "Map",
+            arguments : [ "String", "String" ]
+        }
+	});
+	return ImagingDataSetExport;
+})
\ No newline at end of file
diff --git a/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetImage.js b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetImage.js
new file mode 100644
index 00000000000..cabcef4beca
--- /dev/null
+++ b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetImage.js
@@ -0,0 +1,37 @@
+define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
+	var ImagingDataSetImage = function() {
+	};
+	stjs.extend(ImagingDataSetImage, null, [], function(constructor, prototype) {
+		prototype['@type'] = 'dss.dto.imaging.ImagingDataSetImage';
+		constructor.serialVersionUID = 1;
+		prototype.previews = null;
+		prototype.metaData = null;
+
+		prototype.getPreviews = function() {
+			return this.previews;
+		};
+		prototype.setPreviews = function(previews) {
+			this.previews = previews;
+		};
+		prototype.getMetaData = function() {
+			return this.metaData;
+		};
+		prototype.setMetaData = function(metaData) {
+			this.metaData = metaData;
+		};
+		prototype.toString = function() {
+            return "ImagingDataSetImage: " + this.previews;
+        };
+
+	}, {
+		previews : {
+            name : "List",
+            arguments : [ "ImagingDataSetPreview"]
+        },
+        metaData : {
+            name : "Map",
+            arguments : [ "String", "String" ]
+        }
+	});
+	return ImagingDataSetImage;
+})
\ No newline at end of file
diff --git a/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetPreview.js b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetPreview.js
new file mode 100644
index 00000000000..f119f0c2e32
--- /dev/null
+++ b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetPreview.js
@@ -0,0 +1,58 @@
+define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
+	var ImagingDataSetPreview = function() {
+	};
+	stjs.extend(ImagingDataSetPreview, null, [], function(constructor, prototype) {
+		prototype['@type'] = 'dss.dto.imaging.ImagingDataSetPreview';
+		constructor.serialVersionUID = 1;
+		prototype.config = null;
+		prototype.format = null;
+		prototype.bytes = null;
+		prototype.show = null;
+		prototype.metaData = null;
+
+		prototype.getConfig = function() {
+			return this.config;
+		};
+		prototype.setConfig = function(config) {
+			this.config = config;
+		};
+		prototype.getFormat = function() {
+			return this.format;
+		};
+		prototype.setFormat = function(format) {
+			this.format = format;
+		};
+		prototype.getBytes = function() {
+			return this.bytes;
+		};
+		prototype.setBytes = function(bytes) {
+			this.bytes = bytes;
+		};
+		prototype.isShow = function() {
+			return this.show;
+		};
+		prototype.setShow = function(show) {
+			this.show = show;
+		};
+		prototype.getMetaData = function() {
+			return this.metaData;
+		};
+		prototype.setMetaData = function(metaData) {
+			this.metaData = metaData;
+		};
+		prototype.toString = function() {
+            return "ImagingDataSetPreview: " + this.config;
+        };
+
+	}, {
+		config : {
+            name : "Map",
+            arguments : [ "String", "Serializable" ]
+        },
+        metaData : {
+            name : "Map",
+            arguments : [ "String", "String" ]
+        }
+	});
+	return ImagingDataSetPreview;
+})
\ No newline at end of file
diff --git a/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetPropertyConfig.js b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetPropertyConfig.js
new file mode 100644
index 00000000000..8324af94872
--- /dev/null
+++ b/core-plugin-openbis/dist/core-plugins/imaging/1/dss/custom-services/imaging/lib/premise-sources/source/js/src/v3/dss/dto/imaging/ImagingDataSetPropertyConfig.js
@@ -0,0 +1,34 @@
+define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
+	var ImagingDataSetPropertyConfig = function() {
+	};
+	stjs.extend(ImagingDataSetPropertyConfig, null, [], function(constructor, prototype) {
+		prototype['@type'] = 'dss.dto.imaging.ImagingDataSetPropertyConfig';
+		constructor.serialVersionUID = 1;
+		prototype.config = null;
+		prototype.images = null;
+
+		prototype.getConfig = function() {
+			return this.config;
+		};
+		prototype.setConfig = function(config) {
+			this.config = config;
+		};
+		prototype.getImages = function() {
+            return this.images;
+        };
+        prototype.setSection = function(images) {
+            this.images = images;
+        };
+
+		prototype.toString = function() {
+            return "ImagingDataSetPropertyConfig: " + this.label;
+        };
+
+	}, {
+		images : {
+            name : "List",
+            arguments : [ "ImagingDataSetImage"]
+        }
+	});
+	return ImagingDataSetControl;
+})
\ No newline at end of file
-- 
GitLab