diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js index c4538be45590368fb614973f6a60c10972e4db4c..7f3dc6d4e853dc43566211ac2a9f25b30b14a06a 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js @@ -664,7 +664,7 @@ function ServerFacade(openbisServer) { var json = result.result.rows[0][2].value; var jsonParsed = JSON.parse(json); require(["util/Json"], function(Json){ - Json.fromJson(jsonParsed).done(function(data) { + Json.fromJson("SearchResult", jsonParsed).done(function(data) { var v3Samples = data.objects; var samplesAsV1 = localReference.getV3SamplesAsV1(v3Samples); callbackFunction(samplesAsV1); @@ -685,6 +685,7 @@ function ServerFacade(openbisServer) { //Attributes var samplePermId = fechOptions["samplePermId"]; + var withExperimentWithProjectPermId = fechOptions["withExperimentWithProjectPermId"]; var sampleIdentifier = fechOptions["sampleIdentifier"]; var sampleCode = fechOptions["sampleCode"]; var sampleTypeCode = fechOptions["sampleTypeCode"]; @@ -704,7 +705,6 @@ function ServerFacade(openbisServer) { var withChildren = fechOptions["withChildren"]; var withAncestors = fechOptions["withAncestors"]; var withDescendants = fechOptions["withDescendants"]; - var withExperimentWithProjectPermId = fechOptions["withExperimentWithProjectPermId"]; var matchClauses = []; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/attachment/Attachment.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/Attachment.js similarity index 98% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/attachment/Attachment.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/Attachment.js index 38a5e4a74a95caeb094f76b8749917bb5518ae08..e17b870c439dc8c66b907920d1049a6885a65c7d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/attachment/Attachment.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/Attachment.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var Attachment = function() { }; stjs.extend(Attachment, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.attachment.Attachment'; + prototype['@type'] = 'as.dto.attachment.Attachment'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.fileName = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/attachment/AttachmentCreation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/create/AttachmentCreation.js similarity index 93% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/attachment/AttachmentCreation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/create/AttachmentCreation.js index 753d0eb7a0b990d23885706401b4468401cd84c1..0562ae158eff08c0e4294edb3286203dbbc43574 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/attachment/AttachmentCreation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/create/AttachmentCreation.js @@ -5,7 +5,7 @@ define([ "stjs" ], function(stjs) { var AttachmentCreation = function() { }; stjs.extend(AttachmentCreation, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.attachment.AttachmentCreation'; + prototype['@type'] = 'as.dto.attachment.create.AttachmentCreation'; constructor.serialVersionUID = 1; prototype.fileName = null; prototype.title = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/fetchoptions/AttachmentFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/fetchoptions/AttachmentFetchOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..580cf66d8bf6424a610fb74fb3fe30f3701d3da0 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/fetchoptions/AttachmentFetchOptions.js @@ -0,0 +1,71 @@ +/** + * Class automatically generated with + * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} + */ +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/person/fetchoptions/PersonFetchOptions", "as/dto/common/fetchoptions/EmptyFetchOptions", + "as/dto/attachment/fetchoptions/AttachmentSortOptions" ], function(require, stjs, FetchOptions) { + var AttachmentFetchOptions = function() { + }; + stjs.extend(AttachmentFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.attachment.fetchoptions.AttachmentFetchOptions'; + constructor.serialVersionUID = 1; + prototype.registrator = null; + prototype.previousVersion = null; + prototype.content = null; + prototype.sort = null; + prototype.withRegistrator = function() { + if (this.registrator == null) { + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); + this.registrator = new PersonFetchOptions(); + } + return this.registrator; + }; + prototype.withRegistratorUsing = function(fetchOptions) { + return this.registrator = fetchOptions; + }; + prototype.hasRegistrator = function() { + return this.registrator != null; + }; + prototype.withPreviousVersion = function() { + if (this.previousVersion == null) { + this.previousVersion = new AttachmentFetchOptions(); + } + return this.previousVersion; + }; + prototype.withPreviousVersionUsing = function(fetchOptions) { + return this.previousVersion = fetchOptions; + }; + prototype.hasPreviousVersion = function() { + return this.previousVersion != null; + }; + prototype.withContent = function() { + if (this.content == null) { + var EmptyFetchOptions = require("as/dto/common/fetchoptions/EmptyFetchOptions"); + this.content = new EmptyFetchOptions(); + } + return this.content; + }; + prototype.withContentUsing = function(fetchOptions) { + return this.content = fetchOptions; + }; + prototype.hasContent = function() { + return this.content != null; + }; + prototype.sortBy = function() { + if (this.sort == null) { + var AttachmentSortOptions = require("as/dto/attachment/fetchoptions/AttachmentSortOptions"); + this.sort = new AttachmentSortOptions(); + } + return this.sort; + }; + prototype.getSortBy = function() { + return this.sort; + }; + }, { + registrator : "PersonFetchOptions", + previousVersion : "AttachmentFetchOptions", + content : "EmptyFetchOptions", + sort : "AttachmentSortOptions" + }); + return AttachmentFetchOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/attachment/AttachmentSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/fetchoptions/AttachmentSortOptions.js similarity index 56% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/attachment/AttachmentSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/fetchoptions/AttachmentSortOptions.js index 959969e81bfd13068362d464a82045d649de5294..66d6faae9a9ea37326661eed0915787c50ff94cb 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/attachment/AttachmentSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/fetchoptions/AttachmentSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var AttachmentSortOptions = function() { SortOptions.call(this); }; stjs.extend(AttachmentSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.attachment.AttachmentSortOptions'; + prototype['@type'] = 'as.dto.attachment.fetchoptions.AttachmentSortOptions'; constructor.serialVersionUID = 1; }, {}); return AttachmentSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/id/AttachmentFileName.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/id/AttachmentFileName.js new file mode 100644 index 0000000000000000000000000000000000000000..f78254597b5f0862df82dc9b98a2f84c19b0f5a8 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/id/AttachmentFileName.js @@ -0,0 +1,48 @@ +/** + * Attachment file name. + * + * @author pkupczyk + */ +define([ "stjs", "util/Exceptions", "as/dto/attachment/id/IAttachmentId" ], function(stjs, exceptions, IAttachmentId) { + /** + * @param fileName + * Attachment file name, e.g. "my_file.txt". + */ + var AttachmentFileName = function(fileName) { + this.setFileName(fileName); + }; + stjs.extend(AttachmentFileName, null, [ IAttachmentId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.id.attachment.AttachmentFileName'; + constructor.serialVersionUID = 1; + prototype.fileName = null; + prototype.getFileName = function() { + return this.fileName; + }; + prototype.setFileName = function(fileName) { + if (fileName == null) { + throw new exceptions.IllegalArgumentException("File name cannot be null"); + } + this.fileName = fileName; + }; + prototype.toString = function() { + return this.getFileName(); + }; + prototype.hashCode = function() { + return ((this.getFileName() == null) ? 0 : this.getFileName().hashCode()); + }; + prototype.equals = function(obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (this.getClass() != obj.getClass()) { + return false; + } + var other = obj; + return this.getFileName() == null ? this.getFileName() == other.getFileName() : this.getFileName().equals(other.getFileName()); + }; + }, {}); + return AttachmentFileName; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/id/IAttachmentId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/id/IAttachmentId.js new file mode 100644 index 0000000000000000000000000000000000000000..cd774390b3254f23965fe8cbf2523c00476d6569 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/id/IAttachmentId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies an attachment in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IAttachmentId = function() { + }; + stjs.extend(IAttachmentId, null, [ IObjectId ], null, {}); + return IAttachmentId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/AttachmentListUpdateValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/update/AttachmentListUpdateValue.js similarity index 72% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/AttachmentListUpdateValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/update/AttachmentListUpdateValue.js index 6427735fa0951de8b8e5e5f6bb2ba88eab3a575a..8c4a558f0d02ac515038c46b0c0a13c8a1865b73 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/AttachmentListUpdateValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/attachment/update/AttachmentListUpdateValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/ListUpdateValue" ], function(stjs, ListUpdateValue) { +define([ "stjs", "as/dto/common/update/ListUpdateValue" ], function(stjs, ListUpdateValue) { var AttachmentListUpdateValue = function() { ListUpdateValue.call(this); }; stjs.extend(AttachmentListUpdateValue, ListUpdateValue, [ ListUpdateValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.AttachmentListUpdateValue'; + prototype['@type'] = 'as.dto.attachment.update.AttachmentListUpdateValue'; constructor.serialVersionUID = 1; }, { actions : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/Enum.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/Enum.js new file mode 100644 index 0000000000000000000000000000000000000000..70168c1597387f89c0032448881972181ff25c98 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/Enum.js @@ -0,0 +1,15 @@ +define([ "stjs" ], function(stjs) { + var Enum = function(values) { + var thisEnum = this; + this.values = values; + values.forEach(function(value) { + thisEnum[value] = value; + }); + }; + stjs.extend(Enum, null, [], function(constructor, prototype) { + prototype.values = function() { + return this.values; + }; + }, {}); + return Enum; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/CacheMode.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/CacheMode.js new file mode 100644 index 0000000000000000000000000000000000000000..5f639e40fde62f7eaa4ec69bd653bec37cf719bb --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/CacheMode.js @@ -0,0 +1,12 @@ +/** + * @author pkupczyk + */ + +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var CacheMode = function() { + Enum.call(this, [ "NO_CACHE", "CACHE", "RELOAD_AND_CACHE" ]); + }; + stjs.extend(CacheMode, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new CacheMode(); +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/EmptyFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/EmptyFetchOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..7c7b13db4dfa22ad482cce61255c18e94b4c1ab5 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/EmptyFetchOptions.js @@ -0,0 +1,16 @@ +define([ "stjs", "as/dto/common/fetchoptions/FetchOptions" ], function(stjs, FetchOptions) { + var EmptyFetchOptions = function() { + FetchOptions.call(this); + }; + stjs.extend(EmptyFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.common.fetchoptions.EmptyFetchOptions'; + constructor.serialVersionUID = 1; + prototype.sortBy = function() { + return null; + }; + prototype.getSortBy = function() { + return null; + }; + }, {}); + return EmptyFetchOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/EntitySortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/EntitySortOptions.js similarity index 84% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/EntitySortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/EntitySortOptions.js index 665d45d821ce530fc00491df520a71156f6489f7..5f5c900dc89e973497da92f02525a7a2dca9da07 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/EntitySortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/EntitySortOptions.js @@ -1,4 +1,4 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var EntitySortOptions = function() { SortOptions.call(this); }; @@ -10,7 +10,7 @@ define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(requ }; stjs.extend(EntitySortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.sort.EntitySortOptions'; + prototype['@type'] = 'as.dto.common.fetchoptions.EntitySortOptions'; constructor.serialVersionUID = 1; prototype.code = function() { return this.getOrCreateSorting(fields.CODE); diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/EntityWithPropertiesSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/EntityWithPropertiesSortOptions.js similarity index 73% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/EntityWithPropertiesSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/EntityWithPropertiesSortOptions.js index 96836842573dd24c42f9ddbd46e09c57c38cf745..ed75f927afe7d82cfe3deb1411e0e8a1218b0024 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/EntityWithPropertiesSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/EntityWithPropertiesSortOptions.js @@ -1,4 +1,4 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/EntitySortOptions" ], function(require, stjs, EntitySortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/EntitySortOptions" ], function(require, stjs, EntitySortOptions) { var EntityWithPropertiesSortOptions = function() { EntitySortOptions.call(this); }; @@ -8,7 +8,7 @@ define([ "require", "stjs", "dto/fetchoptions/sort/EntitySortOptions" ], functio }; stjs.extend(EntityWithPropertiesSortOptions, EntitySortOptions, [ EntitySortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.sort.EntityWithPropertiesSortOptions'; + prototype['@type'] = 'as.dto.common.fetchoptions.EntityWithPropertiesSortOptions'; constructor.serialVersionUID = 1; prototype.property = function(propertyName) { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/FetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/FetchOptions.js similarity index 82% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/FetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/FetchOptions.js index 2e99357c51a61a8567ef7781f3f8cd997b008276..ddeec2c50eec710c404fdf2f396e809cb3f6c74d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/FetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/FetchOptions.js @@ -1,11 +1,11 @@ -define([ "stjs", "dto/fetchoptions/CacheMode" ], function(stjs, CacheMode) { +define([ "stjs", "as/dto/common/fetchoptions/CacheMode" ], function(stjs, CacheMode) { var FetchOptions = function() { this._count = null; this._from = null; this._cacheMode = CacheMode.NO_CACHE; }; stjs.extend(FetchOptions, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.FetchOptions'; + prototype['@type'] = 'as.dto.common.fetchoptions.FetchOptions'; constructor.serialVersionUID = 1; prototype.count = function(count) { this._count = count; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/SortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/SortOptions.js similarity index 68% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/SortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/SortOptions.js index dc33bbac04cc305e7cda13965ec091f31140c084..d9dc882cef503ae2f1a601a223fc8bca35e6a283 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/SortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/SortOptions.js @@ -1,10 +1,10 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOrder", "dto/fetchoptions/sort/Sorting" ], function(require, stjs, SortOrder, Sorting) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOrder", "as/dto/common/fetchoptions/Sorting" ], function(require, stjs, SortOrder, Sorting) { var SortOptions = function() { this.sortings = []; }; stjs.extend(SortOptions, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.sort.SortOptions'; + prototype['@type'] = 'as.dto.common.fetchoptions.SortOptions'; constructor.serialVersionUID = 1; prototype.getOrCreateSorting = function(field) { var order = this.getSorting(field); @@ -23,6 +23,9 @@ define([ "require", "stjs", "dto/fetchoptions/sort/SortOrder", "dto/fetchoptions }); return order; }; + prototype.getSortings = function() { + return this.sortings; + }; }, {}); return SortOptions; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/SortOrder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/SortOrder.js similarity index 86% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/SortOrder.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/SortOrder.js index 03ebb024820f795339cf53c3cc85389a462d75fc..b7d2531747c50c54b7e7d58d2c454c6fcf16d0e8 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/SortOrder.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/SortOrder.js @@ -4,7 +4,7 @@ define([ "require", "stjs" ], function(require, stjs) { }; stjs.extend(SortOrder, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.sort.SortOrder'; + prototype['@type'] = 'as.dto.common.fetchoptions.SortOrder'; constructor.serialVersionUID = 1; prototype.asc = function() { this._asc = true; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/Sorting.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/Sorting.js similarity index 86% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/Sorting.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/Sorting.js index a738fe4e8635ca104164a7b58fd9192927ffd0db..534db78593281c3681b2b8fbc8b1c64132f661c9 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sort/Sorting.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/fetchoptions/Sorting.js @@ -5,7 +5,7 @@ define([ "require", "stjs" ], function(require, stjs) { }; stjs.extend(Sorting, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.sort.Sorting'; + prototype['@type'] = 'as.dto.common.fetchoptions.Sorting'; constructor.serialVersionUID = 1; prototype.getField = function() { return this.field; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/CreationId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/CreationId.js new file mode 100644 index 0000000000000000000000000000000000000000..57c7f63cf9320aa1c223502a7d0eecd5b2d42e7b --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/CreationId.js @@ -0,0 +1,47 @@ +/** + * @author Jakub Straszewski + */ +define([ "stjs", "as/dto/sample/id/ISampleId", "as/dto/dataset/id/IDataSetId", "as/dto/experiment/id/IExperimentId", "as/dto/project/id/IProjectId", "as/dto/space/id/ISpaceId", "as/dto/material/id/IMaterialId" ], + function(stjs, ISampleId, IDataSetId, IExperimentId, IProjectId, ISpaceId, IMaterialId) { + var CreationId = function(creationId) { + this.creationId = creationId; + }; + stjs.extend(CreationId, null, [ ISampleId, IDataSetId, IExperimentId, IProjectId, ISpaceId, IMaterialId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.common.id.CreationId'; + constructor.serialVersionUID = 1; + prototype.creationId = null; + prototype.getCreationId = function() { + return this.creationId; + }; + prototype.setCreationId = function(creationId) { + this.creationId = creationId; + }; + prototype.toString = function() { + return this.getCreationId(); + }; + prototype.hashCode = function() { + return ((this.getCreationId() == null) ? 0 : this.getCreationId().hashCode()); + }; + prototype.equals = function(obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (this.getClass() != obj.getClass()) { + return false; + } + var other = obj; + if (this.getCreationId() == null) { + if (other.getCreationId() != null) { + return false; + } + } else if (!this.getCreationId().equals(other.getCreationId())) { + return false; + } + return true; + }; + }, {}); + return CreationId; + }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/IObjectId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/IObjectId.js new file mode 100644 index 0000000000000000000000000000000000000000..6db51ef2463da71b5c9f88c75561d7a07ba3dbd8 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/IObjectId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies an object in openBIS. + * + * @author pkupczyk + */ +define([ "stjs" ], function(stjs) { + var IObjectId = function() { + }; + stjs.extend(IObjectId, null, [], null, {}); + return IObjectId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/ObjectIdentifier.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/ObjectIdentifier.js new file mode 100644 index 0000000000000000000000000000000000000000..5b7694f54357a99274a639d5ce1f73af55f4dac1 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/ObjectIdentifier.js @@ -0,0 +1,49 @@ +/** + * Base class for ids that identify objects by identifiers. An identifier is a + * mutable user-defined string. An identifier is assigned to an object during + * the object creation but can change afterwards. An object's identifier is not + * guaranteed to be always the same, e.g. a sample identifier changes when the + * sample is moved to a different space. + * + * @author pkupczyk + */ +define([ "stjs", "util/Exceptions", "as/dto/common/id/IObjectId" ], function(stjs, exceptions, IObjectId) { + var ObjectIdentifier = function(identifier) { + this.setIdentifier(identifier); + }; + stjs.extend(ObjectIdentifier, null, [ IObjectId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.common.id.ObjectIdentifier'; + constructor.serialVersionUID = 1; + prototype.identifier = null; + prototype.getIdentifier = function() { + return this.identifier; + }; + prototype.setIdentifier = function(identifier) { + if (identifier == null) { + // throw new exceptions.IllegalArgumentException("Identifier id + // cannot be null"); + } + this.identifier = identifier; + }; + prototype.toString = function() { + return this.getIdentifier(); + }; + prototype.hashCode = function() { + return ((this.getIdentifier() == null) ? 0 : this.getIdentifier().hashCode()); + }; + prototype.equals = function(obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (this.getClass() != obj.getClass()) { + return false; + } + var other = obj; + return this.getIdentifier() == null ? this.getIdentifier() == other.getIdentifier() : this.getIdentifier().equals(other.getIdentifier()); + }; + }, {}); + return ObjectIdentifier; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/ObjectPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/ObjectPermId.js new file mode 100644 index 0000000000000000000000000000000000000000..0de597d5dabd1dd27e7a8543e509f008282cbd7b --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/ObjectPermId.js @@ -0,0 +1,56 @@ +/** + * Base class for ids that identify objects by a perm id. A perm id is an + * immutable system-generated string. A perm id is assigned to an object during + * the object creation and cannot be changed afterwards. An object's perm id is + * guaranteed to be always the same, e.g. a sample perm id remains the same even + * if the sample is moved to a different space. + * + * @author pkupczyk + */ +define([ "stjs", "util/Exceptions", "as/dto/common/id/IObjectId" ], function(stjs, exceptions, IObjectId) { + var ObjectPermId = function(permId) { + this.setPermId(permId); + }; + stjs.extend(ObjectPermId, null, [ IObjectId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.common.id.ObjectPermId'; + constructor.serialVersionUID = 1; + prototype.permId = null; + prototype.getPermId = function() { + return this.permId; + }; + prototype.setPermId = function(permId) { + if (permId == null) { + // TODO throw new exceptions.IllegalArgumentException("PermId + // cannot be null"); + } + this.permId = permId; + }; + prototype.toString = function() { + return this.getPermId(); + }; + prototype.hashCode = function() { + return ((this.getPermId() == null) ? 0 : this.getPermId().hashCode()); + }; + prototype.equals = function(obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (this.getClass() != obj.getClass()) { + return false; + } + var other = obj; + if (this.getPermId() == null) { + if (other.getPermId() != null) { + return false; + } + } else if (!this.getPermId().equals(other.getPermId())) { + return false; + } + return true; + }; + }, {}); + return ObjectPermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/ObjectTechId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/ObjectTechId.js similarity index 80% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/ObjectTechId.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/ObjectTechId.js index e78813baf7d58d379c87b33a67e29dc2e9e9d46b..d4cffad2f4bc1e358e5fa3f848a65afb85fbd2d6 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/ObjectTechId.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/id/ObjectTechId.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "util/Exceptions", "dto/id/IObjectId" ], function(stjs, exceptions, IObjectId) { +define([ "stjs", "util/Exceptions", "as/dto/common/id/IObjectId" ], function(stjs, exceptions, IObjectId) { var ObjectTechId = function(techId) { this.setTechId(techId); }; stjs.extend(ObjectTechId, null, [ IObjectId ], function(constructor, prototype) { - prototype['@type'] = 'dto.id.ObjectTechId'; + prototype['@type'] = 'as.dto.common.id.ObjectTechId'; constructor.serialVersionUID = 1; prototype.techId = null; prototype.getTechId = function() { @@ -14,7 +14,8 @@ define([ "stjs", "util/Exceptions", "dto/id/IObjectId" ], function(stjs, excepti }; prototype.setTechId = function(techId) { if (techId == null) { -// throw new exceptions.IllegalArgumentException("TechId cannot be null"); + // throw new exceptions.IllegalArgumentException("TechId cannot + // be null"); } this.techId = techId; }; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IAttachmentsHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IAttachmentsHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..e6edcaf3fbd531a5fece3f6029afee3decae2709 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IAttachmentsHolder.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var IAttachmentsHolder = function() { + }; + stjs.extend(IAttachmentsHolder, null, [], function(constructor, prototype) { + prototype.getAttachments = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return IAttachmentsHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ICodeHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ICodeHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..a70316eac4bc0c5820c02b64242c470b5cae94f8 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ICodeHolder.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var ICodeHolder = function() { + }; + stjs.extend(ICodeHolder, null, [], function(constructor, prototype) { + prototype.getCode = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return ICodeHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ICreationIdHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ICreationIdHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..e5f5d346f3cea629fa15ecc40d6c0ab2cb7992c2 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ICreationIdHolder.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var ICreationIdHolder = function() { + }; + stjs.extend(ICreationIdHolder, null, [], function(constructor, prototype) { + prototype.getCreationId = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return ICreationIdHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IModificationDateHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IModificationDateHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..d788552c78376b11143de22e3aa882548b265f52 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IModificationDateHolder.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var IModificationDateHolder = function() { + }; + stjs.extend(IModificationDateHolder, null, [], function(constructor, prototype) { + prototype.getModificationDate = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return IModificationDateHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IModifierHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IModifierHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..5819140d54d45eaf63fc184dc92aad3cbe556727 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IModifierHolder.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var IModifierHolder = function() { + }; + stjs.extend(IModifierHolder, null, [], function(constructor, prototype) { + prototype.getModifier = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return IModifierHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IParentChildrenHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IParentChildrenHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..8efe448944a7c5cb19958cda0820335b52646a0d --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IParentChildrenHolder.js @@ -0,0 +1,13 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var IParentChildrenHolder = function() { + }; + stjs.extend(IParentChildrenHolder, null, [], function(constructor, prototype) { + prototype.getChildren = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + prototype.getParents = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return IParentChildrenHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IPermIdHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IPermIdHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..8fd80c1fee07a2293e9868344d70041dd390692e --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IPermIdHolder.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var IPermIdHolder = function() { + }; + stjs.extend(IPermIdHolder, null, [], function(constructor, prototype) { + prototype.getPermId = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return IPermIdHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IPropertiesHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IPropertiesHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..18ecbaeac201042e5a2b6dd980d11dc0494934af --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IPropertiesHolder.js @@ -0,0 +1,19 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var IPropertiesHolder = function() { + }; + stjs.extend(IPropertiesHolder, null, [], function(constructor, prototype) { + prototype.getProperty = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + prototype.getProperties = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + prototype.getMaterialProperties = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + prototype.getMaterialProperty = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return IPropertiesHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IRegistrationDateHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IRegistrationDateHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..9d9277a1006418358e1d3190cd2dbd8da059886c --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IRegistrationDateHolder.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var IRegistrationDateHolder = function() { + }; + stjs.extend(IRegistrationDateHolder, null, [], function(constructor, prototype) { + prototype.getRegistrationDate = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return IRegistrationDateHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IRegistratorHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IRegistratorHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..ecc77ed332600a83f59d3f4cefef7c7a6aa3cb78 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/IRegistratorHolder.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var IRegistratorHolder = function() { + }; + stjs.extend(IRegistratorHolder, null, [], function(constructor, prototype) { + prototype.getRegistrator = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return IRegistratorHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ISpaceHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ISpaceHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..7ba560c5204680250bafc026207708f3b7c8eebf --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ISpaceHolder.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var ISpaceHolder = function() { + }; + stjs.extend(ISpaceHolder, null, [], function(constructor, prototype) { + prototype.getSpace = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return ISpaceHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ITagsHolder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ITagsHolder.js new file mode 100644 index 0000000000000000000000000000000000000000..fbe95dc188ae29abe9fc0c18c391b14f70d66e45 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/interfaces/ITagsHolder.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var ITagsHolder = function() { + }; + stjs.extend(ITagsHolder, null, [], function(constructor, prototype) { + prototype.getTags = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return ITagsHolder; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/IOperation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/operations/IOperation.js similarity index 100% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/IOperation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/operations/IOperation.js diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/IOperationResult.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/operations/IOperationResult.js similarity index 100% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/IOperationResult.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/operations/IOperationResult.js diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractCompositeSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractCompositeSearchCriteria.js similarity index 80% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractCompositeSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractCompositeSearchCriteria.js index 2dab5fcad39fe3df149dae451b7acbb8251a48a9..02d2df10501adf68fb351973d47c6d5a9fb6346d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractCompositeSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractCompositeSearchCriteria.js @@ -1,13 +1,13 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractSearchCriteria", "dto/search/SearchOperator" ], function(stjs, AbstractSearchCriteria, SearchOperator) { +define([ "stjs", "as/dto/common/search/AbstractSearchCriteria", "as/dto/common/search/SearchOperator" ], function(stjs, AbstractSearchCriteria, SearchOperator) { var AbstractCompositeSearchCriteria = function() { AbstractSearchCriteria.call(this); this.criteria = []; }; stjs.extend(AbstractCompositeSearchCriteria, AbstractSearchCriteria, [ AbstractSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractCompositeSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.AbstractCompositeSearchCriteria'; constructor.serialVersionUID = 1; prototype.operator = SearchOperator.AND; prototype.getCriteria = function() { @@ -20,6 +20,9 @@ define([ "stjs", "dto/search/AbstractSearchCriteria", "dto/search/SearchOperator this.criteria.push(criteria); return criteria; }; + prototype.getOperator = function() { + return this.operator; + } prototype.withOrOperator = function() { this.operator = SearchOperator.OR; } diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractDateObjectValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractDateObjectValue.js similarity index 63% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractDateObjectValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractDateObjectValue.js index cb6930ec8f7c8f56a6a87b9563ba47dc1d2bdeec..fe2fbee5cd42cb8fcd1be3801f113deb97caee27 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractDateObjectValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractDateObjectValue.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/search/AbstractValue", "dto/search/IDate" ], function(stjs, AbstractValue, IDate) { +define([ "stjs", "as/dto/common/search/AbstractValue", "as/dto/common/search/IDate" ], function(stjs, AbstractValue, IDate) { var AbstractDateObjectValue = function(value) { AbstractValue.call(this, value); }; stjs.extend(AbstractDateObjectValue, AbstractValue, [ AbstractValue, IDate ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractDateObjectValue'; + prototype['@type'] = 'as.dto.common.search.AbstractDateObjectValue'; constructor.serialVersionUID = 1; prototype.getFormattedValue = function() { return null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractDateValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractDateValue.js similarity index 60% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractDateValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractDateValue.js index 49883f5ba003f312295eddd14e17521c902bf598..729176100a55311a520db9e3f1c6deff12aa755a 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractDateValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractDateValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractValue", "dto/search/IDate" ], function(stjs, AbstractValue, IDate) { +define([ "stjs", "as/dto/common/search/AbstractValue", "as/dto/common/search/IDate" ], function(stjs, AbstractValue, IDate) { var AbstractDateValue = function(value) { AbstractValue.call(this, value); }; stjs.extend(AbstractDateValue, AbstractValue, [ AbstractValue, IDate ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractDateValue'; + prototype['@type'] = 'as.dto.common.search.AbstractDateValue'; constructor.serialVersionUID = 1; }, {}); return AbstractDateValue; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractEntitySearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractEntitySearchCriteria.js new file mode 100644 index 0000000000000000000000000000000000000000..aaf12115e271adadfa1efee87b00d61e5da7eee7 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractEntitySearchCriteria.js @@ -0,0 +1,85 @@ +/** + * @author pkupczyk + */ +define( + [ "require", "stjs", "as/dto/common/search/AbstractObjectSearchCriteria", "as/dto/common/search/SearchOperator", "as/dto/common/search/CodeSearchCriteria", + "as/dto/entitytype/search/EntityTypeSearchCriteria", "as/dto/common/search/PermIdSearchCriteria", "as/dto/common/search/RegistrationDateSearchCriteria", + "as/dto/common/search/ModificationDateSearchCriteria", "as/dto/common/search/NumberPropertySearchCriteria", "as/dto/tag/search/TagSearchCriteria", + "as/dto/common/search/StringPropertySearchCriteria", "as/dto/common/search/DatePropertySearchCriteria", "as/dto/common/search/AnyPropertySearchCriteria", + "as/dto/common/search/AnyFieldSearchCriteria", "as/dto/common/search/AbstractCompositeSearchCriteria" ], function(require, stjs, AbstractObjectSearchCriteria, SearchOperator) { + var AbstractEntitySearchCriteria = function() { + AbstractObjectSearchCriteria.call(this); + }; + stjs.extend(AbstractEntitySearchCriteria, AbstractObjectSearchCriteria, [ AbstractObjectSearchCriteria ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.search.AbstractEntitySearchCriteria'; + constructor.serialVersionUID = 1; + prototype.operator = SearchOperator.AND; + prototype.withOperator = function(anOperator) { + this.operator = anOperator; + return this; + }; + prototype.getOperator = function() { + return this.operator; + }; + prototype.withCode = function() { + var CodeSearchCriteria = require("as/dto/common/search/CodeSearchCriteria"); + return this.addCriteria(new CodeSearchCriteria()); + }; + prototype.withType = function() { + var EntityTypeSearchCriteria = require("as/dto/entitytype/search/EntityTypeSearchCriteria"); + return this.addCriteria(new EntityTypeSearchCriteria()); + }; + prototype.withPermId = function() { + var PermIdSearchCriteria = require("as/dto/common/search/PermIdSearchCriteria"); + return this.addCriteria(new PermIdSearchCriteria()); + }; + prototype.withRegistrationDate = function() { + var RegistrationDateSearchCriteria = require("as/dto/common/search/RegistrationDateSearchCriteria"); + return this.addCriteria(new RegistrationDateSearchCriteria()); + }; + prototype.withModificationDate = function() { + var ModificationDateSearchCriteria = require("as/dto/common/search/ModificationDateSearchCriteria"); + return this.addCriteria(new ModificationDateSearchCriteria()); + }; + prototype.withNumberProperty = function(propertyName) { + var NumberPropertySearchCriteria = require("as/dto/common/search/NumberPropertySearchCriteria"); + return this.addCriteria(new NumberPropertySearchCriteria(propertyName)); + }; + prototype.withTag = function() { + var TagSearchCriteria = require("as/dto/tag/search/TagSearchCriteria"); + return this.addCriteria(new TagSearchCriteria()); + }; + prototype.withProperty = function(propertyName) { + var StringPropertySearchCriteria = require("as/dto/common/search/StringPropertySearchCriteria"); + return this.addCriteria(new StringPropertySearchCriteria(propertyName)); + }; + prototype.withDateProperty = function(propertyName) { + var DatePropertySearchCriteria = require("as/dto/common/search/DatePropertySearchCriteria"); + return this.addCriteria(new DatePropertySearchCriteria(propertyName)); + }; + prototype.withAnyProperty = function() { + var AnyPropertySearchCriteria = require("as/dto/common/search/AnyPropertySearchCriteria"); + return this.addCriteria(new AnyPropertySearchCriteria()); + }; + prototype.withAnyField = function() { + var AnyFieldSearchCriteria = require("as/dto/common/search/AnyFieldSearchCriteria"); + return this.addCriteria(new AnyFieldSearchCriteria()); + }; + prototype.createBuilder = function() { + var AbstractCompositeSearchCriteria = require("as/dto/common/search/AbstractCompositeSearchCriteria"); + var builder = AbstractCompositeSearchCriteria.prototype.createBuilder.call(this); + builder.setOperator(this.operator); + return builder; + }; + }, { + operator : { + name : "Enum", + arguments : [ "SearchOperator" ] + }, + criteria : { + name : "Collection", + arguments : [ "ISearchCriteria" ] + } + }); + return AbstractEntitySearchCriteria; + }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractFieldSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractFieldSearchCriteria.js similarity index 85% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractFieldSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractFieldSearchCriteria.js index f0d0874f5db5d32ccb0b64441bcb1bdcdff30ad7..27faf44f455aebe832a13faa5ba36423cdaf98a8 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractFieldSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractFieldSearchCriteria.js @@ -1,11 +1,11 @@ -define([ "stjs", "dto/search/AbstractSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, AbstractSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/AbstractSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, AbstractSearchCriteria, SearchFieldType) { var AbstractFieldSearchCriteria = function(fieldName, fieldType) { AbstractSearchCriteria.call(this); this.fieldName = fieldName; this.fieldType = fieldType; }; stjs.extend(AbstractFieldSearchCriteria, AbstractSearchCriteria, [ AbstractSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractFieldSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.AbstractFieldSearchCriteria'; constructor.serialVersionUID = 1; prototype.fieldName = null; prototype.fieldType = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractNumberValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractNumberValue.js similarity index 65% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractNumberValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractNumberValue.js index a82f2685c6c85c53f59d262179737e5c2016343b..bd92f62dd31dec673b7c73bb82264dc95a3b4edc 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractNumberValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractNumberValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractValue" ], function(stjs, AbstractValue) { +define([ "stjs", "as/dto/common/search/AbstractValue" ], function(stjs, AbstractValue) { var AbstractNumberValue = function(number) { AbstractValue.call(this, number); }; stjs.extend(AbstractNumberValue, AbstractValue, [ AbstractValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractNumberValue'; + prototype['@type'] = 'as.dto.common.search.AbstractNumberValue'; constructor.serialVersionUID = 1; }, {}); return AbstractNumberValue; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractObjectSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractObjectSearchCriteria.js similarity index 67% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractObjectSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractObjectSearchCriteria.js index 219dd9f37a7ef4ceb60a1007a853098802ae2bc4..f6a578d567f19e624ef31cf428b8ad5089fe74f7 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractObjectSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractObjectSearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractCompositeSearchCriteria", "dto/search/IdSearchCriteria" ], function(stjs, AbstractCompositeSearchCriteria, IdSearchCriteria) { +define([ "stjs", "as/dto/common/search/AbstractCompositeSearchCriteria", "as/dto/common/search/IdSearchCriteria" ], function(stjs, AbstractCompositeSearchCriteria, IdSearchCriteria) { var AbstractObjectSearchCriteria = function() { AbstractCompositeSearchCriteria.call(this); }; stjs.extend(AbstractObjectSearchCriteria, AbstractCompositeSearchCriteria, [ AbstractCompositeSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractObjectSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.AbstractObjectSearchCriteria'; constructor.serialVersionUID = 1; prototype.withId = function() { return this.addCriteria(new IdSearchCriteria()); diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractSearchCriteria.js similarity index 55% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractSearchCriteria.js index dcf52863e1b51b27ca688e9d7e2c0007e8679e0a..7150830e82d7ebc833d80cc9b08958bdda5ac27f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractSearchCriteria.js @@ -1,12 +1,14 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/ISearchCriteria" ], function(stjs, ISearchCriteria) { +define([ "stjs", "as/dto/common/search/ISearchCriteria" ], function(stjs, ISearchCriteria) { var AbstractSearchCriteria = function() { }; stjs.extend(AbstractSearchCriteria, null, [ ISearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.AbstractSearchCriteria'; constructor.serialVersionUID = 1; + prototype.hashCode = function() { + }; }, {}); return AbstractSearchCriteria; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractStringValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractStringValue.js similarity index 62% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractStringValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractStringValue.js index e24b90d652827b547bbef6718ef5fb625c06d58c..2da0b8312e2a6057f58b68f69af291de54cf367f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractStringValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractStringValue.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/search/AbstractValue" ], function(stjs, AbstractValue) { +define([ "stjs", "as/dto/common/search/AbstractValue" ], function(stjs, AbstractValue) { var AbstractStringValue = function(value) { AbstractValue.call(this, value); }; stjs.extend(AbstractStringValue, AbstractValue, [ AbstractValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractStringValue'; + prototype['@type'] = 'as.dto.common.search.AbstractStringValue'; constructor.serialVersionUID = 1; }, {}); return AbstractStringValue; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractTimeZoneValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractTimeZoneValue.js similarity index 77% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractTimeZoneValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractTimeZoneValue.js index 99f93486f01b6fde47f274d4a2952c3fadbd541e..ee35a1355f7b8e0b64eebfb63995e350d06cf3fb 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractTimeZoneValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractTimeZoneValue.js @@ -5,7 +5,7 @@ define([ "stjs" ], function(stjs) { var AbstractTimeZoneValue = function() { }; stjs.extend(AbstractTimeZoneValue, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractTimeZoneValue'; + prototype['@type'] = 'as.dto.common.search.AbstractTimeZoneValue'; }, {}); return AbstractTimeZoneValue; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractValue.js similarity index 90% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractValue.js index c640ffbcf122a58a7d7c7187f94fc1453e14938f..94f37eb7f2a7039efa6675e62ac9ab42d3a2fe96 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AbstractValue.js @@ -6,7 +6,7 @@ define([ "stjs" ], function(stjs) { this.value = value; }; stjs.extend(AbstractValue, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractValue'; + prototype['@type'] = 'as.dto.common.search.AbstractValue'; constructor.serialVersionUID = 1; prototype.value = null; prototype.getValue = function() { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AnyFieldSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AnyFieldSearchCriteria.js similarity index 64% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AnyFieldSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AnyFieldSearchCriteria.js index ba91362d92b39fa32ed3a75466439201c3194397..c6c19e89ea21fae5ff9984d0c41447f5929d858b 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AnyFieldSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AnyFieldSearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/StringFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/StringFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) { var AnyFieldSearchCriteria = function() { StringFieldSearchCriteria.call(this, "any", SearchFieldType.ANY_FIELD); }; stjs.extend(AnyFieldSearchCriteria, StringFieldSearchCriteria, [ StringFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AnyFieldSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.AnyFieldSearchCriteria'; constructor.serialVersionUID = 1; }, { fieldType : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AnyPropertySearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AnyPropertySearchCriteria.js similarity index 64% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AnyPropertySearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AnyPropertySearchCriteria.js index 62f84ea06e18f99da1dad7cb487130060924d687..511117f47a7ac8bf6147560125b9f8116ef3f4ee 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AnyPropertySearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AnyPropertySearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/StringFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/StringFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) { var AnyPropertySearchCriteria = function() { StringFieldSearchCriteria.call(this, "any", SearchFieldType.ANY_PROPERTY); }; stjs.extend(AnyPropertySearchCriteria, StringFieldSearchCriteria, [ StringFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AnyPropertySearchCriteria'; + prototype['@type'] = 'as.dto.common.search.AnyPropertySearchCriteria'; constructor.serialVersionUID = 1; }, { fieldType : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AnyStringValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AnyStringValue.js similarity index 66% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AnyStringValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AnyStringValue.js index a107ea670b40639b4d0f12489b06c2e9f0878b17..9b5ed154a9dd1d2f349b34f939c9084fe8994013 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AnyStringValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/AnyStringValue.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/search/AbstractStringValue" ], function(stjs, AbstractStringValue) { +define([ "stjs", "as/dto/common/search/AbstractStringValue" ], function(stjs, AbstractStringValue) { var AnyStringValue = function() { AbstractStringValue.call(this, null); }; stjs.extend(AnyStringValue, AbstractStringValue, [ AbstractStringValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AnyStringValue'; + prototype['@type'] = 'as.dto.common.search.AnyStringValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "any value"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/CodeSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/CodeSearchCriteria.js similarity index 64% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/CodeSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/CodeSearchCriteria.js index 6eab70387d7ed2b5204f5c57b7bcab9297a2b86d..6d9a5ed564c5a06fffa399fb62cc879f41fe234c 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/CodeSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/CodeSearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/StringFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/StringFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) { var CodeSearchCriteria = function() { StringFieldSearchCriteria.call(this, "code", SearchFieldType.ATTRIBUTE); }; stjs.extend(CodeSearchCriteria, StringFieldSearchCriteria, [ StringFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.CodeSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.CodeSearchCriteria'; constructor.serialVersionUID = 1; }, { fieldType : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateEarlierThanOrEqualToValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateEarlierThanOrEqualToValue.js similarity index 71% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateEarlierThanOrEqualToValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateEarlierThanOrEqualToValue.js index 090d4c93778e211d3a0592a8f63f89daf15048bf..bf07c154d18dccd5412e029975a82c809e704be0 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateEarlierThanOrEqualToValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateEarlierThanOrEqualToValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractDateValue" ], function(stjs, AbstractDateValue) { +define([ "stjs", "as/dto/common/search/AbstractDateValue" ], function(stjs, AbstractDateValue) { var DateEarlierThanOrEqualToValue = function(value) { AbstractDateValue.call(this, value); }; stjs.extend(DateEarlierThanOrEqualToValue, AbstractDateValue, [ AbstractDateValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DateEarlierThanOrEqualToValue'; + prototype['@type'] = 'as.dto.common.search.DateEarlierThanOrEqualToValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "earlier than or equal to '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateEqualToValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateEqualToValue.js similarity index 70% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateEqualToValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateEqualToValue.js index bfb119ce220a64e04b4856950b375d20e75601aa..826c6a50d6d961312478af6b7d4d3a2997ebbfb5 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateEqualToValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateEqualToValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractDateValue" ], function(stjs, AbstractDateValue) { +define([ "stjs", "as/dto/common/search/AbstractDateValue" ], function(stjs, AbstractDateValue) { var DateEqualToValue = function(value) { AbstractDateValue.call(this, value); }; stjs.extend(DateEqualToValue, AbstractDateValue, [ AbstractDateValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DateEqualToValue'; + prototype['@type'] = 'as.dto.common.search.DateEqualToValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "equal to '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateFieldSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateFieldSearchCriteria.js similarity index 58% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateFieldSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateFieldSearchCriteria.js index fee547e57670484c9cf0181b5ed835435c3c5070..dbd9bd5c479dea190c694363f1a76be26af8b1ad 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateFieldSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateFieldSearchCriteria.js @@ -1,21 +1,19 @@ -define([ "require", "stjs", "util/Exceptions", "dto/search/AbstractFieldSearchCriteria", "dto/search/ServerTimeZone", - "dto/search/ShortDateFormat", "dto/search/NormalDateFormat", "dto/search/LongDateFormat", - "dto/search/DateEqualToValue", "dto/search/DateObjectEqualToValue", - "dto/search/DateLaterThanOrEqualToValue", "dto/search/DateObjectLaterThanOrEqualToValue", - "dto/search/DateEarlierThanOrEqualToValue", "dto/search/DateObjectEarlierThanOrEqualToValue", - "dto/search/TimeZone", "dto/search/AbstractDateValue", "util/DateFormat"], - function(require, stjs, exceptions, AbstractFieldSearchCriteria, ServerTimeZone) { +define([ "require", "stjs", "util/Exceptions", "as/dto/common/search/AbstractFieldSearchCriteria", "as/dto/common/search/ServerTimeZone", "as/dto/common/search/ShortDateFormat", + "as/dto/common/search/NormalDateFormat", "as/dto/common/search/LongDateFormat", "as/dto/common/search/DateEqualToValue", "as/dto/common/search/DateObjectEqualToValue", + "as/dto/common/search/DateLaterThanOrEqualToValue", "as/dto/common/search/DateObjectLaterThanOrEqualToValue", "as/dto/common/search/DateEarlierThanOrEqualToValue", + "as/dto/common/search/DateObjectEarlierThanOrEqualToValue", "as/dto/common/search/TimeZone", "as/dto/common/search/AbstractDateValue", "util/DateFormat" ], function(require, stjs, exceptions, + AbstractFieldSearchCriteria, ServerTimeZone) { var DateFieldSearchCriteria = function(fieldName, fieldType) { AbstractFieldSearchCriteria.call(this, fieldName, fieldType); this.timeZone = new ServerTimeZone(); }; stjs.extend(DateFieldSearchCriteria, AbstractFieldSearchCriteria, [ AbstractFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DateFieldSearchCriteria'; + prototype['@type'] = 'as.dto.search.DateFieldSearchCriteria'; constructor.serialVersionUID = 1; - var ShortDateFormat = require("dto/search/ShortDateFormat"); - var NormalDateFormat = require("dto/search/NormalDateFormat"); - var LongDateFormat = require("dto/search/LongDateFormat"); + var ShortDateFormat = require("as/dto/common/search/ShortDateFormat"); + var NormalDateFormat = require("as/dto/common/search/NormalDateFormat"); + var LongDateFormat = require("as/dto/common/search/LongDateFormat"); constructor.DATE_FORMATS = [ new ShortDateFormat(), new NormalDateFormat(), new LongDateFormat() ]; var value = function(DateValueClass, DateObjectValueClass, date) { if (date instanceof Date) { @@ -24,18 +22,18 @@ define([ "require", "stjs", "util/Exceptions", "dto/search/AbstractFieldSearchCr return new DateValueClass(date); } prototype.thatEquals = function(date) { - var DateEqualToValue = require("dto/search/DateEqualToValue"); - var DateObjectEqualToValue = require("dto/search/DateObjectEqualToValue"); + var DateEqualToValue = require("as/dto/common/search/DateEqualToValue"); + var DateObjectEqualToValue = require("as/dto/common/search/DateObjectEqualToValue"); this.setFieldValue(value(DateEqualToValue, DateObjectEqualToValue, date)); }; prototype.thatIsLaterThanOrEqualTo = function(date) { - var DateLaterThanOrEqualToValue = require("dto/search/DateLaterThanOrEqualToValue"); - var DateObjectLaterThanOrEqualToValue = require("dto/search/DateObjectLaterThanOrEqualToValue"); + var DateLaterThanOrEqualToValue = require("as/dto/common/search/DateLaterThanOrEqualToValue"); + var DateObjectLaterThanOrEqualToValue = require("as/dto/common/search/DateObjectLaterThanOrEqualToValue"); this.setFieldValue(value(DateLaterThanOrEqualToValue, DateObjectLaterThanOrEqualToValue, date)); }; prototype.thatIsEarlierThanOrEqualTo = function(date) { - var DateEarlierThanOrEqualToValue = require("dto/search/DateEarlierThanOrEqualToValue"); - var DateObjectEarlierThanOrEqualToValue = require("dto/search/DateObjectEarlierThanOrEqualToValue"); + var DateEarlierThanOrEqualToValue = require("as/dto/common/search/DateEarlierThanOrEqualToValue"); + var DateObjectEarlierThanOrEqualToValue = require("as/dto/common/search/DateObjectEarlierThanOrEqualToValue"); this.setFieldValue(value(DateEarlierThanOrEqualToValue, DateObjectEarlierThanOrEqualToValue, date)); }; prototype.withServerTimeZone = function() { @@ -43,7 +41,7 @@ define([ "require", "stjs", "util/Exceptions", "dto/search/AbstractFieldSearchCr return this; }; prototype.withTimeZone = function(hourOffset) { - var TimeZone = require("dto/search/TimeZone"); + var TimeZone = require("as/dto/common/search/TimeZone"); this.timeZone = new TimeZone(hourOffset); return this; }; @@ -58,7 +56,7 @@ define([ "require", "stjs", "util/Exceptions", "dto/search/AbstractFieldSearchCr AbstractFieldSearchCriteria.prototype.setFieldValue.call(this, value); }; constructor.checkValueFormat = function(value) { - var AbstractDateValue = require("dto/search/AbstractDateValue"); + var AbstractDateValue = require("as/dto/common/search/AbstractDateValue"); if (stjs.isInstanceOf(value.constructor, AbstractDateValue)) { var formats = DateFieldSearchCriteria.DATE_FORMATS; for ( var i in formats) { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateLaterThanOrEqualToValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateLaterThanOrEqualToValue.js similarity index 71% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateLaterThanOrEqualToValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateLaterThanOrEqualToValue.js index 375b266f2059cb599e547d9c1c758d9e6885291f..f571575d51ef88402698a89c47cee60768683a96 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateLaterThanOrEqualToValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateLaterThanOrEqualToValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractDateValue" ], function(stjs, AbstractDateValue) { +define([ "stjs", "as/dto/common/search/AbstractDateValue" ], function(stjs, AbstractDateValue) { var DateLaterThanOrEqualToValue = function(value) { AbstractDateValue.call(this, value); }; stjs.extend(DateLaterThanOrEqualToValue, AbstractDateValue, [ AbstractDateValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DateLaterThanOrEqualToValue'; + prototype['@type'] = 'as.dto.common.search.DateLaterThanOrEqualToValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "later than or equal to '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateObjectEarlierThanOrEqualToValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateObjectEarlierThanOrEqualToValue.js similarity index 70% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateObjectEarlierThanOrEqualToValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateObjectEarlierThanOrEqualToValue.js index 862480f9cdd9f464e83e72a2bab6527d828c42eb..ca037c20db1ac2b86a8c6042ddf1bd69ac954a09 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateObjectEarlierThanOrEqualToValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateObjectEarlierThanOrEqualToValue.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/search/AbstractDateObjectValue" ], function(stjs, AbstractDateObjectValue) { +define([ "stjs", "as/dto/common/search/AbstractDateObjectValue" ], function(stjs, AbstractDateObjectValue) { var DateObjectEarlierThanOrEqualToValue = function(value) { AbstractDateObjectValue.call(this, value); }; stjs.extend(DateObjectEarlierThanOrEqualToValue, AbstractDateObjectValue, [ AbstractDateObjectValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DateObjectEarlierThanOrEqualToValue'; + prototype['@type'] = 'as.dto.common.search.DateObjectEarlierThanOrEqualToValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "earlier than or equal to '" + this.getFormattedValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateObjectEqualToValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateObjectEqualToValue.js similarity index 69% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateObjectEqualToValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateObjectEqualToValue.js index 3569787cd867c6f2bdd6cbe58a3e9a5e7558a3dc..2fa4b437b4a14177541af4e01096186501bdef66 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateObjectEqualToValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateObjectEqualToValue.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/search/AbstractDateObjectValue" ], function(stjs, AbstractDateObjectValue) { +define([ "stjs", "as/dto/common/search/AbstractDateObjectValue" ], function(stjs, AbstractDateObjectValue) { var DateObjectEqualToValue = function(value) { AbstractDateObjectValue.call(this, value); }; stjs.extend(DateObjectEqualToValue, AbstractDateObjectValue, [ AbstractDateObjectValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DateObjectEqualToValue'; + prototype['@type'] = 'as.dto.common.search.DateObjectEqualToValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "equal to '" + this.getFormattedValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateObjectLaterThanOrEqualToValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateObjectLaterThanOrEqualToValue.js similarity index 70% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateObjectLaterThanOrEqualToValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateObjectLaterThanOrEqualToValue.js index e65a9cb6a2c51775b5d3400833432b87186688b9..9524515778047b4d446748a7bb94181ede7600e9 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DateObjectLaterThanOrEqualToValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DateObjectLaterThanOrEqualToValue.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/search/AbstractDateObjectValue" ], function(stjs, AbstractDateObjectValue) { +define([ "stjs", "as/dto/common/search/AbstractDateObjectValue" ], function(stjs, AbstractDateObjectValue) { var DateObjectLaterThanOrEqualToValue = function(value) { AbstractDateObjectValue.call(this, value); }; stjs.extend(DateObjectLaterThanOrEqualToValue, AbstractDateObjectValue, [ AbstractDateObjectValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DateObjectLaterThanOrEqualToValue'; + prototype['@type'] = 'as.dto.common.search.DateObjectLaterThanOrEqualToValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "later than or equal to '" + this.getFormattedValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DatePropertySearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DatePropertySearchCriteria.js similarity index 69% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DatePropertySearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DatePropertySearchCriteria.js index 5084231f935e59f8d4bf27e31654dc87f1525005..05af695a7ea6923176a97ba5db09e53e034af4ac 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DatePropertySearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/DatePropertySearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/DateFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, DateFieldSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/DateFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, DateFieldSearchCriteria, SearchFieldType) { var DatePropertySearchCriteria = function(fieldName) { DateFieldSearchCriteria.call(this, fieldName, SearchFieldType.PROPERTY); }; stjs.extend(DatePropertySearchCriteria, DateFieldSearchCriteria, [ DateFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DatePropertySearchCriteria'; + prototype['@type'] = 'as.dto.common.search.DatePropertySearchCriteria'; constructor.serialVersionUID = 1; }, { DATE_FORMATS : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/IDate.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/IDate.js similarity index 100% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/IDate.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/IDate.js diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/IDateFormat.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/IDateFormat.js new file mode 100644 index 0000000000000000000000000000000000000000..052454ffdc0c22509b0d8020694e1150f090d7f2 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/IDateFormat.js @@ -0,0 +1,10 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var IDateFormat = function() { + }; + stjs.extend(IDateFormat, null, [], function(constructor, prototype) { + prototype.getFormat = function() { + throw new exceptions.RuntimeException("Interface method."); + }; + }, {}); + return IDateFormat; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ISearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ISearchCriteria.js similarity index 100% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ISearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ISearchCriteria.js diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ITimeZone.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ITimeZone.js similarity index 100% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ITimeZone.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ITimeZone.js diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/IdSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/IdSearchCriteria.js similarity index 82% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/IdSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/IdSearchCriteria.js index 118258bfcece99aac3237548f21c7da7c15ff16f..8bae60dd533117217ed1ca11d5dd3317211c19a7 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/IdSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/IdSearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractSearchCriteria" ], function(stjs, AbstractSearchCriteria) { +define([ "stjs", "as/dto/common/search/AbstractSearchCriteria" ], function(stjs, AbstractSearchCriteria) { var IdSearchCriteria = function() { AbstractSearchCriteria.call(this); }; stjs.extend(IdSearchCriteria, AbstractSearchCriteria, [ AbstractSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.IdSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.IdSearchCriteria'; constructor.serialVersionUID = 1; prototype.id = null; prototype.thatEquals = function(id) { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/LongDateFormat.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/LongDateFormat.js similarity index 69% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/LongDateFormat.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/LongDateFormat.js index 75e67d43ea1e8fdef65073b6fac0f9c7e59ea2f4..64893cc398632e79bece98803b37f849c24eed17 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/LongDateFormat.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/LongDateFormat.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/IDateFormat" ], function(stjs, IDateFormat) { +define([ "stjs", "as/dto/common/search/IDateFormat" ], function(stjs, IDateFormat) { var LongDateFormat = function() { }; stjs.extend(LongDateFormat, null, [ IDateFormat ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.LongDateFormat'; + prototype['@type'] = 'as.dto.common.search.LongDateFormat'; prototype.getFormat = function() { return "YYYY-MM-DD HH:mm:ss"; }; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ModificationDateSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ModificationDateSearchCriteria.js similarity index 69% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ModificationDateSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ModificationDateSearchCriteria.js index 74d017730a72161f6cac89929fdcba75f32d78dc..b2a9bb8a31b684d74f5cc5319062f8e2647d63dc 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ModificationDateSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ModificationDateSearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/DateFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, DateFieldSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/DateFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, DateFieldSearchCriteria, SearchFieldType) { var ModificationDateSearchCriteria = function() { DateFieldSearchCriteria.call(this, "modification_date", SearchFieldType.ATTRIBUTE); }; stjs.extend(ModificationDateSearchCriteria, DateFieldSearchCriteria, [ DateFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.ModificationDateSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.ModificationDateSearchCriteria'; constructor.serialVersionUID = 1; }, { DATE_FORMATS : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NormalDateFormat.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NormalDateFormat.js similarity index 69% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NormalDateFormat.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NormalDateFormat.js index 0230a2416c058b7ef1d4ad1a0f8efe4109f749e6..b6cc09bb84ecb37380972610e763b5643601be05 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NormalDateFormat.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NormalDateFormat.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/IDateFormat" ], function(stjs, IDateFormat) { +define([ "stjs", "as/dto/common/search/IDateFormat" ], function(stjs, IDateFormat) { var NormalDateFormat = function() { }; stjs.extend(NormalDateFormat, null, [ IDateFormat ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NormalDateFormat'; + prototype['@type'] = 'as.dto.common.search.NormalDateFormat'; prototype.getFormat = function() { return "YYYY-MM-DD HH:mm"; }; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberEqualToValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberEqualToValue.js similarity index 70% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberEqualToValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberEqualToValue.js index a4e9d874be377ac09e837928d39e19988505021d..57778e71c93c6bd99a52206f976951fba8781981 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberEqualToValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberEqualToValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractNumberValue" ], function(stjs, AbstractNumberValue) { +define([ "stjs", "as/dto/common/search/AbstractNumberValue" ], function(stjs, AbstractNumberValue) { var NumberEqualToValue = function(number) { AbstractNumberValue.call(this, number); }; stjs.extend(NumberEqualToValue, AbstractNumberValue, [ AbstractNumberValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NumberEqualToValue'; + prototype['@type'] = 'as.dto.common.search.NumberEqualToValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "equal to '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberFieldSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberFieldSearchCriteria.js similarity index 50% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberFieldSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberFieldSearchCriteria.js index 30c0c75d6215c8d5015790888b2ef31d9295a89c..88fd61f3ad407e9525cef6b03f29f9dcc0f2f903 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberFieldSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberFieldSearchCriteria.js @@ -1,31 +1,30 @@ -define([ "require", "stjs", "dto/search/AbstractFieldSearchCriteria", - "dto/search/NumberEqualToValue", "dto/search/NumberLessThanValue", "dto/search/NumberLessThanOrEqualToValue", - "dto/search/NumberGreaterThanValue", "dto/search/NumberGreaterThanOrEqualToValue"], - function(require, stjs, AbstractFieldSearchCriteria) { +define([ "require", "stjs", "as/dto/common/search/AbstractFieldSearchCriteria", "as/dto/common/search/NumberEqualToValue", "as/dto/common/search/NumberLessThanValue", + "as/dto/common/search/NumberLessThanOrEqualToValue", "as/dto/common/search/NumberGreaterThanValue", "as/dto/common/search/NumberGreaterThanOrEqualToValue" ], function(require, stjs, + AbstractFieldSearchCriteria) { var NumberFieldSearchCriteria = function(fieldName, fieldType) { AbstractFieldSearchCriteria.call(this, fieldName, fieldType); }; stjs.extend(NumberFieldSearchCriteria, AbstractFieldSearchCriteria, [ AbstractFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NumberFieldSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.NumberFieldSearchCriteria'; constructor.serialVersionUID = 1; - prototype.equalTo = function(number) { - var NumberEqualToValue = require("dto/search/NumberEqualToValue"); + prototype.thatEquals = function(number) { + var NumberEqualToValue = require("as/dto/common/search/NumberEqualToValue"); this.setFieldValue(new NumberEqualToValue(number)); }; prototype.thatIsLessThan = function(number) { - var NumberLessThanValue = require("dto/search/NumberLessThanValue"); + var NumberLessThanValue = require("as/dto/common/search/NumberLessThanValue"); this.setFieldValue(new NumberLessThanValue(number)); }; prototype.thatIsLessThanOrEqualTo = function(number) { - var NumberLessThanOrEqualToValue = require("dto/search/NumberLessThanOrEqualToValue"); + var NumberLessThanOrEqualToValue = require("as/dto/common/search/NumberLessThanOrEqualToValue"); this.setFieldValue(new NumberLessThanOrEqualToValue(number)); }; prototype.thatIsGreaterThan = function(number) { - var NumberGreaterThanValue = require("dto/search/NumberGreaterThanValue"); + var NumberGreaterThanValue = require("as/dto/common/search/NumberGreaterThanValue"); this.setFieldValue(new NumberGreaterThanValue(number)); }; prototype.thatIsGreaterThanOrEqualTo = function(number) { - var NumberGreaterThanOrEqualToValue = require("dto/search/NumberGreaterThanOrEqualToValue"); + var NumberGreaterThanOrEqualToValue = require("as/dto/common/search/NumberGreaterThanOrEqualToValue"); this.setFieldValue(new NumberGreaterThanOrEqualToValue(number)); }; }, { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberGreaterThanOrEqualToValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberGreaterThanOrEqualToValue.js similarity index 71% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberGreaterThanOrEqualToValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberGreaterThanOrEqualToValue.js index 6e596221bb44bf57be23d38948f71750f669014f..7bec8192c576b31d6a72c04c8b1a988e469cafee 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberGreaterThanOrEqualToValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberGreaterThanOrEqualToValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractNumberValue" ], function(stjs, AbstractNumberValue) { +define([ "stjs", "as/dto/common/search/AbstractNumberValue" ], function(stjs, AbstractNumberValue) { var NumberGreaterOrEqualThanValue = function(number) { AbstractNumberValue.call(this, number); }; stjs.extend(NumberGreaterOrEqualThanValue, AbstractNumberValue, [ AbstractNumberValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NumberGreaterThanOrEqualToValue'; + prototype['@type'] = 'as.dto.common.search.NumberGreaterThanOrEqualToValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "greater or equal to '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberGreaterThanValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberGreaterThanValue.js similarity index 70% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberGreaterThanValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberGreaterThanValue.js index a617cea23e0e3dc31896c3399ff411320c8d07ef..ad806f6c6b9aefa05eb0e73a6907997f7497684d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberGreaterThanValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberGreaterThanValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractNumberValue" ], function(stjs, AbstractNumberValue) { +define([ "stjs", "as/dto/common/search/AbstractNumberValue" ], function(stjs, AbstractNumberValue) { var NumberGreaterThanValue = function(number) { AbstractNumberValue.call(this, number); }; stjs.extend(NumberGreaterThanValue, AbstractNumberValue, [ AbstractNumberValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NumberGreaterThanValue'; + prototype['@type'] = 'as.dto.common.search.NumberGreaterThanValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "greater than '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberLessThanOrEqualToValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberLessThanOrEqualToValue.js similarity index 70% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberLessThanOrEqualToValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberLessThanOrEqualToValue.js index 2d53e8de8c809bfa02dc31ab6182da1799080e4f..850af284680fa93f95945fb2f2b7c180e56e0a51 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberLessThanOrEqualToValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberLessThanOrEqualToValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractNumberValue" ], function(stjs, AbstractNumberValue) { +define([ "stjs", "as/dto/common/search/AbstractNumberValue" ], function(stjs, AbstractNumberValue) { var NumberLessOrEqualThanValue = function(number) { AbstractNumberValue.call(this, number); }; stjs.extend(NumberLessOrEqualThanValue, AbstractNumberValue, [ AbstractNumberValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NumberLessThanOrEqualToValue'; + prototype['@type'] = 'as.dto.common.search.NumberLessThanOrEqualToValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "less or equal to '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberLessThanValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberLessThanValue.js similarity index 70% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberLessThanValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberLessThanValue.js index cdebdf6cb566c78fd50fef9c54c1982a563ee6b2..0e4b200378d5e7abc7d23b9a9b4b4c6677f39b6f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberLessThanValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberLessThanValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractNumberValue" ], function(stjs, AbstractNumberValue) { +define([ "stjs", "as/dto/common/search/AbstractNumberValue" ], function(stjs, AbstractNumberValue) { var NumberLessThanValue = function(number) { AbstractNumberValue.call(this, number); }; stjs.extend(NumberLessThanValue, AbstractNumberValue, [ AbstractNumberValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NumberLessThanValue'; + prototype['@type'] = 'as.dto.common.search.NumberLessThanValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "less than '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberPropertySearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberPropertySearchCriteria.js similarity index 65% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberPropertySearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberPropertySearchCriteria.js index 12918ad0429f834072640fd21c4a46c6a091ec0e..0810f847ebd21c5e6971c32db43be270ecd3023f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NumberPropertySearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/NumberPropertySearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/NumberFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, NumberFieldSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/NumberFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, NumberFieldSearchCriteria, SearchFieldType) { var NumberPropertySearchCriteria = function(fieldName) { NumberFieldSearchCriteria.call(this, fieldName, SearchFieldType.PROPERTY); }; stjs.extend(NumberPropertySearchCriteria, NumberFieldSearchCriteria, [ NumberFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NumberPropertySearchCriteria'; + prototype['@type'] = 'as.dto.common.search.NumberPropertySearchCriteria'; constructor.serialVersionUID = 1; }, { fieldType : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/PermIdSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/PermIdSearchCriteria.js similarity index 64% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/PermIdSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/PermIdSearchCriteria.js index 5fe5e68e38191587c514bfc38834e3eea86ade02..f5289936c2b2b19c97f62e7b414cbf9d76c1607c 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/PermIdSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/PermIdSearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/StringFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/StringFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) { var PermIdSearchCriteria = function() { StringFieldSearchCriteria.call(this, "perm id", SearchFieldType.ATTRIBUTE); }; stjs.extend(PermIdSearchCriteria, StringFieldSearchCriteria, [ StringFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.PermIdSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.PermIdSearchCriteria'; constructor.serialVersionUID = 1; }, { fieldType : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/RegistrationDateSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/RegistrationDateSearchCriteria.js similarity index 69% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/RegistrationDateSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/RegistrationDateSearchCriteria.js index a472c60430efdf4f6265685e42af809ba0139657..22f1e5288aadeb9e83b875af6df1c0f3dbfc6e91 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/RegistrationDateSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/RegistrationDateSearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/DateFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, DateFieldSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/DateFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, DateFieldSearchCriteria, SearchFieldType) { var RegistrationDateSearchCriteria = function() { DateFieldSearchCriteria.call(this, "registration_date", SearchFieldType.ATTRIBUTE); }; stjs.extend(RegistrationDateSearchCriteria, DateFieldSearchCriteria, [ DateFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.RegistrationDateSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.RegistrationDateSearchCriteria'; constructor.serialVersionUID = 1; }, { DATE_FORMATS : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchCriteriaToStringBuilder.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchCriteriaToStringBuilder.js similarity index 88% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchCriteriaToStringBuilder.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchCriteriaToStringBuilder.js index 6e8c8015195d9cccff2f7d98f07a1763b65977ab..8e5c82ceb17f431516bf37a05b633b62e5a80e16 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchCriteriaToStringBuilder.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchCriteriaToStringBuilder.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractCompositeSearchCriteria" ], function(stjs, AbstractCompositeSearchCriteria) { +define([ "stjs", "as/dto/common/search/AbstractCompositeSearchCriteria" ], function(stjs, AbstractCompositeSearchCriteria) { var SearchCriteriaToStringBuilder = function() { }; stjs.extend(SearchCriteriaToStringBuilder, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.search.SearchCriteriaToStringBuilder'; + prototype['@type'] = 'as.dto.common.search.SearchCriteriaToStringBuilder'; prototype.name = null; prototype.operator = null; prototype.criteria = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchFieldType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchFieldType.js new file mode 100644 index 0000000000000000000000000000000000000000..2dae3c6554af7623e15a4e125e74f3a32155772b --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchFieldType.js @@ -0,0 +1,12 @@ +/** + * @author pkupczyk + */ + +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var SearchFieldType = function() { + Enum.call(this, [ "PROPERTY", "ATTRIBUTE", "ANY_PROPERTY", "ANY_FIELD" ]); + }; + stjs.extend(SearchFieldType, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new SearchFieldType(); +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchOperator.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchOperator.js new file mode 100644 index 0000000000000000000000000000000000000000..bcbcb60cedb60e418d0488760f8a849a8e78b1ce --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchOperator.js @@ -0,0 +1,12 @@ +/** + * @author pkupczyk + */ + +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var SearchOperator = function() { + Enum.call(this, [ "AND", "OR" ]); + }; + stjs.extend(SearchOperator, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new SearchOperator(); +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchResult.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchResult.js similarity index 89% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchResult.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchResult.js index 6171830e666509da9af63e16a99cfab949e7dc0c..64feea32d31e57836002d604ba47132f39815d27 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchResult.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/SearchResult.js @@ -7,7 +7,7 @@ define([ "stjs" ], function(stjs) { this.totalCount = 0; }; stjs.extend(SearchResult, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.search.SearchResult'; + prototype['@type'] = 'as.dto.common.search.SearchResult'; constructor.serialVersionUID = 1; prototype.getObjects = function() { return this.objects; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ServerTimeZone.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ServerTimeZone.js similarity index 56% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ServerTimeZone.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ServerTimeZone.js index 3f26c2a7dd073819cf34ee7da859141a7ce73918..a6c5fea09cf8e7d51131cce037386ab4f9402090 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ServerTimeZone.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ServerTimeZone.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/ITimeZone" ], function(stjs, ITimeZone) { +define([ "stjs", "as/dto/common/search/ITimeZone" ], function(stjs, ITimeZone) { var ServerTimeZone = function() { }; stjs.extend(ServerTimeZone, null, [ ITimeZone ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.ServerTimeZone'; + prototype['@type'] = 'as.dto.common.search.ServerTimeZone'; }, {}); return ServerTimeZone; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ShortDateFormat.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ShortDateFormat.js similarity index 68% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ShortDateFormat.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ShortDateFormat.js index 90c32efd7f882d0d3311ca74d3c40ee8e06297c6..2390a4dd2b5ae39d51351c3f2a43dcd864089809 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ShortDateFormat.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/ShortDateFormat.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/IDateFormat" ], function(stjs, IDateFormat) { +define([ "stjs", "as/dto/common/search/IDateFormat" ], function(stjs, IDateFormat) { var ShortDateFormat = function() { }; stjs.extend(ShortDateFormat, null, [ IDateFormat ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.ShortDateFormat'; + prototype['@type'] = 'as.dto.common.search.ShortDateFormat'; prototype.getFormat = function() { return "YYYY-MM-DD"; }; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringContainsValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringContainsValue.js similarity index 68% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringContainsValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringContainsValue.js index 1d759751d2b084fbe9849f8efee185a9c3ac6b01..d81b7eed2087f7f15ea050cb9dd023cf0e87f0a6 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringContainsValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringContainsValue.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/search/AbstractStringValue" ], function(stjs, AbstractStringValue) { +define([ "stjs", "as/dto/common/search/AbstractStringValue" ], function(stjs, AbstractStringValue) { var StringContainsValue = function(value) { AbstractStringValue.call(this, value); }; stjs.extend(StringContainsValue, AbstractStringValue, [ AbstractStringValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.StringContainsValue'; + prototype['@type'] = 'as.dto.common.search.StringContainsValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "contains '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringEndsWithValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringEndsWithValue.js similarity index 68% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringEndsWithValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringEndsWithValue.js index c626fe32edca7e72955ee9fc0e3504fadc90a9a7..fdc3f641db045d10ebd1278ae5d54c558323da68 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringEndsWithValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringEndsWithValue.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/search/AbstractStringValue" ], function(stjs, AbstractStringValue) { +define([ "stjs", "as/dto/common/search/AbstractStringValue" ], function(stjs, AbstractStringValue) { var StringEndsWithValue = function(value) { AbstractStringValue.call(this, value); }; stjs.extend(StringEndsWithValue, AbstractStringValue, [ AbstractStringValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.StringEndsWithValue'; + prototype['@type'] = 'as.dto.common.search.StringEndsWithValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "ends with '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringEqualToValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringEqualToValue.js similarity index 68% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringEqualToValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringEqualToValue.js index 6863c32c93d1ee3d61df039b9ea40763f829a9cd..afa753f12d1ea0372b4fede073503ea77fd648dd 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringEqualToValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringEqualToValue.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/search/AbstractStringValue" ], function(stjs, AbstractStringValue) { +define([ "stjs", "as/dto/common/search/AbstractStringValue" ], function(stjs, AbstractStringValue) { var StringEqualToValue = function(value) { AbstractStringValue.call(this, value); }; stjs.extend(StringEqualToValue, AbstractStringValue, [ AbstractStringValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.StringEqualToValue'; + prototype['@type'] = 'as.dto.common.search.StringEqualToValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "equal to '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringFieldSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringFieldSearchCriteria.js similarity index 52% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringFieldSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringFieldSearchCriteria.js index 041c2796029d08f0271b1ce3d7769e731c40a313..fd9962f454cb889af5a0db69eb7613c513107615 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringFieldSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringFieldSearchCriteria.js @@ -1,29 +1,27 @@ -define([ "require", "stjs", "dto/search/AbstractFieldSearchCriteria", - "dto/search/StringEqualToValue", "dto/search/StringStartsWithValue", "dto/search/StringEndsWithValue", - "dto/search/StringContainsValue", "dto/search/AnyStringValue"], - function(require, stjs, AbstractFieldSearchCriteria) { +define([ "require", "stjs", "as/dto/common/search/AbstractFieldSearchCriteria", "as/dto/common/search/StringEqualToValue", "as/dto/common/search/StringStartsWithValue", + "as/dto/common/search/StringEndsWithValue", "as/dto/common/search/StringContainsValue", "as/dto/common/search/AnyStringValue" ], function(require, stjs, AbstractFieldSearchCriteria) { var StringFieldSearchCriteria = function(fieldName, fieldType) { AbstractFieldSearchCriteria.call(this, fieldName, fieldType); - var AnyStringValue = require("dto/search/AnyStringValue"); + var AnyStringValue = require("as/dto/common/search/AnyStringValue"); this.setFieldValue(new AnyStringValue()); }; stjs.extend(StringFieldSearchCriteria, AbstractFieldSearchCriteria, [ AbstractFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.StringFieldSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.StringFieldSearchCriteria'; constructor.serialVersionUID = 1; prototype.thatEquals = function(string) { - var StringEqualToValue = require("dto/search/StringEqualToValue"); + var StringEqualToValue = require("as/dto/common/search/StringEqualToValue"); this.setFieldValue(new StringEqualToValue(string)); }; prototype.thatStartsWith = function(prefix) { - var StringStartsWithValue = require("dto/search/StringStartsWithValue"); + var StringStartsWithValue = require("as/dto/common/search/StringStartsWithValue"); this.setFieldValue(new StringStartsWithValue(prefix)); }; prototype.thatEndsWith = function(suffix) { - var StringEndsWithValue = require("dto/search/StringEndsWithValue"); + var StringEndsWithValue = require("as/dto/common/search/StringEndsWithValue"); this.setFieldValue(new StringEndsWithValue(suffix)); }; prototype.thatContains = function(string) { - var StringContainsValue = require("dto/search/StringContainsValue"); + var StringContainsValue = require("as/dto/common/search/StringContainsValue"); this.setFieldValue(new StringContainsValue(string)); }; }, { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringPropertySearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringPropertySearchCriteria.js similarity index 65% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringPropertySearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringPropertySearchCriteria.js index 5224de8175ba8f2ab6863d383750f0568c55ec42..1f435200fb20a5eb6ca392d4f0b7c7801ddb6dc0 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringPropertySearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringPropertySearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/StringFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/StringFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) { var StringPropertySearchCriteria = function(fieldName) { StringFieldSearchCriteria.call(this, fieldName, SearchFieldType.PROPERTY); }; stjs.extend(StringPropertySearchCriteria, StringFieldSearchCriteria, [ StringFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.StringPropertySearchCriteria'; + prototype['@type'] = 'as.dto.common.search.StringPropertySearchCriteria'; constructor.serialVersionUID = 1; }, { fieldType : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringStartsWithValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringStartsWithValue.js similarity index 69% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringStartsWithValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringStartsWithValue.js index c0672f815bca21b067d68b07d590f66938bb0159..659a6d85b3c235f5dc413fb48e8df6d9eb48852a 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/StringStartsWithValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/StringStartsWithValue.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/search/AbstractStringValue" ], function(stjs, AbstractStringValue) { +define([ "stjs", "as/dto/common/search/AbstractStringValue" ], function(stjs, AbstractStringValue) { var StringStartsWithValue = function(value) { AbstractStringValue.call(this, value); }; stjs.extend(StringStartsWithValue, AbstractStringValue, [ AbstractStringValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.StringStartsWithValue'; + prototype['@type'] = 'as.dto.common.search.StringStartsWithValue'; constructor.serialVersionUID = 1; prototype.toString = function() { return "starts with '" + this.getValue() + "'"; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/TechIdSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/TechIdSearchCriteria.js similarity index 64% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/TechIdSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/TechIdSearchCriteria.js index a8c4cfc9abb8fb64ad61fa684a1e4e495a3e6fe5..3a6b41946fe0041bef04fb6a3991dee73a913115 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/TechIdSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/TechIdSearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/NumberFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, NumberFieldSearchCriteria, SearchFieldType) { +define([ "stjs", "as/dto/common/search/NumberFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, NumberFieldSearchCriteria, SearchFieldType) { var TechIdSearchCriteria = function() { NumberFieldSearchCriteria.call(this, "id", SearchFieldType.ATTRIBUTE); }; stjs.extend(TechIdSearchCriteria, NumberFieldSearchCriteria, [ NumberFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.TechIdSearchCriteria'; + prototype['@type'] = 'as.dto.common.search.TechIdSearchCriteria'; constructor.serialVersionUID = 1; }, { fieldType : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/TimeZone.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/TimeZone.js similarity index 69% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/TimeZone.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/TimeZone.js index 6952c4a7ae3971765eef65f8262c9510bcf29a72..bafc1c6bf8b5cb6b18a17eb61801875b8a9a59f5 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/TimeZone.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/search/TimeZone.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/ITimeZone" ], function(stjs, ITimeZone) { +define([ "stjs", "as/dto/common/search/ITimeZone" ], function(stjs, ITimeZone) { var TimeZone = function(hourOffset) { this.hourOffset = hourOffset; }; stjs.extend(TimeZone, null, [ ITimeZone ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.TimeZone'; + prototype['@type'] = 'as.dto.common.search.TimeZone'; prototype.hourOffset = 0; prototype.getHourOffset = function() { return this.hourOffset; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/FieldUpdateValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/FieldUpdateValue.js similarity index 92% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/FieldUpdateValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/FieldUpdateValue.js index bfef318c4ccd35ea93a8b45edd39738cf96fa602..d8dbb131524132195bf81af4a0a4bbb80edb1253 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/FieldUpdateValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/FieldUpdateValue.js @@ -7,7 +7,7 @@ define([ "stjs" ], function(stjs) { var FieldUpdateValue = function() { }; stjs.extend(FieldUpdateValue, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.FieldUpdateValue'; + prototype['@type'] = 'as.dto.common.update.FieldUpdateValue'; constructor.serialVersionUID = 1; prototype.isModified = false; prototype.value = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/IdListUpdateValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/IdListUpdateValue.js similarity index 72% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/IdListUpdateValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/IdListUpdateValue.js index 5c673ebed1a6230d9ba0ff43bda883da4854a45e..e9f38abeda9d1557250fb77226e44d55b5d2821c 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/IdListUpdateValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/IdListUpdateValue.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/ListUpdateValue" ], function(stjs, ListUpdateValue) { +define([ "stjs", "as/dto/common/update/ListUpdateValue" ], function(stjs, ListUpdateValue) { var IdListUpdateValue = function() { ListUpdateValue.call(this); }; stjs.extend(IdListUpdateValue, ListUpdateValue, [ ListUpdateValue ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.IdListUpdateValue'; + prototype['@type'] = 'as.dto.common.update.IdListUpdateValue'; constructor.serialVersionUID = 1; }, { actions : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateAction.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateAction.js similarity index 87% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateAction.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateAction.js index 4dadef12f8584e57b0842f9b70b9a8dc7485e766..cf52b520e64a47db895c2faa35748aa630651399 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateAction.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateAction.js @@ -2,7 +2,7 @@ define([ "stjs" ], function(stjs) { ListUpdateAction = function() { }; stjs.extend(ListUpdateAction, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.ListUpdateAction'; + prototype['@type'] = 'as.dto.common.update.ListUpdateAction'; constructor.serialVersionUID = 1; prototype.items = null; prototype.getItems = function() { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateActionAdd.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateActionAdd.js similarity index 66% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateActionAdd.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateActionAdd.js index 37d535dd94dc9356c29a4345d1b896012a683961..4eb2bc21d80c34e7e96b30b3d912fa5db34b62fe 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateActionAdd.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateActionAdd.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/entity/ListUpdateAction" ], function(stjs, ListUpdateAction) { +define([ "stjs", "as/dto/common/update/ListUpdateAction" ], function(stjs, ListUpdateAction) { ListUpdateActionAdd = function() { ListUpdateAction.call(this); }; stjs.extend(ListUpdateActionAdd, ListUpdateAction, [ ListUpdateAction ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.ListUpdateActionAdd'; + prototype['@type'] = 'as.dto.common.update.ListUpdateActionAdd'; constructor.serialVersionUID = 1; }, { items : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateActionRemove.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateActionRemove.js similarity index 66% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateActionRemove.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateActionRemove.js index 395b8a226ffa8406c298bff3352a9c04f85dad99..3ae25bbdb9b91e84d8d397afb5008590111b7260 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateActionRemove.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateActionRemove.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/entity/ListUpdateAction" ], function(stjs, ListUpdateAction) { +define([ "stjs", "as/dto/common/update/ListUpdateAction" ], function(stjs, ListUpdateAction) { ListUpdateActionRemove = function() { ListUpdateAction.call(this); }; stjs.extend(ListUpdateActionRemove, ListUpdateAction, [ ListUpdateAction ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.ListUpdateActionRemove'; + prototype['@type'] = 'as.dto.common.update.ListUpdateActionRemove'; constructor.serialVersionUID = 1; }, { items : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateActionSet.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateActionSet.js similarity index 66% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateActionSet.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateActionSet.js index 912ece83fc2130ceb2089c0bc3fac7c54abab769..56973eccf1b75584b5651deb0c1b69317eaff2c2 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateActionSet.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateActionSet.js @@ -1,9 +1,9 @@ -define([ "stjs", "dto/entity/ListUpdateAction" ], function(stjs, ListUpdateAction) { +define([ "stjs", "as/dto/common/update/ListUpdateAction" ], function(stjs, ListUpdateAction) { ListUpdateActionSet = function() { ListUpdateAction.call(this); }; stjs.extend(ListUpdateActionSet, ListUpdateAction, [ ListUpdateAction ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.ListUpdateActionSet'; + prototype['@type'] = 'as.dto.common.update.ListUpdateActionSet'; constructor.serialVersionUID = 1; }, { items : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateValue.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateValue.js similarity index 78% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateValue.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateValue.js index 05c35dff7ecd4909c8c36241f8d2711a08e34495..1e9399fec4f0607270246bfdaaba2b91c70e791c 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/ListUpdateValue.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/common/update/ListUpdateValue.js @@ -1,10 +1,10 @@ -define([ "stjs", "dto/entity/ListUpdateActionRemove", "dto/entity/ListUpdateActionAdd", "dto/entity/ListUpdateActionSet" ], function(stjs, ListUpdateActionRemove, ListUpdateActionAdd, - ListUpdateActionSet) { +define([ "stjs", "as/dto/common/update/ListUpdateActionRemove", "as/dto/common/update/ListUpdateActionAdd", "as/dto/common/update/ListUpdateActionSet" ], function(stjs, ListUpdateActionRemove, + ListUpdateActionAdd, ListUpdateActionSet) { var ListUpdateValue = function() { this.actions = []; }; stjs.extend(ListUpdateValue, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.ListUpdateValue'; + prototype['@type'] = 'as.dto.common.update.ListUpdateValue'; constructor.serialVersionUID = 1; prototype.setActions = function(actions) { this.actions = actions; @@ -22,7 +22,7 @@ define([ "stjs", "dto/entity/ListUpdateActionRemove", "dto/entity/ListUpdateActi if (items === null) { return []; } - return [items]; + return [ items ]; } var createAction = function(actions, actionClass, items) { var action = new actionClass(); diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/ArchivingStatus.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/ArchivingStatus.js new file mode 100644 index 0000000000000000000000000000000000000000..92fc7585b8f555ebf3e6c20f75cccefbc1661c58 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/ArchivingStatus.js @@ -0,0 +1,12 @@ +/** + * @author pkupczyk + */ + +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var ArchivingStatus = function() { + Enum.call(this, [ "AVAILABLE", "LOCKED", "ARCHIVED", "UNARCHIVE_PENDING", "ARCHIVE_PENDING", "BACKUP_PENDING" ]); + }; + stjs.extend(ArchivingStatus, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new ArchivingStatus(); +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/Complete.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/Complete.js new file mode 100644 index 0000000000000000000000000000000000000000..860ce08179357928c0eeabb59985be3acd9f1da7 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/Complete.js @@ -0,0 +1,11 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var Complete = function() { + Enum.call(this, [ "YES", "NO", "UNKNOWN" ]); + }; + stjs.extend(Complete, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new Complete(); +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSet.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/DataSet.js similarity index 82% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSet.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/DataSet.js index 05d5cedef6155c5686d2fbcc4dd1c92600ed0b90..f3e1bd3af42e292e903ab012586efcca645aa11a 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSet.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/DataSet.js @@ -6,21 +6,23 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var DataSet = function() { }; stjs.extend(DataSet, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.dataset.DataSet'; + prototype['@type'] = 'as.dto.dataset.DataSet'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; prototype.code = null; prototype.accessDate = null; - prototype.derived = null; + prototype.measured = null; prototype.postRegistered = null; prototype.parents = null; prototype.children = null; prototype.containers = null; prototype.components = null; prototype.physicalData = null; + prototype.linkedData = null; prototype.tags = null; prototype.type = null; + prototype.dataStore = null; prototype.history = null; prototype.modificationDate = null; prototype.modifier = null; @@ -30,6 +32,9 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.sample = null; prototype.properties = null; prototype.materialProperties = null; + prototype.dataProducer = null; + prototype.dataProductionDate = null; + prototype.getFetchOptions = function() { return this.fetchOptions; }; @@ -54,11 +59,11 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setAccessDate = function(accessDate) { this.accessDate = accessDate; }; - prototype.isDerived = function() { - return this.derived; + prototype.isMeasured = function() { + return this.measured; }; - prototype.setDerived = function(derived) { - this.derived = derived; + prototype.setMeasured = function(measured) { + this.measured = measured; }; prototype.isPostRegistered = function() { return this.postRegistered; @@ -116,6 +121,16 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setPhysicalData = function(physicalData) { this.physicalData = physicalData; }; + prototype.getLinkedData = function() { + if (this.getFetchOptions().hasLinkedData()) { + return this.linkedData; + } else { + throw new exceptions.NotFetchedException("Linked data has not been fetched."); + } + }; + prototype.setLinkedData = function(linkedData) { + this.linkedData = linkedData; + }; prototype.getTags = function() { if (this.getFetchOptions().hasTags()) { return this.tags; @@ -136,6 +151,16 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setType = function(type) { this.type = type; }; + prototype.getDataStore = function() { + if (this.getFetchOptions().hasDataStore()) { + return this.dataStore; + } else { + throw new exceptions.NotFetchedException("Data store has not been fetched."); + } + }; + prototype.setDataStore = function(dataStore) { + this.dataStore = dataStore; + }; prototype.getHistory = function() { if (this.getFetchOptions().hasHistory()) { return this.history; @@ -212,6 +237,10 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getMaterialProperty = function(propertyName) { + var properties = this.getMaterialProperties(); + return properties ? properties[propertyName] : null; + }; prototype.getMaterialProperties = function() { if (this.getFetchOptions().hasMaterialProperties()) { return this.materialProperties; @@ -222,6 +251,18 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setMaterialProperties = function(materialProperties) { this.materialProperties = materialProperties; }; + 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; + }; }, { fetchOptions : "DataSetFetchOptions", permId : "DataSetPermId", @@ -243,11 +284,13 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { arguments : [ "DataSet" ] }, physicalData : "PhysicalData", + linkedData : "LinkedData", tags : { name : "Set", arguments : [ "Tag" ] }, type : "DataSetType", + dataStore : "DataStore", history : { name : "List", arguments : [ "HistoryEntry" ] @@ -265,7 +308,8 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { materialProperties : { name : "Map", arguments : [ null, "Material" ] - } + }, + dataProductionDate : "Date" }); return DataSet; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/DataSetKind.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/DataSetKind.js new file mode 100644 index 0000000000000000000000000000000000000000..9f8466617b99d9d448b7e55772996f4614388cb3 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/DataSetKind.js @@ -0,0 +1,11 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var DataSetKind = function() { + Enum.call(this, [ "PHYSICAL", "CONTAINER", "LINK" ]); + }; + stjs.extend(DataSetKind, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new DataSetKind(); +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSetType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/DataSetType.js similarity index 96% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSetType.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/DataSetType.js index cd1d65cb6ef0033eb0e7510a94a745a10cbb849c..2f42985b3e84a3437936ee8ee97980515364eb9a 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSetType.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/DataSetType.js @@ -6,7 +6,7 @@ define([ "stjs" ], function(stjs) { var DataSetType = function() { }; stjs.extend(DataSetType, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.dataset.DataSetType'; + prototype['@type'] = 'as.dto.dataset.DataSetType'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/FileFormatType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/FileFormatType.js similarity index 94% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/FileFormatType.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/FileFormatType.js index 7e357031e7ef1a476766f8d9f70b0193043fdd47..a782d0545865c0392402a44aa66d083c05abfc40 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/FileFormatType.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/FileFormatType.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var FileFormatType = function() { }; stjs.extend(FileFormatType, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.dataset.FileFormatType'; + prototype['@type'] = 'as.dto.dataset.FileFormatType'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.code = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/LinkedData.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/LinkedData.js new file mode 100644 index 0000000000000000000000000000000000000000..00e35f441c96f7d30382d6716dd6cdfcf5ba5476 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/LinkedData.js @@ -0,0 +1,42 @@ +/** + * Class automatically generated with + * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} + */ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var LinkedData = function() { + }; + stjs.extend(LinkedData, null, [], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.LinkedData'; + constructor.serialVersionUID = 1; + prototype.fetchOptions = null; + prototype.externalCode = null; + prototype.externalDms = null; + + prototype.getFetchOptions = function() { + return this.fetchOptions; + }; + prototype.setFetchOptions = function(fetchOptions) { + this.fetchOptions = fetchOptions; + }; + prototype.getExternalCode = function() { + return this.externalCode; + }; + prototype.setExternalCode = function(externalCode) { + this.externalCode = externalCode; + }; + prototype.getExternalDms = function() { + if (this.getFetchOptions().hasExternalDms()) { + return this.externalDms; + } else { + throw new exceptions.NotFetchedException("External data management system has not been fetched."); + } + }; + prototype.setExternalDms = function(externalDms) { + this.externalDms = externalDms; + }; + }, { + fetchOptions : "LinkedDataFetchOptions", + externalDms : "ExternalDms" + }); + return LinkedData; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/LocatorType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/LocatorType.js similarity index 94% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/LocatorType.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/LocatorType.js index bb2955b1f7ce955b8cd07031f862d77a6724c00a..1959d628a83127d323346c76bc591b73334e29c6 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/LocatorType.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/LocatorType.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var LocatorType = function() { }; stjs.extend(LocatorType, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.dataset.LocatorType'; + prototype['@type'] = 'as.dto.dataset.LocatorType'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.code = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/PhysicalData.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/PhysicalData.js similarity index 98% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/PhysicalData.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/PhysicalData.js index cc7e291548888f2349d2643169ffdd0d7ed706ac..d6c43cfdfd74cd7c262ca0820875e77dda2eb83c 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/PhysicalData.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/PhysicalData.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var PhysicalData = function() { }; stjs.extend(PhysicalData, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.dataset.PhysicalData'; + prototype['@type'] = 'as.dto.dataset.PhysicalData'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.shareId = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/StorageFormat.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/StorageFormat.js similarity index 94% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/StorageFormat.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/StorageFormat.js index 91bde88f971e0bc7ac20ec2fae5c4efec9bdd78c..6c3aa0c3db033d28176f70dc2999df8fe6e4146b 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/StorageFormat.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/StorageFormat.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var StorageFormat = function() { }; stjs.extend(StorageFormat, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.dataset.StorageFormat'; + prototype['@type'] = 'as.dto.dataset.StorageFormat'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.code = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/dataset/DataSetDeletionOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/delete/DataSetDeletionOptions.js similarity index 63% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/dataset/DataSetDeletionOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/delete/DataSetDeletionOptions.js index 3c67fc255e8ec3b9a446c2ab6962113450ab2d70..24e5924c97815c5ba10fea2ab57badb5004eec5e 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/dataset/DataSetDeletionOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/delete/DataSetDeletionOptions.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { +define([ "stjs", "as/dto/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { var DataSetDeletionOptions = function() { AbstractObjectDeletionOptions.call(this); }; stjs.extend(DataSetDeletionOptions, AbstractObjectDeletionOptions, [ AbstractObjectDeletionOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.deletion.dataset.DataSetDeletionOptions'; + prototype['@type'] = 'as.dto.dataset.delete.DataSetDeletionOptions'; constructor.serialVersionUID = 1; }, {}); return DataSetDeletionOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetFetchOptions.js similarity index 69% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetFetchOptions.js index 8c93880cbcff503c3485374c6e6d67c337d9053c..e503a97bbf68c6ee6f62946885534d40d27ec939 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetFetchOptions.js @@ -2,22 +2,25 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/tag/TagFetchOptions", "dto/fetchoptions/dataset/DataSetTypeFetchOptions", "dto/fetchoptions/person/PersonFetchOptions", - "dto/fetchoptions/experiment/ExperimentFetchOptions", "dto/fetchoptions/sample/SampleFetchOptions", "dto/fetchoptions/property/PropertyFetchOptions", - "dto/fetchoptions/dataset/PhysicalDataFetchOptions", "dto/fetchoptions/history/HistoryEntryFetchOptions", "dto/fetchoptions/material/MaterialFetchOptions", - "dto/fetchoptions/dataset/DataSetSortOptions" ], function(require, stjs, FetchOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/tag/fetchoptions/TagFetchOptions", "as/dto/dataset/fetchoptions/DataSetTypeFetchOptions", + "as/dto/person/fetchoptions/PersonFetchOptions", "as/dto/experiment/fetchoptions/ExperimentFetchOptions", "as/dto/sample/fetchoptions/SampleFetchOptions", + "as/dto/property/fetchoptions/PropertyFetchOptions", "as/dto/dataset/fetchoptions/PhysicalDataFetchOptions", "as/dto/dataset/fetchoptions/LinkedDataFetchOptions", + "as/dto/history/fetchoptions/HistoryEntryFetchOptions", "as/dto/material/fetchoptions/MaterialFetchOptions", "as/dto/datastore/fetchoptions/DataStoreFetchOptions", + "as/dto/dataset/fetchoptions/DataSetSortOptions" ], function(require, stjs, FetchOptions) { var DataSetFetchOptions = function() { }; stjs.extend(DataSetFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.DataSetFetchOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.DataSetFetchOptions'; constructor.serialVersionUID = 1; prototype.parents = null; prototype.children = null; prototype.containers = null; prototype.components = null; prototype.physicalData = null; + prototype.linkedData = null; prototype.tags = null; prototype.type = null; + prototype.dataStore = null; prototype.history = null; prototype.modifier = null; prototype.registrator = null; @@ -76,7 +79,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t }; prototype.withPhysicalData = function() { if (this.physicalData == null) { - var PhysicalDataFetchOptions = require("dto/fetchoptions/dataset/PhysicalDataFetchOptions"); + var PhysicalDataFetchOptions = require("as/dto/dataset/fetchoptions/PhysicalDataFetchOptions"); this.physicalData = new PhysicalDataFetchOptions(); } return this.physicalData; @@ -87,9 +90,22 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t prototype.hasPhysicalData = function() { return this.physicalData != null; }; + prototype.withLinkedData = function() { + if (this.linkedData == null) { + var LinkedDataFetchOptions = require("as/dto/dataset/fetchoptions/LinkedDataFetchOptions"); + this.linkedData = new LinkedDataFetchOptions(); + } + return this.linkedData; + }; + prototype.withLinkedDataUsing = function(fetchOptions) { + return this.linkedData = fetchOptions; + }; + prototype.hasLinkedData = function() { + return this.linkedData != null; + }; prototype.withTags = function() { if (this.tags == null) { - var TagFetchOptions = require("dto/fetchoptions/tag/TagFetchOptions"); + var TagFetchOptions = require("as/dto/tag/fetchoptions/TagFetchOptions"); this.tags = new TagFetchOptions(); } return this.tags; @@ -102,7 +118,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t }; prototype.withType = function() { if (this.type == null) { - var DataSetTypeFetchOptions = require("dto/fetchoptions/dataset/DataSetTypeFetchOptions"); + var DataSetTypeFetchOptions = require("as/dto/dataset/fetchoptions/DataSetTypeFetchOptions"); this.type = new DataSetTypeFetchOptions(); } return this.type; @@ -113,9 +129,22 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t prototype.hasType = function() { return this.type != null; }; + prototype.withDataStore = function() { + if (this.dataStore == null) { + var DataStoreFetchOptions = require("as/dto/datastore/fetchoptions/DataStoreFetchOptions"); + this.dataStore = new DataStoreFetchOptions(); + } + return this.dataStore; + }; + prototype.withDataStoreUsing = function(fetchOptions) { + return this.dataStore = fetchOptions; + }; + prototype.hasDataStore = function() { + return this.dataStore != null; + }; prototype.withHistory = function() { if (this.history == null) { - var HistoryEntryFetchOptions = require("dto/fetchoptions/history/HistoryEntryFetchOptions"); + var HistoryEntryFetchOptions = require("as/dto/history/fetchoptions/HistoryEntryFetchOptions"); this.history = new HistoryEntryFetchOptions(); } return this.history; @@ -128,7 +157,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t }; prototype.withModifier = function() { if (this.modifier == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.modifier = new PersonFetchOptions(); } return this.modifier; @@ -141,7 +170,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t }; prototype.withRegistrator = function() { if (this.registrator == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.registrator = new PersonFetchOptions(); } return this.registrator; @@ -154,7 +183,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t }; prototype.withExperiment = function() { if (this.experiment == null) { - var ExperimentFetchOptions = require("dto/fetchoptions/experiment/ExperimentFetchOptions"); + var ExperimentFetchOptions = require("as/dto/experiment/fetchoptions/ExperimentFetchOptions"); this.experiment = new ExperimentFetchOptions(); } return this.experiment; @@ -167,7 +196,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t }; prototype.withSample = function() { if (this.sample == null) { - var SampleFetchOptions = require("dto/fetchoptions/sample/SampleFetchOptions"); + var SampleFetchOptions = require("as/dto/sample/fetchoptions/SampleFetchOptions"); this.sample = new SampleFetchOptions(); } return this.sample; @@ -180,7 +209,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t }; prototype.withProperties = function() { if (this.properties == null) { - var PropertyFetchOptions = require("dto/fetchoptions/property/PropertyFetchOptions"); + var PropertyFetchOptions = require("as/dto/property/fetchoptions/PropertyFetchOptions"); this.properties = new PropertyFetchOptions(); } return this.properties; @@ -193,7 +222,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t }; prototype.withMaterialProperties = function() { if (this.materialProperties == null) { - var MaterialFetchOptions = require("dto/fetchoptions/material/MaterialFetchOptions"); + var MaterialFetchOptions = require("as/dto/material/fetchoptions/MaterialFetchOptions"); this.materialProperties = new MaterialFetchOptions(); } return this.materialProperties; @@ -206,7 +235,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t }; prototype.sortBy = function() { if (this.sort == null) { - var DataSetSortOptions = require("dto/fetchoptions/dataset/DataSetSortOptions"); + var DataSetSortOptions = require("as/dto/dataset/fetchoptions/DataSetSortOptions"); this.sort = new DataSetSortOptions(); } return this.sort; @@ -222,6 +251,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/t physicalData : "PhysicalDataFetchOptions", tags : "TagFetchOptions", type : "DataSetTypeFetchOptions", + dataStore : "DataStoreFetchOptions", history : "HistoryEntryFetchOptions", modifier : "PersonFetchOptions", registrator : "PersonFetchOptions", diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetSortOptions.js index 9109ae6c0440846982283e22bde72a262a369fd1..a98c12b0fffe5337e34571e9f25bf63dfcb6354f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/EntityWithPropertiesSortOptions" ], function(require, stjs, EntityWithPropertiesSortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/EntityWithPropertiesSortOptions" ], function(require, stjs, EntityWithPropertiesSortOptions) { var DataSetSortOptions = function() { EntityWithPropertiesSortOptions.call(this); }; stjs.extend(DataSetSortOptions, EntityWithPropertiesSortOptions, [ EntityWithPropertiesSortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.DataSetSortOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.DataSetSortOptions'; constructor.serialVersionUID = 1; }, {}); return DataSetSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetTypeFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetTypeFetchOptions.js similarity index 65% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetTypeFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetTypeFetchOptions.js index c1d07cfd9a9421ce07906126420b2dfeb21a5594..d08593aeb9efda354672bc795cf04e2bc4cc01f3 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetTypeFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetTypeFetchOptions.js @@ -2,16 +2,16 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/dataset/DataSetTypeSortOptions" ], function(stjs, FetchOptions) { +define([ "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/dataset/fetchoptions/DataSetTypeSortOptions" ], function(stjs, FetchOptions) { var DataSetTypeFetchOptions = function() { }; stjs.extend(DataSetTypeFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.DataSetTypeFetchOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.DataSetTypeFetchOptions'; constructor.serialVersionUID = 1; prototype.sort = null; prototype.sortBy = function() { if (this.sort == null) { - var DataSetTypeSortOptions = require("dto/fetchoptions/dataset/DataSetTypeSortOptions"); + var DataSetTypeSortOptions = require("as/dto/dataset/fetchoptions/DataSetTypeSortOptions"); this.sort = new DataSetTypeSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetTypeSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetTypeSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetTypeSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetTypeSortOptions.js index a9c7b0df2291c33a2dc368bc432769a66eb9c396..c3e324b8e4cd8373b13d85fd93503a62fe9c9bd2 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/DataSetTypeSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/DataSetTypeSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var DataSetTypeSortOptions = function() { SortOptions.call(this); }; stjs.extend(DataSetTypeSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.DataSetTypeSortOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.DataSetTypeSortOptions'; constructor.serialVersionUID = 1; }, {}); return DataSetTypeSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/FileFormatTypeFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/FileFormatTypeFetchOptions.js similarity index 65% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/FileFormatTypeFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/FileFormatTypeFetchOptions.js index 938f4ba06479f6f35b4ea60f7a78281712bc50f6..92acdee044ff2008379fcaf1fa441130b9291dc9 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/FileFormatTypeFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/FileFormatTypeFetchOptions.js @@ -2,16 +2,16 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/dataset/FileFormatTypeSortOptions" ], function(stjs, FetchOptions) { +define([ "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/dataset/fetchoptions/FileFormatTypeSortOptions" ], function(stjs, FetchOptions) { var FileFormatTypeFetchOptions = function() { }; stjs.extend(FileFormatTypeFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.FileFormatTypeFetchOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.FileFormatTypeFetchOptions'; constructor.serialVersionUID = 1; prototype.sort = null; prototype.sortBy = function() { if (this.sort == null) { - var FileFormatTypeSortOptions = require("dto/fetchoptions/dataset/FileFormatTypeSortOptions"); + var FileFormatTypeSortOptions = require("as/dto/dataset/fetchoptions/FileFormatTypeSortOptions"); this.sort = new FileFormatTypeSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/FileFormatTypeSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/FileFormatTypeSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/FileFormatTypeSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/FileFormatTypeSortOptions.js index 7383545743a6413b472472ad633190be351970a8..6b1c8255f6ea821d759e5f6bd2de80527cedd24f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/FileFormatTypeSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/FileFormatTypeSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var FileFormatTypeSortOptions = function() { SortOptions.call(this); }; stjs.extend(FileFormatTypeSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.FileFormatTypeSortOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.FileFormatTypeSortOptions'; constructor.serialVersionUID = 1; }, {}); return FileFormatTypeSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LinkedDataFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LinkedDataFetchOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..1ef77b80a2b3daf235222d52ecbd5207768c5a09 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LinkedDataFetchOptions.js @@ -0,0 +1,42 @@ +/** + * Class automatically generated with + * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} + */ +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/externaldms/fetchoptions/ExternalDmsFetchOptions", "as/dto/dataset/fetchoptions/LinkedDataSortOptions" ], function(require, stjs, + FetchOptions) { + var LinkedDataFetchOptions = function() { + }; + stjs.extend(LinkedDataFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.fetchoptions.LinkedDataFetchOptions'; + constructor.serialVersionUID = 1; + prototype.externalDms = null; + prototype.sort = null; + prototype.withExternalDms = function() { + if (this.externalDms == null) { + var ExternalDmsFetchOptions = require("as/dto/externaldms/fetchoptions/ExternalDmsFetchOptions"); + this.externalDms = new ExternalDmsFetchOptions(); + } + return this.externalDms; + }; + prototype.withExternalDmsUsing = function(fetchOptions) { + return this.externalDms = fetchOptions; + }; + prototype.hasExternalDms = function() { + return this.externalDms != null; + }; + prototype.sortBy = function() { + if (this.sort == null) { + var LinkedDataSortOptions = require("as/dto/dataset/fetchoptions/LinkedDataSortOptions"); + this.sort = new LinkedDataSortOptions(); + } + return this.sort; + }; + prototype.getSortBy = function() { + return this.sort; + }; + }, { + externalDms : "ExternalDmsFetchOptions", + sort : "LinkedDataSortOptions" + }); + return LinkedDataFetchOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LinkedDataSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LinkedDataSortOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..7de06933cd58c7228bee4366a475397983998d7b --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LinkedDataSortOptions.js @@ -0,0 +1,10 @@ +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { + var LinkedDataSortOptions = function() { + SortOptions.call(this); + }; + stjs.extend(LinkedDataSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.fetchoptions.LinkedDataSortOptions'; + constructor.serialVersionUID = 1; + }, {}); + return LinkedDataSortOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/LocatorTypeFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LocatorTypeFetchOptions.js similarity index 65% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/LocatorTypeFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LocatorTypeFetchOptions.js index ac9c3b722d056c2cf69e819d11d3c29d491bcc2e..1327c90fdf40636094a89f97b6ff08e617e6946b 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/LocatorTypeFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LocatorTypeFetchOptions.js @@ -2,16 +2,16 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/dataset/LocatorTypeSortOptions" ], function(stjs, FetchOptions) { +define([ "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/dataset/fetchoptions/LocatorTypeSortOptions" ], function(stjs, FetchOptions) { var LocatorTypeFetchOptions = function() { }; stjs.extend(LocatorTypeFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.LocatorTypeFetchOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.LocatorTypeFetchOptions'; constructor.serialVersionUID = 1; prototype.sort = null; prototype.sortBy = function() { if (this.sort == null) { - var LocatorTypeSortOptions = require("dto/fetchoptions/dataset/LocatorTypeSortOptions"); + var LocatorTypeSortOptions = require("as/dto/dataset/fetchoptions/LocatorTypeSortOptions"); this.sort = new LocatorTypeSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/LocatorTypeSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LocatorTypeSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/LocatorTypeSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LocatorTypeSortOptions.js index 468346d6375fecb4361133bfda7634ddaa058a22..50620474a1183f978cd09d7e7588336f6d686e97 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/LocatorTypeSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/LocatorTypeSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var LocatorTypeSortOptions = function() { SortOptions.call(this); }; stjs.extend(LocatorTypeSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.LocatorTypeSortOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.LocatorTypeSortOptions'; constructor.serialVersionUID = 1; }, {}); return LocatorTypeSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/PhysicalDataFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/PhysicalDataFetchOptions.js similarity index 70% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/PhysicalDataFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/PhysicalDataFetchOptions.js index 80cb4622ca32cbda4ac71f1c8a4f88ef4a9c75bb..7003908329ed33eb7ed53a62451e9bd7b296a25a 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/PhysicalDataFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/PhysicalDataFetchOptions.js @@ -2,12 +2,12 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/dataset/StorageFormatFetchOptions", "dto/fetchoptions/dataset/FileFormatTypeFetchOptions", - "dto/fetchoptions/dataset/LocatorTypeFetchOptions", "dto/fetchoptions/dataset/PhysicalDataSortOptions" ], function(require, stjs, FetchOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/dataset/fetchoptions/StorageFormatFetchOptions", "as/dto/dataset/fetchoptions/FileFormatTypeFetchOptions", + "as/dto/dataset/fetchoptions/LocatorTypeFetchOptions", "as/dto/dataset/fetchoptions/PhysicalDataSortOptions" ], function(require, stjs, FetchOptions) { var PhysicalDataFetchOptions = function() { }; stjs.extend(PhysicalDataFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.PhysicalDataFetchOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.PhysicalDataFetchOptions'; constructor.serialVersionUID = 1; prototype.storageFormat = null; prototype.fileFormatType = null; @@ -15,7 +15,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/d prototype.sort = null; prototype.withStorageFormat = function() { if (this.storageFormat == null) { - var StorageFormatFetchOptions = require("dto/fetchoptions/dataset/StorageFormatFetchOptions"); + var StorageFormatFetchOptions = require("as/dto/dataset/fetchoptions/StorageFormatFetchOptions"); this.storageFormat = new StorageFormatFetchOptions(); } return this.storageFormat; @@ -28,7 +28,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/d }; prototype.withFileFormatType = function() { if (this.fileFormatType == null) { - var FileFormatTypeFetchOptions = require("dto/fetchoptions/dataset/FileFormatTypeFetchOptions"); + var FileFormatTypeFetchOptions = require("as/dto/dataset/fetchoptions/FileFormatTypeFetchOptions"); this.fileFormatType = new FileFormatTypeFetchOptions(); } return this.fileFormatType; @@ -41,7 +41,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/d }; prototype.withLocatorType = function() { if (this.locatorType == null) { - var LocatorTypeFetchOptions = require("dto/fetchoptions/dataset/LocatorTypeFetchOptions"); + var LocatorTypeFetchOptions = require("as/dto/dataset/fetchoptions/LocatorTypeFetchOptions"); this.locatorType = new LocatorTypeFetchOptions(); } return this.locatorType; @@ -54,7 +54,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/d }; prototype.sortBy = function() { if (this.sort == null) { - var PhysicalDataSortOptions = require("dto/fetchoptions/dataset/PhysicalDataSortOptions"); + var PhysicalDataSortOptions = require("as/dto/dataset/fetchoptions/PhysicalDataSortOptions"); this.sort = new PhysicalDataSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/PhysicalDataSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/PhysicalDataSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/PhysicalDataSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/PhysicalDataSortOptions.js index 937456925b3f071572c06bde23acf87d6951ba60..724162f719ccf30c29075ea97aac313de4c55616 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/PhysicalDataSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/PhysicalDataSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var PhysicalDataSortOptions = function() { SortOptions.call(this); }; stjs.extend(PhysicalDataSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.PhysicalDataSortOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.PhysicalDataSortOptions'; constructor.serialVersionUID = 1; }, {}); return PhysicalDataSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/StorageFormatFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/StorageFormatFetchOptions.js similarity index 65% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/StorageFormatFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/StorageFormatFetchOptions.js index a9c5d87d2c3324114eba2081a42fe75432c5961a..c6e54b0f55c012af02e977d1cfd789b04f0d15ad 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/StorageFormatFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/StorageFormatFetchOptions.js @@ -2,16 +2,16 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/dataset/StorageFormatSortOptions" ], function(stjs, FetchOptions) { +define([ "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/dataset/fetchoptions/StorageFormatSortOptions" ], function(stjs, FetchOptions) { var StorageFormatFetchOptions = function() { }; stjs.extend(StorageFormatFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.StorageFormatFetchOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.StorageFormatFetchOptions'; constructor.serialVersionUID = 1; prototype.sort = null; prototype.sortBy = function() { if (this.sort == null) { - var StorageFormatSortOptions = require("dto/fetchoptions/dataset/StorageFormatSortOptions"); + var StorageFormatSortOptions = require("as/dto/dataset/fetchoptions/StorageFormatSortOptions"); this.sort = new StorageFormatSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/StorageFormatSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/StorageFormatSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/StorageFormatSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/StorageFormatSortOptions.js index 4ea002d4b1b58bdf10019e400c345074ec318373..c74d758761c68fe4985774afe6c8a849d0e38bbc 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/StorageFormatSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/fetchoptions/StorageFormatSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var StorageFormatSortOptions = function() { SortOptions.call(this); }; stjs.extend(StorageFormatSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.StorageFormatSortOptions'; + prototype['@type'] = 'as.dto.dataset.fetchoptions.StorageFormatSortOptions'; constructor.serialVersionUID = 1; }, {}); return StorageFormatSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/history/DataSetRelationType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/history/DataSetRelationType.js new file mode 100644 index 0000000000000000000000000000000000000000..7077caffd76f9499fc85e7e5bf3b2aebc3b31e04 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/history/DataSetRelationType.js @@ -0,0 +1,12 @@ +/** + * @author pkupczyk + */ + +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var DataSetRelationType = function() { + Enum.call(this, [ "EXPERIMENT", "SAMPLE", "PARENT", "CHILD", "CONTAINER", "COMPONENT" ]); + }; + stjs.extend(DataSetRelationType, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new DataSetRelationType(); +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/BdsDirectoryStorageFormatPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/BdsDirectoryStorageFormatPermId.js new file mode 100644 index 0000000000000000000000000000000000000000..121256687f8db6c6e1f2a372cb20243b0b89f269 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/BdsDirectoryStorageFormatPermId.js @@ -0,0 +1,15 @@ +/** + * Bds directory storage format perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/dataset/id/StorageFormatPermId" ], function(stjs, StorageFormatPermId) { + var BdsDirectoryStorageFormatPermId = function() { + StorageFormatPermId.call(this, "BDS_DIRECTORY"); + }; + stjs.extend(BdsDirectoryStorageFormatPermId, StorageFormatPermId, [ StorageFormatPermId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.id.BdsDirectoryStorageFormatPermId'; + constructor.serialVersionUID = 1; + }, {}); + return BdsDirectoryStorageFormatPermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/DataSetPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/DataSetPermId.js new file mode 100644 index 0000000000000000000000000000000000000000..774c3b20dde6ad30cb351f2a85da34f13c793de3 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/DataSetPermId.js @@ -0,0 +1,19 @@ +/** + * Data set perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/dataset/id/IDataSetId" ], function(stjs, ObjectPermId, IDataSetId) { + /** + * @param permId + * Data set perm id, e.g. "201108050937246-1031". + */ + var DataSetPermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(DataSetPermId, ObjectPermId, [ ObjectPermId, IDataSetId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.id.DataSetPermId'; + constructor.serialVersionUID = 1; + }, {}); + return DataSetPermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/FileFormatTypePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/FileFormatTypePermId.js new file mode 100644 index 0000000000000000000000000000000000000000..2dc7acaad8bfa38524ce95a60596111399156831 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/FileFormatTypePermId.js @@ -0,0 +1,19 @@ +/** + * File format type perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/dataset/id/IFileFormatTypeId" ], function(stjs, ObjectPermId, IFileFormatTypeId) { + /** + * @param permId + * File format type perm id, e.g. "PROPRIETARY". + */ + var FileFormatTypePermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(FileFormatTypePermId, ObjectPermId, [ ObjectPermId, IFileFormatTypeId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.id.FileFormatTypePermId'; + constructor.serialVersionUID = 1; + }, {}); + return FileFormatTypePermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/IDataSetId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/IDataSetId.js new file mode 100644 index 0000000000000000000000000000000000000000..92c0f55a6aa4c24dd00e90365666fbc14dae0a80 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/IDataSetId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies a data set in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IDataSetId = function() { + }; + stjs.extend(IDataSetId, null, [ IObjectId ], null, {}); + return IDataSetId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/IFileFormatTypeId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/IFileFormatTypeId.js similarity index 76% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/IFileFormatTypeId.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/IFileFormatTypeId.js index a02c9d434ca0a7e7592500c13a1082c7cb612c32..fd38c129e00022d50a6613bd33f1966ca2fb04a2 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/IFileFormatTypeId.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/IFileFormatTypeId.js @@ -3,7 +3,7 @@ * * @author pkupczyk */ -define([ "stjs", "dto/id/IObjectId" ], function(stjs, IObjectId) { +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { var IFileFormatTypeId = function() { }; stjs.extend(IFileFormatTypeId, null, [ IObjectId ], null, {}); diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/ILocatorTypeId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/ILocatorTypeId.js new file mode 100644 index 0000000000000000000000000000000000000000..03579a57009f7cdf330be73c5eff32a151f17f44 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/ILocatorTypeId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies a locator type in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var ILocatorTypeId = function() { + }; + stjs.extend(ILocatorTypeId, null, [ IObjectId ], null, {}); + return ILocatorTypeId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/IStorageFormatId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/IStorageFormatId.js new file mode 100644 index 0000000000000000000000000000000000000000..0c70d83cac7b852b2e1099080969e7e577bcccfd --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/IStorageFormatId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies a storage format in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IStorageFormatId = function() { + }; + stjs.extend(IStorageFormatId, null, [ IObjectId ], null, {}); + return IStorageFormatId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/LocatorTypePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/LocatorTypePermId.js new file mode 100644 index 0000000000000000000000000000000000000000..6b8949fbf122aa54c55211af3fb3949901a17461 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/LocatorTypePermId.js @@ -0,0 +1,19 @@ +/** + * Locator type perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/dataset/id/ILocatorTypeId" ], function(stjs, ObjectPermId, ILocatorTypeId) { + /** + * @param permId + * Locator type perm id, e.g. "RELATIVE_LOCATION". + */ + var LocatorTypePermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(LocatorTypePermId, ObjectPermId, [ ObjectPermId, ILocatorTypeId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.id.LocatorTypePermId'; + constructor.serialVersionUID = 1; + }, {}); + return LocatorTypePermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/ProprietaryStorageFormatPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/ProprietaryStorageFormatPermId.js new file mode 100644 index 0000000000000000000000000000000000000000..274b1a41260e255e7d1ec67463aafe424beddca2 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/ProprietaryStorageFormatPermId.js @@ -0,0 +1,15 @@ +/** + * Proprietary storage format perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/dataset/id/StorageFormatPermId" ], function(stjs, StorageFormatPermId) { + var ProprietaryStorageFormatPermId = function() { + StorageFormatPermId.call(this, "PROPRIETARY"); + }; + stjs.extend(ProprietaryStorageFormatPermId, StorageFormatPermId, [ StorageFormatPermId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.id.ProprietaryStorageFormatPermId'; + constructor.serialVersionUID = 1; + }, {}); + return ProprietaryStorageFormatPermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/RelativeLocationLocatorTypePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/RelativeLocationLocatorTypePermId.js new file mode 100644 index 0000000000000000000000000000000000000000..1ac298fb76c3ce9d50afc525f24e5d1e537b9058 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/RelativeLocationLocatorTypePermId.js @@ -0,0 +1,15 @@ +/** + * Relative location perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/dataset/id/LocatorTypePermId" ], function(stjs, LocatorTypePermId) { + var RelativeLocationLocatorTypePermId = function() { + LocatorTypePermId.call(this, "RELATIVE_LOCATION"); + }; + stjs.extend(RelativeLocationLocatorTypePermId, LocatorTypePermId, [ LocatorTypePermId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.id.RelativeLocationLocatorTypePermId'; + constructor.serialVersionUID = 1; + }, {}); + return RelativeLocationLocatorTypePermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/StorageFormatPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/StorageFormatPermId.js new file mode 100644 index 0000000000000000000000000000000000000000..ccbb716dec45d3772c31fd80ee5ef067bdaa3e13 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/id/StorageFormatPermId.js @@ -0,0 +1,19 @@ +/** + * Storage format perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/dataset/id/IStorageFormatId" ], function(stjs, ObjectPermId, IStorageFormatId) { + /** + * @param permId + * Storage format perm id, e.g. "PROPRIETARY". + */ + var StorageFormatPermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(StorageFormatPermId, ObjectPermId, [ ObjectPermId, IStorageFormatId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.id.StorageFormatPermId'; + constructor.serialVersionUID = 1; + }, {}); + return StorageFormatPermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/search/DataSetSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/search/DataSetSearchCriteria.js new file mode 100644 index 0000000000000000000000000000000000000000..b2361796ce865434a9d99222654370f0db8f10af --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/search/DataSetSearchCriteria.js @@ -0,0 +1,133 @@ +/** + * @author pkupczyk + */ +define([ "require", "stjs", "as/dto/common/search/AbstractEntitySearchCriteria", "as/dto/common/search/SearchOperator", "as/dto/dataset/search/DataSetSearchRelation", , + "as/dto/experiment/search/ExperimentSearchCriteria", "as/dto/experiment/search/NoExperimentSearchCriteria", "as/dto/sample/search/SampleSearchCriteria", "as/dto/sample/search/NoSampleSearchCriteria" ], + function(require, stjs, AbstractEntitySearchCriteria, SearchOperator, DataSetSearchRelation) { + var DataSetSearchCriteria = function(relation) { + AbstractEntitySearchCriteria.call(this); + this.relation = relation ? relation : DataSetSearchRelation.DATASET; + }; + stjs.extend(DataSetSearchCriteria, AbstractEntitySearchCriteria, [ AbstractEntitySearchCriteria ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.search.DataSetSearchCriteria'; + constructor.serialVersionUID = 1; + prototype.relation = null; + prototype.withParents = function() { + return this.addCriteria(new DataSetParentsSearchCriteria()); + }; + prototype.withChildren = function() { + return this.addCriteria(new DataSetChildrenSearchCriteria()); + }; + prototype.withContainer = function() { + return this.addCriteria(new DataSetContainerSearchCriteria()); + }; + prototype.withExperiment = function() { + var ExperimentSearchCriteria = require("as/dto/experiment/search/ExperimentSearchCriteria"); + return this.addCriteria(new ExperimentSearchCriteria()); + }; + prototype.withoutExperiment = function() { + var NoExperimentSearchCriteria = require("as/dto/experiment/search/NoExperimentSearchCriteria"); + return this.addCriteria(new NoExperimentSearchCriteria()); + }; + prototype.withSample = function() { + var SampleSearchCriteria = require("as/dto/sample/search/SampleSearchCriteria"); + return this.addCriteria(new SampleSearchCriteria()); + }; + prototype.withoutSample = function() { + var NoSampleSearchCriteria = require("as/dto/sample/search/NoSampleSearchCriteria"); + return this.addCriteria(new NoSampleSearchCriteria()); + }; + prototype.withOrOperator = function() { + return this.withOperator(SearchOperator.OR); + }; + prototype.withAndOperator = function() { + return this.withOperator(SearchOperator.AND); + }; + prototype.getRelation = function() { + return this.relation; + }; + prototype.createBuilder = function() { + var builder = AbstractEntitySearchCriteria.prototype.createBuilder.call(this); + builder.setName(this.relation.name()); + return builder; + }; + }, { + relation : { + name : "Enum", + arguments : [ "DataSetSearchRelation" ] + }, + operator : { + name : "Enum", + arguments : [ "SearchOperator" ] + }, + criteria : { + name : "Collection", + arguments : [ "ISearchCriteria" ] + } + }); + + var DataSetParentsSearchCriteria = function() { + DataSetSearchCriteria.call(this, DataSetSearchRelation.PARENTS); + }; + stjs.extend(DataSetParentsSearchCriteria, DataSetSearchCriteria, [ DataSetSearchCriteria ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.search.DataSetParentsSearchCriteria'; + constructor.serialVersionUID = 1; + }, { + relation : { + name : "Enum", + arguments : [ "DataSetSearchRelation" ] + }, + operator : { + name : "Enum", + arguments : [ "SearchOperator" ] + }, + criteria : { + name : "Collection", + arguments : [ "ISearchCriteria" ] + } + }); + + var DataSetChildrenSearchCriteria = function() { + DataSetSearchCriteria.call(this, DataSetSearchRelation.CHILDREN); + }; + stjs.extend(DataSetChildrenSearchCriteria, DataSetSearchCriteria, [ DataSetSearchCriteria ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.search.DataSetChildrenSearchCriteria'; + constructor.serialVersionUID = 1; + }, { + relation : { + name : "Enum", + arguments : [ "DataSetSearchRelation" ] + }, + operator : { + name : "Enum", + arguments : [ "SearchOperator" ] + }, + criteria : { + name : "Collection", + arguments : [ "ISearchCriteria" ] + } + }); + + var DataSetContainerSearchCriteria = function() { + DataSetSearchCriteria.call(this, DataSetSearchRelation.CONTAINER); + }; + stjs.extend(DataSetContainerSearchCriteria, DataSetSearchCriteria, [ DataSetSearchCriteria ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.search.DataSetContainerSearchCriteria'; + constructor.serialVersionUID = 1; + }, { + relation : { + name : "Enum", + arguments : [ "DataSetSearchRelation" ] + }, + operator : { + name : "Enum", + arguments : [ "SearchOperator" ] + }, + criteria : { + name : "Collection", + arguments : [ "ISearchCriteria" ] + } + }); + + return DataSetSearchCriteria; + }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/search/DataSetSearchRelation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/search/DataSetSearchRelation.js new file mode 100644 index 0000000000000000000000000000000000000000..f3c8af9242a7224a5ce9dbc4cd2c534e022c6d27 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/search/DataSetSearchRelation.js @@ -0,0 +1,11 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var DataSetSearchRelation = function() { + Enum.call(this, [ "DATASET", "PARENTS", "CHILDREN", "CONTAINER" ]); + }; + stjs.extend(DataSetSearchRelation, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new DataSetSearchRelation(); +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSetUpdate.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/update/DataSetUpdate.js similarity index 78% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSetUpdate.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/update/DataSetUpdate.js index dacdf0e436843a37a9d41b8efccfffaf986e3325..2434868a189c3f8fc3a1aed5a6ea72eda466fb36 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSetUpdate.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/update/DataSetUpdate.js @@ -1,11 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/FieldUpdateValue", "dto/entity/IdListUpdateValue" ], function(stjs, FieldUpdateValue, IdListUpdateValue) { +define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/IdListUpdateValue" ], function(stjs, FieldUpdateValue, IdListUpdateValue) { var DataSetUpdate = function() { this.experimentId = new FieldUpdateValue(); this.sampleId = new FieldUpdateValue(); this.physicalData = new FieldUpdateValue(); + this.linkedData = new FieldUpdateValue(); this.properties = {}; this.tagIds = new IdListUpdateValue(); this.containerIds = new IdListUpdateValue(); @@ -14,9 +15,19 @@ define([ "stjs", "dto/entity/FieldUpdateValue", "dto/entity/IdListUpdateValue" ] this.childIds = new IdListUpdateValue(); }; stjs.extend(DataSetUpdate, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.dataset.DataSetUpdate'; + prototype['@type'] = 'as.dto.dataset.update.DataSetUpdate'; constructor.serialVersionUID = 1; prototype.dataSetId = null; + prototype.experimentId = null; + prototype.sampleId = null; + prototype.physicalData = null; + prototype.linkedData = null; + prototype.properties = null; + prototype.tagIds = null; + prototype.containerIds = null; + prototype.componentIds = null; + prototype.parentIds = null; + prototype.childIds = null; prototype.getDataSetId = function() { return this.dataSetId; @@ -42,6 +53,12 @@ define([ "stjs", "dto/entity/FieldUpdateValue", "dto/entity/IdListUpdateValue" ] prototype.setPhysicalData = function(physicalData) { this.physicalData.setValue(physicalData); }; + prototype.getLinkedData = function() { + return this.linkedData; + }; + prototype.setLinkedData = function(linkedData) { + this.linkedData.setValue(linkedData); + }; prototype.setProperty = function(key, value) { this.properties[key] = value; }; @@ -92,6 +109,10 @@ define([ "stjs", "dto/entity/FieldUpdateValue", "dto/entity/IdListUpdateValue" ] name : "FieldUpdateValue", arguments : [ "PhysicalDataUpdate" ] }, + linkedData : { + name : "FieldUpdateValue", + arguments : [ "LinkedDataUpdate" ] + }, properties : { name : "Map", arguments : [ null, null ] diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/update/LinkedDataUpdate.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/update/LinkedDataUpdate.js new file mode 100644 index 0000000000000000000000000000000000000000..ec95e312fdf44a1dd1347d62adcb5a8e1e5fb176 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/update/LinkedDataUpdate.js @@ -0,0 +1,39 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, FieldUpdateValue) { + var LinkedDataUpdate = function() { + this.externalCode = new FieldUpdateValue(); + this.externalDmsId = new FieldUpdateValue(); + }; + stjs.extend(LinkedDataUpdate, null, [], function(constructor, prototype) { + prototype['@type'] = 'as.dto.dataset.update.LinkedDataUpdate'; + constructor.serialVersionUID = 1; + + prototype.externalCode = null; + prototype.externalDmsId = null; + + prototype.getExternalCode = function() { + return this.externalCode; + }; + prototype.setExternalCode = function(externalCode) { + this.externalCode.setValue(externalCode); + }; + prototype.getExternalDmsId = function() { + return this.externalDmsId; + }; + prototype.setExternalDmsId = function(externalDmsId) { + this.externalDmsId.setValue(externalDmsId); + }; + }, { + externalCode : { + name : "FieldUpdateValue", + arguments : [ "String" ] + }, + externalDmsId : { + name : "FieldUpdateValue", + arguments : [ "IExternalDmsId" ] + } + }); + return LinkedDataUpdate; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/PhysicalDataUpdate.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/update/PhysicalDataUpdate.js similarity index 74% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/PhysicalDataUpdate.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/update/PhysicalDataUpdate.js index dd60d20e8fa2387dcde21fb4bb1d77496117d2d2..b40613de165df18b32119e628be9cb6700574b34 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/PhysicalDataUpdate.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/dataset/update/PhysicalDataUpdate.js @@ -1,14 +1,16 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/FieldUpdateValue" ], function(stjs, FieldUpdateValue) { +define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, FieldUpdateValue) { var PhysicalDataUpdate = function() { this.fileFormatTypeId = new FieldUpdateValue(); }; stjs.extend(PhysicalDataUpdate, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.dataset.PhysicalDataUpdate'; + prototype['@type'] = 'as.dto.dataset.update.PhysicalDataUpdate'; constructor.serialVersionUID = 1; + prototype.fileFormatTypeId = null; + prototype.getFileFormatTypeId = function() { return this.fileFormatTypeId; }; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/DataStore.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/DataStore.js new file mode 100644 index 0000000000000000000000000000000000000000..de58548a93e3c90f806b91c78d6460969980350a --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/DataStore.js @@ -0,0 +1,63 @@ +/** + * Class automatically generated with + * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} + */ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var DataStore = function() { + }; + stjs.extend(DataStore, null, [], function(constructor, prototype) { + prototype['@type'] = 'as.dto.datastore.DataStore'; + constructor.serialVersionUID = 1; + prototype.fetchOptions = null; + prototype.code = null; + prototype.downloadUrl = null; + prototype.remoteUrl = null; + prototype.registrationDate = null; + prototype.modificationDate = null; + + prototype.getFetchOptions = function() { + return this.fetchOptions; + }; + prototype.setFetchOptions = function(fetchOptions) { + this.fetchOptions = fetchOptions; + }; + prototype.getCode = function() { + return this.code; + }; + prototype.setCode = function(code) { + this.code = code; + }; + prototype.getDownloadUrl = function() { + return this.downloadUrl; + }; + prototype.setDownloadUrl = function(downloadUrl) { + this.downloadUrl = downloadUrl; + }; + prototype.getRemoteUrl = function() { + return this.remoteUrl; + }; + prototype.setRemoteUrl = function(remoteUrl) { + this.remoteUrl = remoteUrl; + }; + prototype.getRegistrationDate = function() { + return this.registrationDate; + }; + prototype.setRegistrationDate = function(registrationDate) { + this.registrationDate = registrationDate; + }; + prototype.getModificationDate = function() { + return this.modificationDate; + }; + prototype.setModificationDate = function(modificationDate) { + this.modificationDate = modificationDate; + }; + prototype.toString = function() { + return "DataStore " + this.code; + }; + }, { + fetchOptions : "DataStoreFetchOptions", + registrationDate : "Date", + modificationDate : "Date" + }); + return DataStore; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/fetchoptions/DataStoreFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/fetchoptions/DataStoreFetchOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..9f0dd5a158ddc61c1a264fac45a2e3db0f593467 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/fetchoptions/DataStoreFetchOptions.js @@ -0,0 +1,26 @@ +/** + * Class automatically generated with + * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} + */ +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/datastore/fetchoptions/DataStoreSortOptions" ], function(require, stjs, FetchOptions) { + var DataStoreFetchOptions = function() { + }; + stjs.extend(DataStoreFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.datastore.fetchoptions.DataStoreFetchOptions'; + constructor.serialVersionUID = 1; + prototype.sort = null; + prototype.sortBy = function() { + if (this.sort == null) { + var DataStoreSortOptions = require("as/dto/datastore/fetchoptions/DataStoreSortOptions"); + this.sort = new DataStoreSortOptions(); + } + return this.sort; + }; + prototype.getSortBy = function() { + return this.sort; + }; + }, { + sort : "DataStoreSortOptions" + }); + return DataStoreFetchOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/fetchoptions/DataStoreSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/fetchoptions/DataStoreSortOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..95627aee0531fcf9af250b8c25a6c632688916f8 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/fetchoptions/DataStoreSortOptions.js @@ -0,0 +1,10 @@ +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { + var DataStoreSortOptions = function() { + SortOptions.call(this); + }; + stjs.extend(DataStoreSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.person.fetchoptions.DataStoreSortOptions'; + constructor.serialVersionUID = 1; + }, {}); + return DataStoreSortOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/id/DataStorePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/id/DataStorePermId.js new file mode 100644 index 0000000000000000000000000000000000000000..63c62aac1f9fa7e90764ca89bde3b6645b855401 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/id/DataStorePermId.js @@ -0,0 +1,20 @@ +/** + * Data store perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/datastore/id/IDataStoreId" ], function(stjs, ObjectPermId, IDataStoreId) { + + /** + * @param permId + * Data store perm id, e.g. "DSS1". + */ + var DataStorePermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(DataStorePermId, ObjectPermId, [ ObjectPermId, IDataStoreId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.datastore.id.DataStorePermId'; + constructor.serialVersionUID = 1; + }, {}); + return DataStorePermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/id/IDataStoreId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/id/IDataStoreId.js new file mode 100644 index 0000000000000000000000000000000000000000..abe9898ec6b49de4107718fe949dc76e8357a343 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/datastore/id/IDataStoreId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies a data store in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IDataStoreId = function() { + }; + stjs.extend(IDataStoreId, null, [ IObjectId ], null, {}); + return IDataStoreId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/AbstractObjectDeletionOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/AbstractObjectDeletionOptions.js similarity index 85% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/AbstractObjectDeletionOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/AbstractObjectDeletionOptions.js index 180b755f83b89b0e76a90b57f7df37a055d97642..a312a3d37bdd1c71890f1c28a5e203f4ac613c5b 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/AbstractObjectDeletionOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/AbstractObjectDeletionOptions.js @@ -5,7 +5,7 @@ define([ "stjs" ], function(stjs) { var AbstractObjectDeletionOptions = function() { }; stjs.extend(AbstractObjectDeletionOptions, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.deletion.AbstractObjectDeletionOptions'; + prototype['@type'] = 'as.dto.deletion.AbstractObjectDeletionOptions'; constructor.serialVersionUID = 1; prototype.reason = null; prototype.getReason = function() { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/DeletedObject.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/DeletedObject.js similarity index 85% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/DeletedObject.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/DeletedObject.js index 3930287c2e7c4d5c0316c6eb2cbdbf99edeb29c2..1196e649ce0f0e0ee2f008c91cc1e40fa9bf32bb 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/DeletedObject.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/DeletedObject.js @@ -5,7 +5,7 @@ define([ "stjs" ], function(stjs) { var DeletedObject = function() { }; stjs.extend(DeletedObject, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.deletion.DeletedObject'; + prototype['@type'] = 'as.dto.deletion.DeletedObject'; prototype.id = null; prototype.getId = function() { return this.id; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/Deletion.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/Deletion.js similarity index 96% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/Deletion.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/Deletion.js index ea2e7ae0b37d915c8bca19f5f81a1d09afe2abcc..5001e13ee1797c105c89271fcbc5441b75485685 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/Deletion.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/Deletion.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { this.deletedObjects = []; }; stjs.extend(Deletion, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.deletion.Deletion'; + prototype['@type'] = 'as.dto.deletion.Deletion'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.id = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/deletion/DeletedObjectFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/fetchoptions/DeletedObjectFetchOptions.js similarity index 60% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/deletion/DeletedObjectFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/fetchoptions/DeletedObjectFetchOptions.js index 364b1cb075c577d3bb26ee7488c4747e6b78dfcf..1b93ddc107f81563914ee1915f0aa72a0bb36657 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/deletion/DeletedObjectFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/fetchoptions/DeletedObjectFetchOptions.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/fetchoptions/EmptyFetchOptions" ], function(stjs, EmptyFetchOptions) { +define([ "stjs", "as/dto/common/fetchoptions/EmptyFetchOptions" ], function(stjs, EmptyFetchOptions) { var DeletedObjectFetchOptions = function() { }; stjs.extend(DeletedObjectFetchOptions, EmptyFetchOptions, [ EmptyFetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.deletion.DeletedObjectFetchOptions'; + prototype['@type'] = 'as.dto.deletion.fetchoptions.DeletedObjectFetchOptions'; constructor.serialVersionUID = 1; }, {}); return DeletedObjectFetchOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/deletion/DeletionFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/fetchoptions/DeletionFetchOptions.js similarity index 56% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/deletion/DeletionFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/fetchoptions/DeletionFetchOptions.js index e65ccdeba9e8f083bb13c4364fdea70b554d9404..f39c24fd1407a5c2100db5102632327aba4da64c 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/deletion/DeletionFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/fetchoptions/DeletionFetchOptions.js @@ -1,28 +1,31 @@ /** * @author pkupczyk */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/deletion/DeletedObjectFetchOptions", "dto/fetchoptions/deletion/DeletionSortOptions" ], function(require, stjs, +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/deletion/fetchoptions/DeletedObjectFetchOptions", "as/dto/deletion/fetchoptions/DeletionSortOptions" ], function(require, stjs, FetchOptions) { var DeletionFetchOptions = function() { }; stjs.extend(DeletionFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.deletion.DeletionFetchOptions'; + prototype['@type'] = 'as.dto.deletion.fetchoptions.DeletionFetchOptions'; constructor.serialVersionUID = 1; prototype.deletedObjects = null; prototype.sort = null; - prototype.fetchDeletedObjects = function() { + prototype.withDeletedObjects = function() { if (this.deletedObjects == null) { - var DeletedObjectFetchOptions = require("dto/fetchoptions/deletion/DeletedObjectFetchOptions"); + var DeletedObjectFetchOptions = require("as/dto/deletion/fetchoptions/DeletedObjectFetchOptions"); this.deletedObjects = new DeletedObjectFetchOptions(); } return this.deletedObjects; }; + prototype.withDeletedObjectsUsing = function(deletedObjects) { + this.deletedObjects = deletedObjects; + }; prototype.hasDeletedObjects = function() { return this.deletedObjects != null; }; prototype.sortBy = function() { if (this.sort == null) { - var DeletionSortOptions = require("dto/fetchoptions/deletion/DeletionSortOptions"); + var DeletionSortOptions = require("as/dto/deletion/fetchoptions/DeletionSortOptions"); this.sort = new DeletionSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/deletion/DeletionSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/fetchoptions/DeletionSortOptions.js similarity index 56% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/deletion/DeletionSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/fetchoptions/DeletionSortOptions.js index b5694be3a5512495a991137de54905724dbba30a..7af94c699c3cc7c53e6269f1d921961d1536af85 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/deletion/DeletionSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/fetchoptions/DeletionSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var DeletionSortOptions = function() { SortOptions.call(this); }; stjs.extend(DeletionSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.deletion.DeletionSortOptions'; + prototype['@type'] = 'as.dto.deletion.fetchoptions.DeletionSortOptions'; constructor.serialVersionUID = 1; }, {}); return DeletionSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/id/DeletionTechId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/id/DeletionTechId.js new file mode 100644 index 0000000000000000000000000000000000000000..05f46cc189a78e6568637f0d6ddf3ab50c035a00 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/id/DeletionTechId.js @@ -0,0 +1,13 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectTechId", "as/dto/deletion/id/IDeletionId" ], function(stjs, ObjectTechId, IDeletionId) { + var DeletionTechId = function(techId) { + ObjectTechId.call(this, techId); + }; + stjs.extend(DeletionTechId, ObjectTechId, [ ObjectTechId, IDeletionId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.deletion.id.DeletionTechId'; + constructor.serialVersionUID = 1; + }, {}); + return DeletionTechId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/id/IDeletionId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/id/IDeletionId.js new file mode 100644 index 0000000000000000000000000000000000000000..8fb212cb06120f03bf94c1d67578950f1b1e82f2 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/id/IDeletionId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies a deletion in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IDeletionId = function() { + }; + stjs.extend(IDeletionId, null, [ IObjectId ], null, {}); + return IDeletionId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/search/DeletionSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/search/DeletionSearchCriteria.js new file mode 100644 index 0000000000000000000000000000000000000000..0a4c8421eba8f3a09d93ddb5c11cbb9c17c03de5 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/deletion/search/DeletionSearchCriteria.js @@ -0,0 +1,21 @@ +define([ "require", "stjs", "as/dto/common/search/AbstractObjectSearchCriteria" ], function(require, stjs, AbstractObjectSearchCriteria) { + var DeletionSearchCriteria = function() { + AbstractObjectSearchCriteria.call(this); + }; + stjs.extend(DeletionSearchCriteria, AbstractObjectSearchCriteria, [ AbstractObjectSearchCriteria ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.deletion.search.DeletionSearchCriteria'; + constructor.serialVersionUID = 1; + prototype.createBuilder = function() { + var AbstractCompositeSearchCriteria = require("as/dto/common/search/AbstractCompositeSearchCriteria"); + var builder = AbstractCompositeSearchCriteria.prototype.createBuilder.call(this); + builder.setName("DELETION"); + return builder; + }; + }, { + criteria : { + name : "Collection", + arguments : [ "ISearchCriteria" ] + } + }); + return DeletionSearchCriteria; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/entitytype/id/EntityTypePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/entitytype/id/EntityTypePermId.js new file mode 100644 index 0000000000000000000000000000000000000000..89e7e0b704b7fa23cad75cf745340a9a05c9f12e --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/entitytype/id/EntityTypePermId.js @@ -0,0 +1,19 @@ +/** + * Entity type perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/entitytype/id/IEntityTypeId" ], function(stjs, ObjectPermId, IEntityTypeId) { + /** + * @param permId + * Entity type perm id, e.g. "MY_ENTITY_TYPE". + */ + var EntityTypePermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(EntityTypePermId, ObjectPermId, [ ObjectPermId, IEntityTypeId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.entitytype.id.EntityTypePermId'; + constructor.serialVersionUID = 1; + }, {}); + return EntityTypePermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/entitytype/id/IEntityTypeId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/entitytype/id/IEntityTypeId.js new file mode 100644 index 0000000000000000000000000000000000000000..ca7ecd37e0031922cf8804b986e755253d495444 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/entitytype/id/IEntityTypeId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies an entity type in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IEntityTypeId = function() { + }; + stjs.extend(IEntityTypeId, null, [ IObjectId ], null, {}); + return IEntityTypeId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/EntityTypeSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/entitytype/search/EntityTypeSearchCriteria.js similarity index 55% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/EntityTypeSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/entitytype/search/EntityTypeSearchCriteria.js index fd795ffdc6c13e5f135850e1d38b7404b8c30984..ea2692a48eaeba56914a94fe77bf1187cdfdfaed 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/EntityTypeSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/entitytype/search/EntityTypeSearchCriteria.js @@ -1,25 +1,24 @@ /** * @author pkupczyk */ -define([ "require", "stjs", "dto/search/AbstractObjectSearchCriteria", - "dto/search/CodeSearchCriteria", "dto/search/PermIdSearchCriteria", "dto/search/AbstractCompositeSearchCriteria"], - function(require, stjs, AbstractObjectSearchCriteria) { +define([ "require", "stjs", "as/dto/common/search/AbstractObjectSearchCriteria", "as/dto/common/search/CodeSearchCriteria", "as/dto/common/search/PermIdSearchCriteria", + "as/dto/common/search/AbstractCompositeSearchCriteria" ], function(require, stjs, AbstractObjectSearchCriteria) { var EntityTypeSearchCriteria = function() { AbstractObjectSearchCriteria.call(this); }; stjs.extend(EntityTypeSearchCriteria, AbstractObjectSearchCriteria, [ AbstractObjectSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.EntityTypeSearchCriteria'; + prototype['@type'] = 'as.dto.entitytype.search.EntityTypeSearchCriteria'; constructor.serialVersionUID = 1; prototype.withCode = function() { - var CodeSearchCriteria = require("dto/search/CodeSearchCriteria"); + var CodeSearchCriteria = require("as/dto/common/search/CodeSearchCriteria"); return this.addCriteria(new CodeSearchCriteria()); }; prototype.withPermId = function() { - var PermIdSearchCriteria = require("dto/search/PermIdSearchCriteria"); + var PermIdSearchCriteria = require("as/dto/common/search/PermIdSearchCriteria"); return this.addCriteria(new PermIdSearchCriteria()); }; prototype.createBuilder = function() { - var AbstractCompositeSearchCriteria = require("dto/search/AbstractCompositeSearchCriteria"); + var AbstractCompositeSearchCriteria = require("as/dto/common/search/AbstractCompositeSearchCriteria"); var builder = AbstractCompositeSearchCriteria.prototype.createBuilder.call(this); builder.setName("TYPE"); return builder; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/Experiment.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/Experiment.js similarity index 96% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/Experiment.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/Experiment.js index f8cec13ee9e4ea87431240ea960609dd5b9ad679..c048d805bd683bd511d26024bc64439a7c898667 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/Experiment.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/Experiment.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var Experiment = function() { }; stjs.extend(Experiment, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.experiment.Experiment'; + prototype['@type'] = 'as.dto.experiment.Experiment'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; @@ -125,6 +125,10 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getMaterialProperty = function(propertyName) { + var properties = this.getMaterialProperties(); + return properties ? properties[propertyName] : null; + }; prototype.getMaterialProperties = function() { if (this.getFetchOptions().hasMaterialProperties()) { return this.materialProperties; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/ExperimentType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/ExperimentType.js similarity index 95% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/ExperimentType.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/ExperimentType.js index 6e640fefdaf1a937349e064555b4ed1fa6c975bf..eded58496d8a43fd9a379216ee8ba055e23994d2 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/ExperimentType.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/ExperimentType.js @@ -6,7 +6,7 @@ define([ "stjs" ], function(stjs) { var ExperimentType = function() { }; stjs.extend(ExperimentType, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.experiment.ExperimentType'; + prototype['@type'] = 'as.dto.experiment.ExperimentType'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/create/CreateExperimentsOperation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/create/CreateExperimentsOperation.js new file mode 100644 index 0000000000000000000000000000000000000000..432626079c18c49161b055eb6984a1cd599d2f7b --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/create/CreateExperimentsOperation.js @@ -0,0 +1,17 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/operations/IOperation" ], function(stjs, IOperation) { + var CreateExperimentsOperation = function() { + }; + stjs.extend(CreateExperimentsOperation, null, [ IOperation ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.experiment.create.CreateExperimentsOperation'; + prototype.newExperiments = null; + }, { + newExperiments : { + name : "List", + arguments : [ "ExperimentCreation" ] + } + }); + return CreateExperimentsOperation; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/create/CreateExperimentsOperationResult.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/create/CreateExperimentsOperationResult.js new file mode 100644 index 0000000000000000000000000000000000000000..0313243cf303d07f5c06f6239339f15302be9776 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/create/CreateExperimentsOperationResult.js @@ -0,0 +1,17 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/operations/IOperationResult" ], function(stjs, IOperationResult) { + var CreateExperimentsOperationResult = function() { + }; + stjs.extend(CreateExperimentsOperationResult, null, [ IOperationResult ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.experiment.create.CreateExperimentsOperationResult'; + prototype.newExperimentIds = null; + }, { + newExperimentIds : { + name : "List", + arguments : [ "ExperimentPermId" ] + } + }); + return CreateExperimentsOperationResult; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/ExperimentCreation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/create/ExperimentCreation.js similarity index 95% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/ExperimentCreation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/create/ExperimentCreation.js index 69cb53e4621ad1a8d64a55753ed44b45d46800b6..6081b72d60b78a3cc1edad5e8336869ba73dc698 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/ExperimentCreation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/create/ExperimentCreation.js @@ -6,7 +6,7 @@ define([ "stjs" ], function(stjs) { this.properties = {}; }; stjs.extend(ExperimentCreation, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.experiment.ExperimentCreation'; + prototype['@type'] = 'as.dto.experiment.create.ExperimentCreation'; constructor.serialVersionUID = 1; prototype.typeId = null; prototype.projectId = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/experiment/ExperimentDeletionOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/delete/ExperimentDeletionOptions.js similarity index 62% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/experiment/ExperimentDeletionOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/delete/ExperimentDeletionOptions.js index 3fc573cf95ccc780f2e8a3d1a7ee93ea4badd062..cb4b136da52c3ff04a309a7295c18966294c357e 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/experiment/ExperimentDeletionOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/delete/ExperimentDeletionOptions.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { +define([ "stjs", "as/dto/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { var ExperimentDeletionOptions = function() { AbstractObjectDeletionOptions.call(this); }; stjs.extend(ExperimentDeletionOptions, AbstractObjectDeletionOptions, [ AbstractObjectDeletionOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.deletion.experiment.ExperimentDeletionOptions'; + prototype['@type'] = 'as.dto.experiment.delete.ExperimentDeletionOptions'; constructor.serialVersionUID = 1; }, {}); return ExperimentDeletionOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentFetchOptions.js similarity index 72% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentFetchOptions.js index 51de129a5c38ae8b1abfe3affb053555fcfdcd1a..68eef159c8a7d04f2bfb7581ecf99592178cbc7b 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentFetchOptions.js @@ -2,14 +2,14 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/experiment/ExperimentTypeFetchOptions', 'dto/fetchoptions/project/ProjectFetchOptions', - 'dto/fetchoptions/property/PropertyFetchOptions', 'dto/fetchoptions/tag/TagFetchOptions', 'dto/fetchoptions/person/PersonFetchOptions', 'dto/fetchoptions/attachment/AttachmentFetchOptions', - 'dto/fetchoptions/dataset/DataSetFetchOptions', 'dto/fetchoptions/sample/SampleFetchOptions', 'dto/fetchoptions/history/HistoryEntryFetchOptions', - 'dto/fetchoptions/material/MaterialFetchOptions', 'dto/fetchoptions/experiment/ExperimentSortOptions' ], function(require, stjs, FetchOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", 'as/dto/experiment/fetchoptions/ExperimentTypeFetchOptions', 'as/dto/project/fetchoptions/ProjectFetchOptions', + 'as/dto/property/fetchoptions/PropertyFetchOptions', 'as/dto/tag/fetchoptions/TagFetchOptions', 'as/dto/person/fetchoptions/PersonFetchOptions', 'as/dto/attachment/fetchoptions/AttachmentFetchOptions', + 'as/dto/dataset/fetchoptions/DataSetFetchOptions', 'as/dto/sample/fetchoptions/SampleFetchOptions', 'as/dto/history/fetchoptions/HistoryEntryFetchOptions', + 'as/dto/material/fetchoptions/MaterialFetchOptions', 'as/dto/experiment/fetchoptions/ExperimentSortOptions' ], function(require, stjs, FetchOptions) { var ExperimentFetchOptions = function() { }; stjs.extend(ExperimentFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.experiment.ExperimentFetchOptions'; + prototype['@type'] = 'as.dto.experiment.fetchoptions.ExperimentFetchOptions'; constructor.serialVersionUID = 1; prototype.type = null; prototype.project = null; @@ -25,7 +25,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e prototype.sort = null; prototype.withType = function() { if (this.type == null) { - var ExperimentTypeFetchOptions = require("dto/fetchoptions/experiment/ExperimentTypeFetchOptions"); + var ExperimentTypeFetchOptions = require("as/dto/experiment/fetchoptions/ExperimentTypeFetchOptions"); this.type = new ExperimentTypeFetchOptions(); } return this.type; @@ -38,7 +38,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.withProject = function() { if (this.project == null) { - var ProjectFetchOptions = require("dto/fetchoptions/project/ProjectFetchOptions"); + var ProjectFetchOptions = require("as/dto/project/fetchoptions/ProjectFetchOptions"); this.project = new ProjectFetchOptions(); } return this.project; @@ -51,7 +51,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.withDataSets = function() { if (this.dataSets == null) { - var DataSetFetchOptions = require("dto/fetchoptions/dataset/DataSetFetchOptions"); + var DataSetFetchOptions = require("as/dto/dataset/fetchoptions/DataSetFetchOptions"); this.dataSets = new DataSetFetchOptions(); } return this.dataSets; @@ -64,7 +64,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.withSamples = function() { if (this.samples == null) { - var SampleFetchOptions = require("dto/fetchoptions/sample/SampleFetchOptions"); + var SampleFetchOptions = require("as/dto/sample/fetchoptions/SampleFetchOptions"); this.samples = new SampleFetchOptions(); } return this.samples; @@ -77,7 +77,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.withHistory = function() { if (this.history == null) { - var HistoryEntryFetchOptions = require("dto/fetchoptions/history/HistoryEntryFetchOptions"); + var HistoryEntryFetchOptions = require("as/dto/history/fetchoptions/HistoryEntryFetchOptions"); this.history = new HistoryEntryFetchOptions(); } return this.history; @@ -90,7 +90,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.withProperties = function() { if (this.properties == null) { - var PropertyFetchOptions = require("dto/fetchoptions/property/PropertyFetchOptions"); + var PropertyFetchOptions = require("as/dto/property/fetchoptions/PropertyFetchOptions"); this.properties = new PropertyFetchOptions(); } return this.properties; @@ -103,7 +103,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.withMaterialProperties = function() { if (this.materialProperties == null) { - var MaterialFetchOptions = require("dto/fetchoptions/material/MaterialFetchOptions"); + var MaterialFetchOptions = require("as/dto/material/fetchoptions/MaterialFetchOptions"); this.materialProperties = new MaterialFetchOptions(); } return this.materialProperties; @@ -116,7 +116,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.withTags = function() { if (this.tags == null) { - var TagFetchOptions = require("dto/fetchoptions/tag/TagFetchOptions"); + var TagFetchOptions = require("as/dto/tag/fetchoptions/TagFetchOptions"); this.tags = new TagFetchOptions(); } return this.tags; @@ -129,7 +129,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.withRegistrator = function() { if (this.registrator == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.registrator = new PersonFetchOptions(); } return this.registrator; @@ -142,7 +142,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.withModifier = function() { if (this.modifier == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.modifier = new PersonFetchOptions(); } return this.modifier; @@ -155,7 +155,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.withAttachments = function() { if (this.attachments == null) { - var AttachmentFetchOptions = require("dto/fetchoptions/attachment/AttachmentFetchOptions"); + var AttachmentFetchOptions = require("as/dto/attachment/fetchoptions/AttachmentFetchOptions"); this.attachments = new AttachmentFetchOptions(); } return this.attachments; @@ -168,7 +168,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/e }; prototype.sortBy = function() { if (this.sort == null) { - var ExperimentSortOptions = require("dto/fetchoptions/experiment/ExperimentSortOptions"); + var ExperimentSortOptions = require("as/dto/experiment/fetchoptions/ExperimentSortOptions"); this.sort = new ExperimentSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentSortOptions.js index 36006336e545f6a731ebb8ccdb4fa5fa051d07de..a9eee7c1618a963960f76ef0617d4f5ac7d47833 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/EntityWithPropertiesSortOptions" ], function(require, stjs, EntityWithPropertiesSortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/EntityWithPropertiesSortOptions" ], function(require, stjs, EntityWithPropertiesSortOptions) { var ExperimentSortOptions = function() { EntityWithPropertiesSortOptions.call(this); }; stjs.extend(ExperimentSortOptions, EntityWithPropertiesSortOptions, [ EntityWithPropertiesSortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.experiment.ExperimentSortOptions'; + prototype['@type'] = 'as.dto.experiment.fetchoptions.ExperimentSortOptions'; constructor.serialVersionUID = 1; }, {}); return ExperimentSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentTypeFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentTypeFetchOptions.js similarity index 65% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentTypeFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentTypeFetchOptions.js index 25765c86bb1f2d7c00b70a32a37ebb73d5584001..ad804baab589fa6987e0ac749207eada4c49c0a5 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentTypeFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentTypeFetchOptions.js @@ -2,16 +2,16 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/experiment/ExperimentTypeSortOptions" ], function(stjs, FetchOptions) { +define([ "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/experiment/fetchoptions/ExperimentTypeSortOptions" ], function(stjs, FetchOptions) { var ExperimentTypeFetchOptions = function() { }; stjs.extend(ExperimentTypeFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.experiment.ExperimentTypeFetchOptions'; + prototype['@type'] = 'as.dto.experiment.fetchoptions.ExperimentTypeFetchOptions'; constructor.serialVersionUID = 1; prototype.sort = null; prototype.sortBy = function() { if (this.sort == null) { - var ExperimentTypeSortOptions = require("dto/fetchoptions/experiment/ExperimentTypeSortOptions"); + var ExperimentTypeSortOptions = require("as/dto/experiment/fetchoptions/ExperimentTypeSortOptions"); this.sort = new ExperimentTypeSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentTypeSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentTypeSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentTypeSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentTypeSortOptions.js index b22d4534b840490dadab41649ad5168ca48deab7..42c929c673b3b42da7edc2e3176ace0bb631d6cd 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/experiment/ExperimentTypeSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/fetchoptions/ExperimentTypeSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var ExperimentTypeSortOptions = function() { SortOptions.call(this); }; stjs.extend(ExperimentTypeSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.experiment.ExperimentTypeSortOptions'; + prototype['@type'] = 'as.dto.experiment.fetchoptions.ExperimentTypeSortOptions'; constructor.serialVersionUID = 1; }, {}); return ExperimentTypeSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/history/ExperimentRelationType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/history/ExperimentRelationType.js new file mode 100644 index 0000000000000000000000000000000000000000..7db71996f7d468a1c560af8029145d08f4f1c133 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/history/ExperimentRelationType.js @@ -0,0 +1,11 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var ExperimentRelationType = function() { + Enum.call(this, [ "PROJECT", "SAMPLE", "DATA_SET" ]); + }; + stjs.extend(ExperimentRelationType, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new ExperimentRelationType(); +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/id/ExperimentIdentifier.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/id/ExperimentIdentifier.js new file mode 100644 index 0000000000000000000000000000000000000000..9fcfcfb9ad53660a85e0449a7f5cb1a425bdc1fb --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/id/ExperimentIdentifier.js @@ -0,0 +1,20 @@ +/** + * Experiment identifier. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectIdentifier", "as/dto/experiment/id/IExperimentId" ], function(stjs, ObjectIdentifier, IExperimentId) { + /** + * @param identifier + * Experiment identifier, e.g. + * "/MY_SPACE/MY_PROJECT/MY_EXPERIMENT". + */ + var ExperimentIdentifier = function(identifier) { + ObjectIdentifier.call(this, identifier); + }; + stjs.extend(ExperimentIdentifier, ObjectIdentifier, [ ObjectIdentifier, IExperimentId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.experiment.id.ExperimentIdentifier'; + constructor.serialVersionUID = 1; + }, {}); + return ExperimentIdentifier; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/id/ExperimentPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/id/ExperimentPermId.js new file mode 100644 index 0000000000000000000000000000000000000000..b12b52c6e431267ef82064e06e5c8b5b2e75b274 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/id/ExperimentPermId.js @@ -0,0 +1,19 @@ +/** + * Experiment perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/experiment/id/IExperimentId" ], function(stjs, ObjectPermId, IExperimentId) { + /** + * @param permId + * Experiment perm id, e.g. "201108050937246-1031". + */ + var ExperimentPermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(ExperimentPermId, ObjectPermId, [ ObjectPermId, IExperimentId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.experiment.id.ExperimentPermId'; + constructor.serialVersionUID = 1; + }, {}); + return ExperimentPermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/id/IExperimentId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/id/IExperimentId.js new file mode 100644 index 0000000000000000000000000000000000000000..cb502e43987e7cb770629287a55d4743443cc0f0 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/id/IExperimentId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies an experiment in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IExperimentId = function() { + }; + stjs.extend(IExperimentId, null, [ IObjectId ], null, {}); + return IExperimentId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/ListExperimentsOperation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/list/ListExperimentsOperation.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/ListExperimentsOperation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/list/ListExperimentsOperation.js index 202ec902ad62e2f816dfc2c644cb37fb387284f2..d4dce670c6551bc212614ee744336a6b7facd54f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/ListExperimentsOperation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/list/ListExperimentsOperation.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/operation/IOperation" ], function(stjs, IOperation) { +define([ "stjs", "as/dto/common/operations/IOperation" ], function(stjs, IOperation) { var ListExperimentsOperation = function() { }; stjs.extend(ListExperimentsOperation, null, [ IOperation ], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.experiment.ListExperimentsOperation'; + prototype['@type'] = 'as.dto.experiment.list.ListExperimentsOperation'; }, {}); return ListExperimentsOperation; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/ListExperimentsOperationResult.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/list/ListExperimentsOperationResult.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/ListExperimentsOperationResult.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/list/ListExperimentsOperationResult.js index d88d9152e8bc08ce8390959d93f1e37ca97e3ed9..457bb03e229d9678f49ece3254e3c50ba70077b2 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/ListExperimentsOperationResult.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/list/ListExperimentsOperationResult.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/operation/IOperationResult" ], function(stjs, IOperationResult) { +define([ "stjs", "as/dto/common/operations/IOperationResult" ], function(stjs, IOperationResult) { var ListExperimentsOperationResult = function() { }; stjs.extend(ListExperimentsOperationResult, null, [ IOperationResult ], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.experiment.ListExperimentsOperationResult'; + prototype['@type'] = 'as.dto.experiment.list.ListExperimentsOperationResult'; }, {}); return ListExperimentsOperationResult; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ExperimentSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/ExperimentSearchCriteria.js similarity index 70% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ExperimentSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/ExperimentSearchCriteria.js index 610d760727b6b6a08b909fba6cf8f91772b48955..1ecb1b0bac2b2d3cc96a5a9e0128e79f454c2649 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ExperimentSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/ExperimentSearchCriteria.js @@ -1,17 +1,16 @@ /** * @author pkupczyk */ -define([ "require", "stjs", "dto/search/AbstractEntitySearchCriteria", "dto/search/SearchOperator", - "dto/search/ProjectSearchCriteria"], - function(require, stjs, AbstractEntitySearchCriteria, SearchOperator) { +define([ "require", "stjs", "as/dto/common/search/AbstractEntitySearchCriteria", "as/dto/common/search/SearchOperator", "as/dto/project/search/ProjectSearchCriteria" ], function(require, stjs, + AbstractEntitySearchCriteria, SearchOperator) { var ExperimentSearchCriteria = function() { AbstractEntitySearchCriteria.call(this); }; stjs.extend(ExperimentSearchCriteria, AbstractEntitySearchCriteria, [ AbstractEntitySearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.ExperimentSearchCriteria'; + prototype['@type'] = 'as.dto.experiment.search.ExperimentSearchCriteria'; constructor.serialVersionUID = 1; prototype.withProject = function() { - var ProjectSearchCriteria = require("dto/search/ProjectSearchCriteria"); + var ProjectSearchCriteria = require("as/dto/project/search/ProjectSearchCriteria"); return this.addCriteria(new ProjectSearchCriteria()); }; prototype.withOrOperator = function() { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoExperimentSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/NoExperimentSearchCriteria.js similarity index 60% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoExperimentSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/NoExperimentSearchCriteria.js index 441d6c2be677496f2d609bd208ca8ebb625aab12..615028e85c204960cc16d4ae0cd69980ff210f85 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoExperimentSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/NoExperimentSearchCriteria.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/ISearchCriteria" ], function(stjs, ISearchCriteria) { +define([ "stjs", "as/dto/common/search/ISearchCriteria" ], function(stjs, ISearchCriteria) { var NoExperimentSearchCriteria = function() { }; stjs.extend(NoExperimentSearchCriteria, null, [ ISearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NoExperimentSearchCriteria'; + prototype['@type'] = 'as.dto.experiment.search.NoExperimentSearchCriteria'; constructor.serialVersionUID = 1; }, {}); return NoExperimentSearchCriteria; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/SearchForExperimentsOperation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/SearchExperimentsOperation.js similarity index 58% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/SearchForExperimentsOperation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/SearchExperimentsOperation.js index 31d02cd7900dec24b24cd5ef1aa7bfe375647e8d..056c12efb5a665e2be6902ff0649db054deb1c7d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/SearchForExperimentsOperation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/SearchExperimentsOperation.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/operation/IOperation" ], function(stjs, IOperation) { +define([ "stjs", "as/dto/common/operations/IOperation" ], function(stjs, IOperation) { var SearchForExperimentsOperation = function() { }; stjs.extend(SearchForExperimentsOperation, null, [ IOperation ], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.experiment.SearchForExperimentsOperation'; + prototype['@type'] = 'as.dto.experiment.search.SearchExperimentsOperation'; }, {}); return SearchForExperimentsOperation; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/SearchForExperimentsOperationResult.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/SearchExperimentsOperationResult.js similarity index 58% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/SearchForExperimentsOperationResult.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/SearchExperimentsOperationResult.js index 436859ca84c6b325b700b4566e0f1d5225fdde9e..1aa033b3a76fa444a8c72fcd84073cfb69d004bd 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/SearchForExperimentsOperationResult.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/search/SearchExperimentsOperationResult.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/operation/IOperationResult" ], function(stjs, IOperationResult) { +define([ "stjs", "as/dto/common/operations/IOperationResult" ], function(stjs, IOperationResult) { var SearchForExperimentsOperationResult = function() { }; stjs.extend(SearchForExperimentsOperationResult, null, [ IOperationResult ], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.experiment.SearchForExperimentsOperationResult'; + prototype['@type'] = 'as.dto.experiment.search.SearchExperimentsOperationResult'; }, {}); return SearchForExperimentsOperationResult; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/ExperimentUpdate.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/update/ExperimentUpdate.js similarity index 79% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/ExperimentUpdate.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/update/ExperimentUpdate.js index 016773d408fee8184518ab4ccffd2d382b8bac42..9a27f0f9fd6b54c287ca81b7dd281da4f1618523 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/experiment/ExperimentUpdate.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/update/ExperimentUpdate.js @@ -1,7 +1,7 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/FieldUpdateValue", "dto/entity/IdListUpdateValue", "dto/entity/AttachmentListUpdateValue" ], function(stjs, FieldUpdateValue, IdListUpdateValue, +define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/IdListUpdateValue", "as/dto/attachment/update/AttachmentListUpdateValue" ], function(stjs, FieldUpdateValue, IdListUpdateValue, AttachmentListUpdateValue) { var ExperimentUpdate = function() { this.properties = {}; @@ -10,9 +10,15 @@ define([ "stjs", "dto/entity/FieldUpdateValue", "dto/entity/IdListUpdateValue", this.attachments = new AttachmentListUpdateValue(); }; stjs.extend(ExperimentUpdate, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.experiment.ExperimentUpdate'; + prototype['@type'] = 'as.dto.experiment.update.ExperimentUpdate'; constructor.serialVersionUID = 1; prototype.experimentId = null; + + prototype.properties = null; + prototype.projectId = null; + prototype.tagIds = null; + prototype.attachments = null; + prototype.getExperimentId = function() { return this.experimentId; }; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/UpdateExperimentsOperation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/update/UpdateExperimentsOperation.js similarity index 61% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/UpdateExperimentsOperation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/update/UpdateExperimentsOperation.js index d61d820a63974d38bf5784e121e37b8f6ac31bb0..fe478230743370a434c1b3891484899af0190b58 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/UpdateExperimentsOperation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/update/UpdateExperimentsOperation.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/operation/IOperation" ], function(stjs, IOperation) { +define([ "stjs", "as/dto/common/operations/IOperation" ], function(stjs, IOperation) { var UpdateExperimentsOperation = function() { }; stjs.extend(UpdateExperimentsOperation, null, [ IOperation ], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.experiment.UpdateExperimentsOperation'; + prototype['@type'] = 'as.dto.experiment.update.UpdateExperimentsOperation'; }, {}); return UpdateExperimentsOperation; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/UpdateExperimentsOperationResult.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/update/UpdateExperimentsOperationResult.js similarity index 62% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/UpdateExperimentsOperationResult.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/update/UpdateExperimentsOperationResult.js index aa24ef6d878f7ab12b780b26ac48b535dfd0c198..ff424adbb0a5cade05bcf4a304220d2cec94909f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/UpdateExperimentsOperationResult.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/experiment/update/UpdateExperimentsOperationResult.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/operation/IOperationResult" ], function(stjs, IOperationResult) { +define([ "stjs", "as/dto/common/operations/IOperationResult" ], function(stjs, IOperationResult) { var UpdateExperimentsOperationResult = function() { }; stjs.extend(UpdateExperimentsOperationResult, null, [ IOperationResult ], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.experiment.UpdateExperimentsOperationResult'; + prototype['@type'] = 'as.dto.experiment.update.UpdateExperimentsOperationResult'; }, {}); return UpdateExperimentsOperationResult; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/ExternalDms.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/ExternalDms.js new file mode 100644 index 0000000000000000000000000000000000000000..5a1846fd04ac3db30acef793ac2712ee13ecaf01 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/ExternalDms.js @@ -0,0 +1,54 @@ +/** + * Class automatically generated with + * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} + */ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var ExternalDms = function() { + }; + stjs.extend(ExternalDms, null, [], function(constructor, prototype) { + prototype['@type'] = 'as.dto.externaldms.ExternalDms'; + constructor.serialVersionUID = 1; + prototype.fetchOptions = null; + prototype.code = null; + prototype.label = null; + prototype.urlTemplate = null; + prototype.openbis = null; + + prototype.getFetchOptions = function() { + return this.fetchOptions; + }; + prototype.setFetchOptions = function(fetchOptions) { + this.fetchOptions = fetchOptions; + }; + prototype.getCode = function() { + return this.code; + }; + prototype.setCode = function(code) { + this.code = code; + }; + prototype.getLabel = function() { + return this.label; + }; + prototype.setLabel = function(label) { + this.label = label; + }; + prototype.getUrlTemplate = function() { + return this.urlTemplate; + }; + prototype.setUrlTemplate = function(urlTemplate) { + this.urlTemplate = urlTemplate; + }; + prototype.isOpenbis = function() { + return this.openbis; + }; + prototype.setOpenbis = function(openbis) { + this.openbis = openbis; + }; + prototype.toString = function() { + return "ExternalDms " + this.code; + }; + }, { + fetchOptions : "ExternalDmsFetchOptions" + }); + return ExternalDms; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/fetchoptions/ExternalDmsFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/fetchoptions/ExternalDmsFetchOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..efdcd125326a8f949fade994cd6ba8ed6d188558 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/fetchoptions/ExternalDmsFetchOptions.js @@ -0,0 +1,26 @@ +/** + * Class automatically generated with + * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} + */ +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/externaldms/fetchoptions/ExternalDmsSortOptions" ], function(require, stjs, FetchOptions) { + var ExternalDmsFetchOptions = function() { + }; + stjs.extend(ExternalDmsFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.externaldms.fetchoptions.ExternalDmsFetchOptions'; + constructor.serialVersionUID = 1; + prototype.sort = null; + prototype.sortBy = function() { + if (this.sort == null) { + var ExternalDmsSortOptions = require("as/dto/externaldms/fetchoptions/ExternalDmsSortOptions"); + this.sort = new ExternalDmsSortOptions(); + } + return this.sort; + }; + prototype.getSortBy = function() { + return this.sort; + }; + }, { + sort : "ExternalDmsSortOptions" + }); + return ExternalDmsFetchOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/fetchoptions/ExternalDmsSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/fetchoptions/ExternalDmsSortOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..a9325fe22b702baea13298528d7dd3ff2d3f8526 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/fetchoptions/ExternalDmsSortOptions.js @@ -0,0 +1,10 @@ +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { + var ExternalDmsSortOptions = function() { + SortOptions.call(this); + }; + stjs.extend(ExternalDmsSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.externaldms.fetchoptions.ExternalDmsSortOptions'; + constructor.serialVersionUID = 1; + }, {}); + return ExternalDmsSortOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/id/ExternalDmsPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/id/ExternalDmsPermId.js new file mode 100644 index 0000000000000000000000000000000000000000..a45097359d9087b681c610ef509999ec0dab0d63 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/id/ExternalDmsPermId.js @@ -0,0 +1,20 @@ +/** + * External data management system perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/externaldms/id/IExternalDmsId" ], function(stjs, ObjectPermId, IExternalDmsId) { + + /** + * @param permId + * External data management system perm id, e.g. "DMS1". + */ + var ExternalDmsPermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(ExternalDmsPermId, ObjectPermId, [ ObjectPermId, IExternalDmsId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.externaldms.id.ExternalDmsPermId'; + constructor.serialVersionUID = 1; + }, {}); + return ExternalDmsPermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/id/IExternalDmsId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/id/IExternalDmsId.js new file mode 100644 index 0000000000000000000000000000000000000000..c8089703e6b15312c07c5a9eae73dea308c75b43 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/externaldms/id/IExternalDmsId.js @@ -0,0 +1,12 @@ +/** + * Holds information that uniquely identifies an external data management system + * in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IExternalDmsId = function() { + }; + stjs.extend(IExternalDmsId, null, [ IObjectId ], null, {}); + return IExternalDmsId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/HistoryEntry.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/HistoryEntry.js similarity index 95% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/HistoryEntry.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/HistoryEntry.js index 86029f6ee7913ee59e5fe84b1f01150b621b08e8..8e308de16ffa436e62dee29735c1fe7d78f84140 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/HistoryEntry.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/HistoryEntry.js @@ -2,7 +2,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var HistoryEntry = function() { }; stjs.extend(HistoryEntry, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.history.HistoryEntry'; + prototype['@type'] = 'as.dto.history.HistoryEntry'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.validFrom = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/IRelationType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/IRelationType.js new file mode 100644 index 0000000000000000000000000000000000000000..0d3c0c7eb4b1f016b0c34e3a24b73cf7e2277c31 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/IRelationType.js @@ -0,0 +1,6 @@ +define([ "stjs" ], function(stjs) { + var IRelationType = function() { + }; + stjs.extend(IRelationType, null, [], null, {}); + return IRelationType; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/PropertyHistoryEntry.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/PropertyHistoryEntry.js similarity index 78% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/PropertyHistoryEntry.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/PropertyHistoryEntry.js index 5fda346c751dbb9ebcc254677691337508778ee7..f3b600110a438ed62d6374675da536a080c0acd9 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/PropertyHistoryEntry.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/PropertyHistoryEntry.js @@ -1,9 +1,9 @@ -define([ "stjs", "util/Exceptions", "dto/entity/history/HistoryEntry" ], function(stjs, exceptions, HistoryEntry) { +define([ "stjs", "util/Exceptions", "as/dto/history/HistoryEntry" ], function(stjs, exceptions, HistoryEntry) { var PropertyHistoryEntry = function() { HistoryEntry.call(this); }; stjs.extend(PropertyHistoryEntry, HistoryEntry, [ HistoryEntry ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.history.PropertyHistoryEntry'; + prototype['@type'] = 'as.dto.history.PropertyHistoryEntry'; constructor.serialVersionUID = 1; prototype.propertyName = null; prototype.propertyValue = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/RelationHistoryEntry.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/RelationHistoryEntry.js similarity index 80% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/RelationHistoryEntry.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/RelationHistoryEntry.js index 6e1b4c172348242aaa84882ddf1c0ee09e4c9314..2c40900a670494644660c0e75ed2c46928488f64 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/RelationHistoryEntry.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/RelationHistoryEntry.js @@ -1,9 +1,9 @@ -define([ "stjs", "util/Exceptions", "dto/entity/history/HistoryEntry" ], function(stjs, exceptions, HistoryEntry) { +define([ "stjs", "util/Exceptions", "as/dto/history/HistoryEntry" ], function(stjs, exceptions, HistoryEntry) { var RelationHistoryEntry = function() { HistoryEntry.call(this); }; stjs.extend(RelationHistoryEntry, HistoryEntry, [ HistoryEntry ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.history.RelationHistoryEntry'; + prototype['@type'] = 'as.dto.history.RelationHistoryEntry'; constructor.serialVersionUID = 1; prototype.relationType = null; prototype.relatedObjectId = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/history/HistoryEntryFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/fetchoptions/HistoryEntryFetchOptions.js similarity index 67% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/history/HistoryEntryFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/fetchoptions/HistoryEntryFetchOptions.js index 53db603b71299c3f25b122fc6f1f65b5a01b9c48..c8714f48f32dc9b4e88ae837c32fe5fecbfc3d0d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/history/HistoryEntryFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/fetchoptions/HistoryEntryFetchOptions.js @@ -2,17 +2,18 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/person/PersonFetchOptions", "dto/fetchoptions/history/HistoryEntrySortOptions" ], function(require, stjs, FetchOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/person/fetchoptions/PersonFetchOptions", "as/dto/history/fetchoptions/HistoryEntrySortOptions" ], function(require, stjs, + FetchOptions) { var HistoryEntryFetchOptions = function() { }; stjs.extend(HistoryEntryFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.history.HistoryEntryFetchOptions'; + prototype['@type'] = 'as.dto.history.fetchoptions.HistoryEntryFetchOptions'; constructor.serialVersionUID = 1; prototype.author = null; prototype.sort = null; prototype.withAuthor = function() { if (this.author == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.author = new PersonFetchOptions(); } return this.author; @@ -25,7 +26,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/p }; prototype.sortBy = function() { if (this.sort == null) { - var HistoryEntrySortOptions = require("dto/fetchoptions/history/HistoryEntrySortOptions"); + var HistoryEntrySortOptions = require("as/dto/history/fetchoptions/HistoryEntrySortOptions"); this.sort = new HistoryEntrySortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/history/HistoryEntrySortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/fetchoptions/HistoryEntrySortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/history/HistoryEntrySortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/fetchoptions/HistoryEntrySortOptions.js index 232f5561f80baf081c71463d2de3cb7d09854b5b..3144a97a3dfee1ddff674f8a96e55802fb661ed9 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/history/HistoryEntrySortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/history/fetchoptions/HistoryEntrySortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var HistoryEntrySortOptions = function() { SortOptions.call(this); }; stjs.extend(HistoryEntrySortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.history.HistoryEntrySortOptions'; + prototype['@type'] = 'as.dto.history.fetchoptions.HistoryEntrySortOptions'; constructor.serialVersionUID = 1; }, {}); return HistoryEntrySortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/Material.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/Material.js similarity index 94% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/Material.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/Material.js index 63cc5be0d024c6bcec61f0f28ed765e550f91e5d..1f68493396a3ed52f712d5ba320c4769e53ccda4 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/Material.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/Material.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var Material = function() { }; stjs.extend(Material, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.material.Material'; + prototype['@type'] = 'as.dto.material.Material'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; @@ -82,7 +82,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.getProperty = function(propertyName) { var properties = this.getProperties(); return properties ? properties[propertyName] : null; - }; + }; prototype.getProperties = function() { if (this.getFetchOptions().hasProperties()) { return this.properties; @@ -93,6 +93,10 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getMaterialProperty = function(propertyName) { + var properties = this.getMaterialProperties(); + return properties ? properties[propertyName] : null; + }; prototype.getMaterialProperties = function() { if (this.getFetchOptions().hasMaterialProperties()) { return this.materialProperties; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/MaterialType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/MaterialType.js similarity index 96% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/MaterialType.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/MaterialType.js index c107a274c3b35fbcdfaedc8c28e7f1dbb993b127..ad99082a0c5bddb7b6b658fbdcd8427a8803451e 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/MaterialType.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/MaterialType.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var MaterialType = function() { }; stjs.extend(MaterialType, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.material.MaterialType'; + prototype['@type'] = 'as.dto.material.MaterialType'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/MaterialCreation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/create/MaterialCreation.js similarity index 90% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/MaterialCreation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/create/MaterialCreation.js index 046b0f9fda4514e780652700f5183260527b7822..e51bd4b2588416f0c8b7f7d22b187d0c6a8c2c47 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/MaterialCreation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/create/MaterialCreation.js @@ -6,7 +6,7 @@ define([ "stjs" ], function(stjs) { this.properties = {}; }; stjs.extend(MaterialCreation, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.material.MaterialCreation'; + prototype['@type'] = 'as.dto.material.create.MaterialCreation'; constructor.serialVersionUID = 1; prototype.code = null; prototype.typeId = null; @@ -51,6 +51,9 @@ define([ "stjs" ], function(stjs) { prototype.getProperties = function() { return this.properties; }; + prototype.setProperties = function(properties) { + this.properties = properties; + }; }, { typeId : "IEntityTypeId", creationId : "CreationId", diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/material/MaterialDeletionOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/delete/MaterialDeletionOptions.js similarity index 63% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/material/MaterialDeletionOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/delete/MaterialDeletionOptions.js index 456cfe2b18f21a827c073c93ab58a0bf8cea4ffb..dd777534a43f444e199f40963162e98ad11325b3 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/material/MaterialDeletionOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/delete/MaterialDeletionOptions.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { +define([ "stjs", "as/dto/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { var MaterialDeletionOptions = function() { AbstractObjectDeletionOptions.call(this); }; stjs.extend(MaterialDeletionOptions, AbstractObjectDeletionOptions, [ AbstractObjectDeletionOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.deletion.material.MaterialDeletionOptions'; + prototype['@type'] = 'as.dto.material.delete.MaterialDeletionOptions'; constructor.serialVersionUID = 1; }, {}); return MaterialDeletionOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialFetchOptions.js similarity index 76% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialFetchOptions.js index c7090e0c3ab5ac8a5444a56b8595b6bf8950a8bf..f320b6912ddf1eb64be1dedcae87955072904058 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialFetchOptions.js @@ -2,13 +2,13 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/material/MaterialTypeFetchOptions", "dto/fetchoptions/history/HistoryEntryFetchOptions", - "dto/fetchoptions/person/PersonFetchOptions", "dto/fetchoptions/property/PropertyFetchOptions", "dto/fetchoptions/tag/TagFetchOptions", "dto/fetchoptions/material/MaterialSortOptions" ], +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/material/fetchoptions/MaterialTypeFetchOptions", "as/dto/history/fetchoptions/HistoryEntryFetchOptions", + "as/dto/person/fetchoptions/PersonFetchOptions", "as/dto/property/fetchoptions/PropertyFetchOptions", "as/dto/tag/fetchoptions/TagFetchOptions", "as/dto/material/fetchoptions/MaterialSortOptions" ], function(require, stjs, FetchOptions) { var MaterialFetchOptions = function() { }; stjs.extend(MaterialFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.material.MaterialFetchOptions'; + prototype['@type'] = 'as.dto.material.fetchoptions.MaterialFetchOptions'; constructor.serialVersionUID = 1; prototype.type = null; prototype.history = null; @@ -19,7 +19,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/m prototype.sort = null; prototype.withType = function() { if (this.type == null) { - var MaterialTypeFetchOptions = require("dto/fetchoptions/material/MaterialTypeFetchOptions"); + var MaterialTypeFetchOptions = require("as/dto/material/fetchoptions/MaterialTypeFetchOptions"); this.type = new MaterialTypeFetchOptions(); } return this.type; @@ -32,7 +32,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/m }; prototype.withHistory = function() { if (this.history == null) { - var HistoryEntryFetchOptions = require("dto/fetchoptions/history/HistoryEntryFetchOptions"); + var HistoryEntryFetchOptions = require("as/dto/history/fetchoptions/HistoryEntryFetchOptions"); this.history = new HistoryEntryFetchOptions(); } return this.history; @@ -45,7 +45,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/m }; prototype.withRegistrator = function() { if (this.registrator == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.registrator = new PersonFetchOptions(); } return this.registrator; @@ -58,7 +58,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/m }; prototype.withProperties = function() { if (this.properties == null) { - var PropertyFetchOptions = require("dto/fetchoptions/property/PropertyFetchOptions"); + var PropertyFetchOptions = require("as/dto/property/fetchoptions/PropertyFetchOptions"); this.properties = new PropertyFetchOptions(); } return this.properties; @@ -83,7 +83,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/m }; prototype.withTags = function() { if (this.tags == null) { - var TagFetchOptions = require("dto/fetchoptions/tag/TagFetchOptions"); + var TagFetchOptions = require("as/dto/tag/fetchoptions/TagFetchOptions"); this.tags = new TagFetchOptions(); } return this.tags; @@ -96,7 +96,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/m }; prototype.sortBy = function() { if (this.sort == null) { - var MaterialSortOptions = require("dto/fetchoptions/material/MaterialSortOptions"); + var MaterialSortOptions = require("as/dto/material/fetchoptions/MaterialSortOptions"); this.sort = new MaterialSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialSortOptions.js index 518d5701d8345d54051162ed1cf43f7ecad93681..0896351f823971ee87b45052be6dc827de939c78 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/EntityWithPropertiesSortOptions" ], function(require, stjs, EntityWithPropertiesSortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/EntityWithPropertiesSortOptions" ], function(require, stjs, EntityWithPropertiesSortOptions) { var MaterialSortOptions = function() { EntityWithPropertiesSortOptions.call(this); }; stjs.extend(MaterialSortOptions, EntityWithPropertiesSortOptions, [ EntityWithPropertiesSortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.material.MaterialSortOptions'; + prototype['@type'] = 'as.dto.material.fetchoptions.MaterialSortOptions'; constructor.serialVersionUID = 1; }, {}); return MaterialSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialTypeFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialTypeFetchOptions.js similarity index 65% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialTypeFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialTypeFetchOptions.js index 793b97288ec419537eeaf525081aa4404bd33311..8ce0b76eeb07ab11bd18082ee73ec6770f1e60ad 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialTypeFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialTypeFetchOptions.js @@ -2,16 +2,16 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/material/MaterialTypeSortOptions" ], function(stjs, FetchOptions) { +define([ "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/material/fetchoptions/MaterialTypeSortOptions" ], function(stjs, FetchOptions) { var MaterialTypeFetchOptions = function() { }; stjs.extend(MaterialTypeFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.material.MaterialTypeFetchOptions'; + prototype['@type'] = 'as.dto.material.fetchoptions.MaterialTypeFetchOptions'; constructor.serialVersionUID = 1; prototype.sort = null; prototype.sortBy = function() { if (this.sort == null) { - var MaterialTypeSortOptions = require("dto/fetchoptions/material/MaterialTypeSortOptions"); + var MaterialTypeSortOptions = require("as/dto/material/fetchoptions/MaterialTypeSortOptions"); this.sort = new MaterialTypeSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialTypeSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialTypeSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialTypeSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialTypeSortOptions.js index f5fe27c1f9ee34f3266639d29b9d311ef9f47289..7cf59fa8b0e6c1304b9c6089a12b91152181789b 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/material/MaterialTypeSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/fetchoptions/MaterialTypeSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var MaterialTypeSortOptions = function() { SortOptions.call(this); }; stjs.extend(MaterialTypeSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.material.MaterialTypeSortOptions'; + prototype['@type'] = 'as.dto.material.fetchoptions.MaterialTypeSortOptions'; constructor.serialVersionUID = 1; }, {}); return MaterialTypeSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/id/IMaterialId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/id/IMaterialId.js new file mode 100644 index 0000000000000000000000000000000000000000..499c83eeef8a83184e4acfb5dcbb60741441a701 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/id/IMaterialId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies a material in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IMaterialId = function() { + }; + stjs.extend(IMaterialId, null, [ IObjectId ], null, {}); + return IMaterialId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/material/MaterialPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/id/MaterialPermId.js similarity index 81% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/material/MaterialPermId.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/id/MaterialPermId.js index 401cdda1fa58d05bfbc4c435548430a05937f3f3..6a52df6dd340551e5d5d2c20c798b0b675c3544f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/material/MaterialPermId.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/id/MaterialPermId.js @@ -3,7 +3,7 @@ * * @author pkupczyk */ -define([ "stjs", "dto/id/material/IMaterialId" ], function(stjs, IMaterialId) { +define([ "stjs", "as/dto/material/id/IMaterialId" ], function(stjs, IMaterialId) { /** * @param permId * Material perm id, e.g. "MY_MATERIAL (MY_MATERIAL_TYPE)". @@ -13,7 +13,7 @@ define([ "stjs", "dto/id/material/IMaterialId" ], function(stjs, IMaterialId) { this.setTypeCode(typeCode); }; stjs.extend(MaterialPermId, null, [ IMaterialId ], function(constructor, prototype) { - prototype['@type'] = 'dto.id.material.MaterialPermId'; + prototype['@type'] = 'as.dto.material.id.MaterialPermId'; constructor.serialVersionUID = 1; prototype.code = null; prototype.typeCode = null; @@ -31,8 +31,10 @@ define([ "stjs", "dto/id/material/IMaterialId" ], function(stjs, IMaterialId) { } prototype.toString = function() { return this.getCode() + " (" + this.getTypeCode() + ")"; - } + }; + prototype.hashCode = function() { + }; }, {}); return MaterialPermId; }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/MaterialSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/search/MaterialSearchCriteria.js similarity index 77% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/MaterialSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/search/MaterialSearchCriteria.js index 9816c2d84e009f2028f581df9a319b6caae49abb..8edef0f14200d64d386efe28a67eadf508e65aad 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/MaterialSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/search/MaterialSearchCriteria.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/AbstractEntitySearchCriteria", "dto/search/SearchOperator" ], function(stjs, AbstractEntitySearchCriteria, SearchOperator) { +define([ "stjs", "as/dto/common/search/AbstractEntitySearchCriteria", "as/dto/common/search/SearchOperator" ], function(stjs, AbstractEntitySearchCriteria, SearchOperator) { var MaterialSearchCriteria = function() { AbstractEntitySearchCriteria.call(this); }; stjs.extend(MaterialSearchCriteria, AbstractEntitySearchCriteria, [ AbstractEntitySearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.MaterialSearchCriteria'; + prototype['@type'] = 'as.dto.material.search.MaterialSearchCriteria'; constructor.serialVersionUID = 1; prototype.withOrOperator = function() { return this.withOperator(SearchOperator.OR); diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/MaterialUpdate.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/update/MaterialUpdate.js similarity index 73% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/MaterialUpdate.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/update/MaterialUpdate.js index 57cbdd8fba99bedef7459127c1c3c528af0eed03..4043feca2fbf6b0a0db3246a164053e323a661a3 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/material/MaterialUpdate.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/material/update/MaterialUpdate.js @@ -1,15 +1,19 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/IdListUpdateValue" ], function(stjs, IdListUpdateValue) { +define([ "stjs", "as/dto/common/update/IdListUpdateValue" ], function(stjs, IdListUpdateValue) { var MaterialUpdate = function() { this.properties = {}; this.tagIds = new IdListUpdateValue(); }; stjs.extend(MaterialUpdate, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.material.MaterialUpdate'; + prototype['@type'] = 'as.dto.material.update.MaterialUpdate'; constructor.serialVersionUID = 1; + prototype.materialId = null; + prototype.properties = null; + prototype.tagIds = null; + prototype.getMaterialId = function() { return this.materialId; }; @@ -25,6 +29,9 @@ define([ "stjs", "dto/entity/IdListUpdateValue" ], function(stjs, IdListUpdateVa prototype.getTagIds = function() { return this.tagIds; }; + prototype.setTagActions = function(actions) { + this.tagIds.setActions(actions); + }; }, { materialId : "IMaterialId", properties : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/ObjectKind.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/ObjectKind.js new file mode 100644 index 0000000000000000000000000000000000000000..d08001368ca255208a590b7990504e668dbea366 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/ObjectKind.js @@ -0,0 +1,19 @@ + +/** + * Enumeration of object kinds. An object kind is an attribute an object (like a sample, a data set type or a vocabulary term) + * which can be created, deleted or updated. + * + * @author Franz-Josef Elmer + */ +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var ObjectKind = function() { + Enum.call(this, [ "AUTHORIZATION_GROUP", "SAMPLE", "EXPERIMENT", "MATERIAL", "DATA_SET", "SAMPLE_TYPE", + "EXPERIMENT_TYPE", "MATERIAL_TYPE", "DATASET_TYPE", "FILE_FORMAT_TYPE", "PROJECT", + "SPACE", "PROPERTY_TYPE", "PROPERTY_TYPE_ASSIGNMENT", "VOCABULARY", "VOCABULARY_TERM", + "ROLE_ASSIGNMENT", "PERSON", "GRID_CUSTOM_FILTER", "GRID_CUSTOM_COLUMN", "SCRIPT", + "DELETION", "POSTREGISTRATION_QUEUE", "QUERY", "METAPROJECT" ]); + }; + stjs.extend(ObjectKind, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new ObjectKind(); +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/ObjectKindModification.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/ObjectKindModification.js new file mode 100644 index 0000000000000000000000000000000000000000..142ba891fefea7ac1072f10a23d2d123e4633d05 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/ObjectKindModification.js @@ -0,0 +1,47 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var ObjectKindModification = function() { + }; + stjs.extend(ObjectKindModification, null, [], function(constructor, prototype) { + prototype['@type'] = 'as.dto.objectkindmodification.ObjectKindModification'; + constructor.serialVersionUID = 1; + prototype.fetchOptions = null; + prototype.objectKind = null; + prototype.operationKind = null; + prototype.lastModificationTimeStamp = null; + + prototype.getFetchOptions = function() { + return this.fetchOptions; + }; + prototype.setFetchOptions = function(fetchOptions) { + this.fetchOptions = fetchOptions; + }; + prototype.getObjectKind = function() { + return this.objectKind; + }; + prototype.setObjectKind = function(objectKind) { + this.objectKind = objectKind; + }; + prototype.getOperationKind = function() { + return this.operationKind; + }; + prototype.setOperationKind = function(operationKind) { + this.operationKind = operationKind; + }; + prototype.getLastModificationTimeStamp = function() { + return this.lastModificationTimeStamp; + }; + prototype.setLastModificationTimeStamp = function(lastModificationTimeStamp) { + this.lastModificationTimeStamp = lastModificationTimeStamp; + }; + prototype.toString = function() { + return "Last " + this.operationKind + " operation of an object of kind " + this.objectKind + + " occured at " + lastModificationTimeStamp; + }; + }, { + fetchOptions : "ObjectKindModificationFetchOptions", + objectKind : "ObjectKind", + operationKind : "OperationKind", + lastModificationTimeStamp : "Date" + }); + return ObjectKindModification; +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/OperationKind.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/OperationKind.js new file mode 100644 index 0000000000000000000000000000000000000000..8100e9fa5a67fddb464e9da5c493de6b2105781a --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/OperationKind.js @@ -0,0 +1,13 @@ +/** + * Enumeration of operations which can be applied to an object. + * + * @author Franz-Josef Elmer + */ +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var OperationKind = function() { + Enum.call(this, [ "CREATE_OR_DELETE", "UPDATE" ]); + }; + stjs.extend(OperationKind, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new OperationKind(); +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/fetchoptions/ObjectKindModificationFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/fetchoptions/ObjectKindModificationFetchOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..f5342845076491ef9eb8e31f96273cdcd7514dd2 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/fetchoptions/ObjectKindModificationFetchOptions.js @@ -0,0 +1,22 @@ +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/objectkindmodification/fetchoptions/ObjectKindModificationSortOptions" ], function(require, stjs, FetchOptions) { + var ObjectKindModificationFetchOptions = function() { + }; + stjs.extend(ObjectKindModificationFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.objectkindmodification.fetchoptions.ObjectKindModificationFetchOptions'; + constructor.serialVersionUID = 1; + prototype.sort = null; + prototype.sortBy = function() { + if (this.sort == null) { + var ObjectKindModificationSortOptions = require("as/dto/objectkindmodification/fetchoptions/ObjectKindModificationSortOptions"); + this.sort = new ObjectKindModificationSortOptions(); + } + return this.sort; + }; + prototype.getSortBy = function() { + return this.sort; + }; + }, { + sort : "ObjectKindModificationSortOptions" + }); + return ObjectKindModificationFetchOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/fetchoptions/ObjectKindModificationSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/fetchoptions/ObjectKindModificationSortOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..3f18b2848265a0af51ac6c76278ae8901d874f93 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/fetchoptions/ObjectKindModificationSortOptions.js @@ -0,0 +1,10 @@ +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { + var ObjectKindModificationSortOptions = function() { + SortOptions.call(this); + }; + stjs.extend(ObjectKindModificationSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.objectkindmodification.fetchoptions.ObjectKindModificationSortOptions'; + constructor.serialVersionUID = 1; + }, {}); + return ObjectKindModificationSortOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/search/ObjectKindModificationSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/search/ObjectKindModificationSearchCriteria.js new file mode 100644 index 0000000000000000000000000000000000000000..078a84a00b1721723a22c5c1932122c774c687db --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/objectkindmodification/search/ObjectKindModificationSearchCriteria.js @@ -0,0 +1,28 @@ +/** + * + * + * @author Franz-Josef Elmer + */ +define([ "stjs", "as/dto/common/search/ISearchCriteria" ], function(stjs, ISearchCriteria) { + var ObjectKindModificationSearchCriteria = function() { + this.objectKinds = []; + this.operationKinds = []; + }; + stjs.extend(ObjectKindModificationSearchCriteria, null, [ ISearchCriteria ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.objectkindmodification.search.ObjectKindModificationSearchCriteria'; + constructor.serialVersionUID = 1; + prototype.withObjectKinds = function(objectKinds) { + this.objectKinds = objectKinds; + } + prototype.withOperationKinds = function(operationKinds) { + this.operationKinds = operationKinds; + } + prototype.getObjectKinds = function() { + return this.objectKinds; + } + prototype.getOperationKinds = function() { + return this.operationKinds; + } + }, {}); + return ObjectKindModificationSearchCriteria; +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/person/Person.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/Person.js similarity index 98% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/person/Person.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/Person.js index 176c5f260814419fd804e90ba9eb9bddbaa889e4..6b1bf5e0db5c411c731d8e3c0184b9ce2df4cc53 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/person/Person.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/Person.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var Person = function() { }; stjs.extend(Person, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.person.Person'; + prototype['@type'] = 'as.dto.person.Person'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/person/PersonFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/fetchoptions/PersonFetchOptions.js similarity index 75% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/person/PersonFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/fetchoptions/PersonFetchOptions.js index da3473f56204d6e418e40dc962ddcda67167d69b..e976267203ffe4eca6bc95a41001881bb6c54c13 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/person/PersonFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/fetchoptions/PersonFetchOptions.js @@ -2,18 +2,18 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/space/SpaceFetchOptions", "dto/fetchoptions/person/PersonSortOptions" ], function(require, stjs, FetchOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/space/fetchoptions/SpaceFetchOptions", "as/dto/person/fetchoptions/PersonSortOptions" ], function(require, stjs, FetchOptions) { var PersonFetchOptions = function() { }; stjs.extend(PersonFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.person.PersonFetchOptions'; + prototype['@type'] = 'as.dto.person.fetchoptions.PersonFetchOptions'; constructor.serialVersionUID = 1; prototype.space = null; prototype.registrator = null; prototype.sort = null; prototype.withSpace = function() { if (this.space == null) { - var SpaceFetchOptions = require("dto/fetchoptions/space/SpaceFetchOptions"); + var SpaceFetchOptions = require("as/dto/space/fetchoptions/SpaceFetchOptions"); this.space = new SpaceFetchOptions(); } return this.space; @@ -38,7 +38,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/s }; prototype.sortBy = function() { if (this.sort == null) { - var PersonSortOptions = require("dto/fetchoptions/person/PersonSortOptions"); + var PersonSortOptions = require("as/dto/person/fetchoptions/PersonSortOptions"); this.sort = new PersonSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/person/PersonSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/fetchoptions/PersonSortOptions.js similarity index 56% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/person/PersonSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/fetchoptions/PersonSortOptions.js index bfa5b7f8aeea5c10732822c87ef0f39384ee2933..6ff69963e01522e75d0743e14a031df735e09589 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/person/PersonSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/fetchoptions/PersonSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var PersonSortOptions = function() { SortOptions.call(this); }; stjs.extend(PersonSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.person.PersonSortOptions'; + prototype['@type'] = 'as.dto.person.fetchoptions.PersonSortOptions'; constructor.serialVersionUID = 1; }, {}); return PersonSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/person/IPersonId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/id/IPersonId.js similarity index 73% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/person/IPersonId.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/id/IPersonId.js index 4903fee32435c3b76f7866f34080b8556027fdad..9455cd747f40d188f2a9b3c3711569281b42af2d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/person/IPersonId.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/id/IPersonId.js @@ -3,7 +3,7 @@ * * @author pkupczyk */ -define([ "stjs", "dto/id/IObjectId" ], function(stjs, IObjectId) { +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { var IPersonId = function() { }; stjs.extend(IPersonId, null, [ IObjectId ], null, {}); diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/person/PersonPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/id/PersonPermId.js similarity index 67% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/person/PersonPermId.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/id/PersonPermId.js index de042979ccb7676f70b1a0e1604a41c4f0af018b..09f0d2ff366199f7684c51ba021b67e75d886516 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/person/PersonPermId.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/person/id/PersonPermId.js @@ -3,7 +3,7 @@ * * @author pkupczyk */ -define([ "stjs", "dto/id/ObjectPermId", "dto/id/person/IPersonId" ], function(stjs, ObjectPermId, IPersonId) { +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/person/id/IPersonId" ], function(stjs, ObjectPermId, IPersonId) { /** * @param permId @@ -13,7 +13,7 @@ define([ "stjs", "dto/id/ObjectPermId", "dto/id/person/IPersonId" ], function(st ObjectPermId.call(this, permId); }; stjs.extend(PersonPermId, ObjectPermId, [ ObjectPermId, IPersonId ], function(constructor, prototype) { - prototype['@type'] = 'dto.id.person.PersonPermId'; + prototype['@type'] = 'as.dto.person.id.PersonPermId'; constructor.serialVersionUID = 1; }, {}); return PersonPermId; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/project/Project.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/Project.js similarity index 91% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/project/Project.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/Project.js index db42c2357e96b3bcce730071416dd8ddf82a24d6..bed523353184f2e35b7b3534bd68048cb310f55d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/project/Project.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/Project.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var Project = function() { }; stjs.extend(Project, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.project.Project'; + prototype['@type'] = 'as.dto.project.Project'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; @@ -17,6 +17,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.modificationDate = null; prototype.experiments = null; prototype.samples = null; + prototype.history = null; prototype.space = null; prototype.registrator = null; prototype.modifier = null; @@ -84,6 +85,16 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setSamples = function(samples) { this.samples = samples; }; + prototype.getHistory = function() { + if (this.getFetchOptions().hasHistory()) { + return this.history; + } else { + throw new exceptions.NotFetchedException("History have not been fetched."); + } + }; + prototype.setHistory = function(history) { + this.history = history; + }; prototype.getSpace = function() { if (this.getFetchOptions().hasSpace()) { return this.space; @@ -144,6 +155,10 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { name : "List", arguments : [ "Sample" ] }, + history : { + name : "List", + arguments : [ "HistoryEntry" ] + }, experiments : { name : "List", arguments : [ "Experiment" ] diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/project/ProjectCreation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/create/ProjectCreation.js similarity index 95% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/project/ProjectCreation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/create/ProjectCreation.js index 3b59c2b78c5faae6021257e41bb46d3e538052ef..a2a5a39e0ac511ea3c7003d61444f63911d73cc9 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/project/ProjectCreation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/create/ProjectCreation.js @@ -5,7 +5,7 @@ define([ "stjs" ], function(stjs) { var ProjectCreation = function() { }; stjs.extend(ProjectCreation, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.project.ProjectCreation'; + prototype['@type'] = 'as.dto.project.create.ProjectCreation'; constructor.serialVersionUID = 1; prototype.spaceId = null; prototype.code = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/project/ProjectDeletionOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/delete/ProjectDeletionOptions.js similarity index 63% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/project/ProjectDeletionOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/delete/ProjectDeletionOptions.js index 28b669051cc35c55a65dccb7a5c73f3751f9178d..56f2bc5a2b69e9d4d8024e9036e7e75092e0a1bb 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/project/ProjectDeletionOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/delete/ProjectDeletionOptions.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { +define([ "stjs", "as/dto/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { var ProjectDeletionOptions = function() { AbstractObjectDeletionOptions.call(this); }; stjs.extend(ProjectDeletionOptions, AbstractObjectDeletionOptions, [ AbstractObjectDeletionOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.deletion.project.ProjectDeletionOptions'; + prototype['@type'] = 'as.dto.project.delete.ProjectDeletionOptions'; constructor.serialVersionUID = 1; }, {}); return ProjectDeletionOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/project/ProjectFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/fetchoptions/ProjectFetchOptions.js similarity index 65% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/project/ProjectFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/fetchoptions/ProjectFetchOptions.js index 79686cc6be91bef85202b4b2646a2a07501ad8d8..7844c2cbe0d969b37c7272b6aca332f0f83a33a8 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/project/ProjectFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/fetchoptions/ProjectFetchOptions.js @@ -2,13 +2,13 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/person/PersonFetchOptions', 'dto/fetchoptions/space/SpaceFetchOptions', 'dto/fetchoptions/sample/SampleFetchOptions', - 'dto/fetchoptions/experiment/ExperimentFetchOptions', 'dto/fetchoptions/attachment/AttachmentFetchOptions', 'dto/fetchoptions/project/ProjectSortOptions' ], function(require, stjs, - FetchOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", 'as/dto/person/fetchoptions/PersonFetchOptions', 'as/dto/space/fetchoptions/SpaceFetchOptions', + 'as/dto/sample/fetchoptions/SampleFetchOptions', 'as/dto/experiment/fetchoptions/ExperimentFetchOptions', 'as/dto/attachment/fetchoptions/AttachmentFetchOptions', + 'as/dto/project/fetchoptions/ProjectSortOptions', 'as/dto/history/fetchoptions/HistoryEntryFetchOptions' ], function(require, stjs, FetchOptions) { var ProjectFetchOptions = function() { }; stjs.extend(ProjectFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.project.ProjectFetchOptions'; + prototype['@type'] = 'as.dto.project.fetchoptions.ProjectFetchOptions'; constructor.serialVersionUID = 1; prototype.experiments = null; prototype.samples = null; @@ -17,10 +17,11 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/p prototype.modifier = null; prototype.leader = null; prototype.attachments = null; + prototype.history = null; prototype.sort = null; prototype.withExperiments = function() { if (this.experiments == null) { - var ExperimentFetchOptions = require("dto/fetchoptions/experiment/ExperimentFetchOptions"); + var ExperimentFetchOptions = require("as/dto/experiment/fetchoptions/ExperimentFetchOptions"); this.experiments = new ExperimentFetchOptions(); } return this.experiments; @@ -33,7 +34,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/p }; prototype.withSamples = function() { if (this.samples == null) { - var SampleFetchOptions = require("dto/fetchoptions/experiment/SampleFetchOptions"); + var SampleFetchOptions = require("as/dto/sample/fetchoptions/SampleFetchOptions"); this.samples = new SampleFetchOptions(); } return this.samples; @@ -46,7 +47,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/p }; prototype.withSpace = function() { if (this.space == null) { - var SpaceFetchOptions = require("dto/fetchoptions/space/SpaceFetchOptions"); + var SpaceFetchOptions = require("as/dto/space/fetchoptions/SpaceFetchOptions"); this.space = new SpaceFetchOptions(); } return this.space; @@ -59,7 +60,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/p }; prototype.withRegistrator = function() { if (this.registrator == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.registrator = new PersonFetchOptions(); } return this.registrator; @@ -72,7 +73,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/p }; prototype.withModifier = function() { if (this.modifier == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.modifier = new PersonFetchOptions(); } return this.modifier; @@ -85,7 +86,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/p }; prototype.withLeader = function() { if (this.leader == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.leader = new PersonFetchOptions(); } return this.leader; @@ -98,7 +99,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/p }; prototype.withAttachments = function() { if (this.attachments == null) { - var AttachmentFetchOptions = require("dto/fetchoptions/attachment/AttachmentFetchOptions"); + var AttachmentFetchOptions = require("as/dto/attachment/fetchoptions/AttachmentFetchOptions"); this.attachments = new AttachmentFetchOptions(); } return this.attachments; @@ -109,9 +110,22 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/p prototype.hasAttachments = function() { return this.attachments != null; }; + prototype.withHistory = function() { + if (this.history == null) { + var HistoryEntryFetchOptions = require("as/dto/history/fetchoptions/HistoryEntryFetchOptions"); + this.history = new HistoryEntryFetchOptions(); + } + return this.history; + }; + prototype.withHistoryUsing = function(fetchOptions) { + return this.history = fetchOptions; + }; + prototype.hasHistory = function() { + return this.history != null; + }; prototype.sortBy = function() { if (this.sort == null) { - var ProjectSortOptions = require("dto/fetchoptions/project/ProjectSortOptions"); + var ProjectSortOptions = require("as/dto/project/fetchoptions/ProjectSortOptions"); this.sort = new ProjectSortOptions(); } return this.sort; @@ -121,11 +135,13 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/p }; }, { experiments : "ExperimentFetchOptions", + samples : "SampleFetchOptions", space : "SpaceFetchOptions", registrator : "PersonFetchOptions", modifier : "PersonFetchOptions", leader : "PersonFetchOptions", attachments : "AttachmentFetchOptions", + history : "HistoryEntryFetchOptions", sort : "ProjectSortOptions" }); return ProjectFetchOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/project/ProjectSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/fetchoptions/ProjectSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/project/ProjectSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/fetchoptions/ProjectSortOptions.js index d10fa414aaf60140b0744f5a8f80233d1f9f6e16..c9124cd3555b88d7cfb4fc47638f7c7e3f4e0377 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/project/ProjectSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/fetchoptions/ProjectSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/EntitySortOptions" ], function(require, stjs, EntitySortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/EntitySortOptions" ], function(require, stjs, EntitySortOptions) { var ProjectSortOptions = function() { EntitySortOptions.call(this); }; stjs.extend(ProjectSortOptions, EntitySortOptions, [ EntitySortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.project.ProjectSortOptions'; + prototype['@type'] = 'as.dto.project.fetchoptions.ProjectSortOptions'; constructor.serialVersionUID = 1; }, {}); return ProjectSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/history/ProjectRelationType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/history/ProjectRelationType.js new file mode 100644 index 0000000000000000000000000000000000000000..f6e6218ac365b97e3cb6fc2d88e8eb66027273e4 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/history/ProjectRelationType.js @@ -0,0 +1,11 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var ProjectRelationType = function() { + Enum.call(this, [ "SPACE", "EXPERIMENT" ]); + }; + stjs.extend(ProjectRelationType, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new ProjectRelationType(); +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/id/IProjectId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/id/IProjectId.js new file mode 100644 index 0000000000000000000000000000000000000000..b04fda4b9f311cb3808f4093a9c7c0d4ceb40e56 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/id/IProjectId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies a project in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IProjectId = function() { + }; + stjs.extend(IProjectId, null, [ IObjectId ], null, {}); + return IProjectId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/id/ProjectIdentifier.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/id/ProjectIdentifier.js new file mode 100644 index 0000000000000000000000000000000000000000..6f1ce19f2afa900bd592b234931a519e59fa37dc --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/id/ProjectIdentifier.js @@ -0,0 +1,19 @@ +/** + * Project identifier. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectIdentifier", "as/dto/project/id/IProjectId" ], function(stjs, ObjectIdentifier, IProjectId) { + /** + * @param identifier + * Project identifier, e.g. "/MY_SPACE/MY_PROJECT". + */ + var ProjectIdentifier = function(identifier) { + ObjectIdentifier.call(this, identifier); + }; + stjs.extend(ProjectIdentifier, ObjectIdentifier, [ ObjectIdentifier, IProjectId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.project.id.ProjectIdentifier'; + constructor.serialVersionUID = 1; + }, {}); + return ProjectIdentifier; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/id/ProjectPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/id/ProjectPermId.js new file mode 100644 index 0000000000000000000000000000000000000000..cc1425c0b9ec7fbfa0c5cf45b2f80cbca8973141 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/id/ProjectPermId.js @@ -0,0 +1,19 @@ +/** + * Project perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/project/id/IProjectId" ], function(stjs, ObjectPermId, IProjectId) { + /** + * @param permId + * Project perm id, e.g. "201108050937246-1031". + */ + var ProjectPermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(ProjectPermId, ObjectPermId, [ ObjectPermId, IProjectId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.project.id.ProjectPermId'; + constructor.serialVersionUID = 1; + }, {}); + return ProjectPermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoProjectSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/search/NoProjectSearchCriteria.js similarity index 60% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoProjectSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/search/NoProjectSearchCriteria.js index 01973f9bf5226c69dfb47322f9df6a2baa4d7420..51d8ff2ed6e11c7342fd5c4cbe9fcabc82f38823 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoProjectSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/search/NoProjectSearchCriteria.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/ISearchCriteria" ], function(stjs, ISearchCriteria) { +define([ "stjs", "as/dto/common/search/ISearchCriteria" ], function(stjs, ISearchCriteria) { var NoProjectSearchCriteria = function() { }; stjs.extend(NoProjectSearchCriteria, null, [ ISearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NoProjectSearchCriteria'; + prototype['@type'] = 'as.dto.project.search.NoProjectSearchCriteria'; constructor.serialVersionUID = 1; }, {}); return NoProjectSearchCriteria; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ProjectSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/search/ProjectSearchCriteria.js similarity index 54% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ProjectSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/search/ProjectSearchCriteria.js index b04a4ba3e9a279d0be3b68065de20e936cad5661..0bbb3ce321571b877b70110eb45bc55ddf986b0e 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/ProjectSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/search/ProjectSearchCriteria.js @@ -1,30 +1,28 @@ /** * @author pkupczyk */ -define([ "require", "stjs", "dto/search/AbstractObjectSearchCriteria", - "dto/search/CodeSearchCriteria", "dto/search/PermIdSearchCriteria", "dto/search/SpaceSearchCriteria", - "dto/search/AbstractCompositeSearchCriteria"], - function(require, stjs, AbstractObjectSearchCriteria) { +define([ "require", "stjs", "as/dto/common/search/AbstractObjectSearchCriteria", "as/dto/common/search/AbstractCompositeSearchCriteria", "as/dto/common/search/CodeSearchCriteria", + "as/dto/common/search/PermIdSearchCriteria", "as/dto/space/search/SpaceSearchCriteria" ], function(require, stjs, AbstractObjectSearchCriteria) { var ProjectSearchCriteria = function() { AbstractObjectSearchCriteria.call(this); }; stjs.extend(ProjectSearchCriteria, AbstractObjectSearchCriteria, [ AbstractObjectSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.ProjectSearchCriteria'; + prototype['@type'] = 'as.dto.project.search.ProjectSearchCriteria'; constructor.serialVersionUID = 1; prototype.withCode = function() { - var CodeSearchCriteria = require("dto/search/CodeSearchCriteria"); + var CodeSearchCriteria = require("as/dto/common/search/CodeSearchCriteria"); return this.addCriteria(new CodeSearchCriteria()); }; prototype.withPermId = function() { - var PermIdSearchCriteria = require("dto/search/PermIdSearchCriteria"); + var PermIdSearchCriteria = require("as/dto/common/search/PermIdSearchCriteria"); return this.addCriteria(new PermIdSearchCriteria()); }; prototype.withSpace = function() { - var SpaceSearchCriteria = require("dto/search/SpaceSearchCriteria"); + var SpaceSearchCriteria = require("as/dto/space/search/SpaceSearchCriteria"); return this.addCriteria(new SpaceSearchCriteria()); }; prototype.createBuilder = function() { - var AbstractCompositeSearchCriteria = require("dto/search/AbstractCompositeSearchCriteria"); + var AbstractCompositeSearchCriteria = require("as/dto/common/search/AbstractCompositeSearchCriteria"); var builder = AbstractCompositeSearchCriteria.prototype.createBuilder.call(this); builder.setName("PROJECT"); return builder; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/project/ProjectUpdate.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/update/ProjectUpdate.js similarity index 79% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/project/ProjectUpdate.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/update/ProjectUpdate.js index 3f8d6d8bf7efdb051394e35d607014eb1a4ce11b..38897edc33a49735ca057608ef1f4b1bcabaf128 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/project/ProjectUpdate.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/project/update/ProjectUpdate.js @@ -1,16 +1,20 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/FieldUpdateValue", "dto/entity/AttachmentListUpdateValue" ], function(stjs, FieldUpdateValue, AttachmentListUpdateValue) { +define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/attachment/update/AttachmentListUpdateValue" ], function(stjs, FieldUpdateValue, AttachmentListUpdateValue) { var ProjectUpdate = function() { this.spaceId = new FieldUpdateValue(); this.description = new FieldUpdateValue(); this.attachments = new AttachmentListUpdateValue(); }; stjs.extend(ProjectUpdate, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.project.ProjectUpdate'; + prototype['@type'] = 'as.dto.project.update.ProjectUpdate'; constructor.serialVersionUID = 1; prototype.projectId = null; + prototype.spaceId = null; + prototype.description = null; + prototype.attachments = null; + prototype.getProjectId = function() { return this.projectId; }; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/property/PropertyFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/property/fetchoptions/PropertyFetchOptions.js similarity index 59% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/property/PropertyFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/property/fetchoptions/PropertyFetchOptions.js index 2775d269302be0491e065b68bcc84f89619537ba..f20178722223ac1056bda28aae1ed8f05f52642f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/property/PropertyFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/property/fetchoptions/PropertyFetchOptions.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/fetchoptions/EmptyFetchOptions" ], function(stjs, EmptyFetchOptions) { +define([ "stjs", "as/dto/common/fetchoptions/EmptyFetchOptions" ], function(stjs, EmptyFetchOptions) { var PropertyFetchOptions = function() { }; stjs.extend(PropertyFetchOptions, EmptyFetchOptions, [ EmptyFetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.property.PropertyFetchOptions'; + prototype['@type'] = 'as.dto.property.fetchoptions.PropertyFetchOptions'; constructor.serialVersionUID = 1; }, {}); return PropertyFetchOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/Sample.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/Sample.js similarity index 97% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/Sample.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/Sample.js index 0eccf4ba78d37b51121e598d2e015ab461de264e..6b973fca43b42c052969c26264adba15a5fb9a1f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/Sample.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/Sample.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var Sample = function() { }; stjs.extend(Sample, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.sample.Sample'; + prototype['@type'] = 'as.dto.sample.Sample'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; @@ -120,6 +120,10 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setProperties = function(properties) { this.properties = properties; }; + prototype.getMaterialProperty = function(propertyName) { + var properties = this.getMaterialProperties(); + return properties ? properties[propertyName] : null; + }; prototype.getMaterialProperties = function() { if (this.getFetchOptions().hasMaterialProperties()) { return this.materialProperties; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/SampleType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/SampleType.js similarity index 97% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/SampleType.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/SampleType.js index d20264b8c61a65ad40a4c97b8b4f9649d9245569..41c09ddc2e51d8ef641315817c0a3e45f4b1fa6d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/SampleType.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/SampleType.js @@ -6,7 +6,7 @@ define([ "stjs" ], function(stjs) { var SampleType = function() { }; stjs.extend(SampleType, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.sample.SampleType'; + prototype['@type'] = 'as.dto.sample.SampleType'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/sample/CreateSamplesOperation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/create/CreateSamplesOperation.js similarity index 74% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/sample/CreateSamplesOperation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/create/CreateSamplesOperation.js index 130ca9ce50622329c13756fd2e5ba7d6117cce26..d794823d92d7c0d86aa9e79915d3a0fba1bc927c 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/sample/CreateSamplesOperation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/create/CreateSamplesOperation.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/operation/IOperation" ], function(stjs, IOperation) { +define([ "stjs", "as/dto/common/operations/IOperation" ], function(stjs, IOperation) { var CreateSamplesOperation = function(creations) { this.creations = creations; }; stjs.extend(CreateSamplesOperation, null, [ IOperation ], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.sample.CreateSamplesOperation'; + prototype['@type'] = 'as.dto.sample.create.CreateSamplesOperation'; prototype.creations = null; prototype.getCreations = function() { return this.creations; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/sample/CreateSamplesResult.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/create/CreateSamplesResult.js similarity index 71% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/sample/CreateSamplesResult.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/create/CreateSamplesResult.js index a5b768dbf6521a18d1a9447f78018d8328c6ee19..4ff3ff425d6d0e1368519bdf8a7c0c0352e1f667 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/sample/CreateSamplesResult.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/create/CreateSamplesResult.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/operation/IOperationResult" ], function(stjs, IOperationResult) { +define([ "stjs", "as/dto/common/operations/IOperationResult" ], function(stjs, IOperationResult) { var CreateSamplesResult = function(permIds) { this.permIds = permIds; }; stjs.extend(CreateSamplesResult, null, [ IOperationResult ], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.sample.CreateSamplesResult'; + prototype['@type'] = 'as.dto.sample.create.CreateSamplesResult'; prototype.permIds = null; prototype.getPermIds = function() { return this.permIds; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/SampleCreation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/create/SampleCreation.js similarity index 91% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/SampleCreation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/create/SampleCreation.js index 9b77554081ba7881ef4c247529e80f400dd85b6e..f7107c122304b73ccf7e627f60945acf122561b5 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/SampleCreation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/create/SampleCreation.js @@ -6,7 +6,7 @@ define([ "stjs" ], function(stjs) { this.properties = {}; }; stjs.extend(SampleCreation, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.sample.SampleCreation'; + prototype['@type'] = 'as.dto.sample.create.SampleCreation'; constructor.serialVersionUID = 1; prototype.typeId = null; prototype.experimentId = null; @@ -50,6 +50,12 @@ define([ "stjs" ], function(stjs) { prototype.setCode = function(code) { this.code = code; }; + prototype.isAutoGeneratedCode = function() { + return this.autoGeneratedCode; + } + prototype.setAutoGeneratedCode = function(autoGeneratedCode) { + this.autoGeneratedCode = autoGeneratedCode; + }; prototype.getTagIds = function() { return this.tagIds; }; @@ -62,7 +68,7 @@ define([ "stjs" ], function(stjs) { prototype.setContainerId = function(containerId) { this.containerId = containerId; }; - prototype.getcomponentIds = function() { + prototype.getComponentIds = function() { return this.componentIds; }; prototype.setComponentIds = function(componentIds) { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/sample/SampleDeletionOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/delete/SampleDeletionOptions.js similarity index 63% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/sample/SampleDeletionOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/delete/SampleDeletionOptions.js index 5d6e67d42a7ea5a1d8a5ad13e04ebbe6793b8506..a48354034766bdfeaee92303972b6379db3bb80e 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/sample/SampleDeletionOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/delete/SampleDeletionOptions.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { +define([ "stjs", "as/dto/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { var SampleDeletionOptions = function() { AbstractObjectDeletionOptions.call(this); }; stjs.extend(SampleDeletionOptions, AbstractObjectDeletionOptions, [ AbstractObjectDeletionOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.deletion.sample.SampleDeletionOptions'; + prototype['@type'] = 'as.dto.sample.delete.SampleDeletionOptions'; constructor.serialVersionUID = 1; }, {}); return SampleDeletionOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleFetchOptions.js similarity index 78% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleFetchOptions.js index 7ebb4decc04369093bba67412ffd2fa8899afb6b..9fa3e331c5b7a93486895257b0f8368072fc2229 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleFetchOptions.js @@ -2,14 +2,14 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/sample/SampleTypeFetchOptions', 'dto/fetchoptions/space/SpaceFetchOptions', 'dto/fetchoptions/project/ProjectFetchOptions', - 'dto/fetchoptions/experiment/ExperimentFetchOptions', 'dto/fetchoptions/property/PropertyFetchOptions', 'dto/fetchoptions/tag/TagFetchOptions', 'dto/fetchoptions/person/PersonFetchOptions', - 'dto/fetchoptions/attachment/AttachmentFetchOptions', 'dto/fetchoptions/material/MaterialFetchOptions', 'dto/fetchoptions/dataset/DataSetFetchOptions', - 'dto/fetchoptions/history/HistoryEntryFetchOptions', 'dto/fetchoptions/sample/SampleSortOptions' ], function(require, stjs, FetchOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", 'as/dto/sample/fetchoptions/SampleTypeFetchOptions', 'as/dto/space/fetchoptions/SpaceFetchOptions', + 'as/dto/project/fetchoptions/ProjectFetchOptions', 'as/dto/experiment/fetchoptions/ExperimentFetchOptions', 'as/dto/property/fetchoptions/PropertyFetchOptions', 'as/dto/tag/fetchoptions/TagFetchOptions', + 'as/dto/person/fetchoptions/PersonFetchOptions', 'as/dto/attachment/fetchoptions/AttachmentFetchOptions', 'as/dto/material/fetchoptions/MaterialFetchOptions', + 'as/dto/dataset/fetchoptions/DataSetFetchOptions', 'as/dto/history/fetchoptions/HistoryEntryFetchOptions', 'as/dto/sample/fetchoptions/SampleSortOptions' ], function(require, stjs, FetchOptions) { var SampleFetchOptions = function() { }; stjs.extend(SampleFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.sample.SampleFetchOptions'; + prototype['@type'] = 'as.dto.sample.fetchoptions.SampleFetchOptions'; constructor.serialVersionUID = 1; prototype.type = null; prototype.project = null; @@ -30,7 +30,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s prototype.sort = null; prototype.withType = function() { if (this.type == null) { - var SampleTypeFetchOptions = require("dto/fetchoptions/sample/SampleTypeFetchOptions"); + var SampleTypeFetchOptions = require("as/dto/sample/fetchoptions/SampleTypeFetchOptions"); this.type = new SampleTypeFetchOptions(); } return this.type; @@ -43,7 +43,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withProject = function() { if (this.project == null) { - var ProjectFetchOptions = require("dto/fetchoptions/space/ProjectFetchOptions"); + var ProjectFetchOptions = require("as/dto/project/fetchoptions/ProjectFetchOptions"); this.project = new ProjectFetchOptions(); } return this.project; @@ -56,7 +56,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withSpace = function() { if (this.space == null) { - var SpaceFetchOptions = require("dto/fetchoptions/space/SpaceFetchOptions"); + var SpaceFetchOptions = require("as/dto/space/fetchoptions/SpaceFetchOptions"); this.space = new SpaceFetchOptions(); } return this.space; @@ -69,7 +69,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withExperiment = function() { if (this.experiment == null) { - var ExperimentFetchOptions = require("dto/fetchoptions/experiment/ExperimentFetchOptions"); + var ExperimentFetchOptions = require("as/dto/experiment/fetchoptions/ExperimentFetchOptions"); this.experiment = new ExperimentFetchOptions(); } return this.experiment; @@ -82,7 +82,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withProperties = function() { if (this.properties == null) { - var PropertyFetchOptions = require("dto/fetchoptions/property/PropertyFetchOptions"); + var PropertyFetchOptions = require("as/dto/property/fetchoptions/PropertyFetchOptions"); this.properties = new PropertyFetchOptions(); } return this.properties; @@ -95,7 +95,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withMaterialProperties = function() { if (this.materialProperties == null) { - var MaterialFetchOptions = require("dto/fetchoptions/material/MaterialFetchOptions"); + var MaterialFetchOptions = require("as/dto/material/fetchoptions/MaterialFetchOptions"); this.materialProperties = new MaterialFetchOptions(); } return this.materialProperties; @@ -156,7 +156,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withDataSets = function() { if (this.dataSets == null) { - var DataSetFetchOptions = require("dto/fetchoptions/dataset/DataSetFetchOptions"); + var DataSetFetchOptions = require("as/dto/dataset/fetchoptions/DataSetFetchOptions"); this.dataSets = new DataSetFetchOptions(); } return this.dataSets; @@ -169,7 +169,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withHistory = function() { if (this.history == null) { - var HistoryEntryFetchOptions = require("dto/fetchoptions/history/HistoryEntryFetchOptions"); + var HistoryEntryFetchOptions = require("as/dto/history/fetchoptions/HistoryEntryFetchOptions"); this.history = new HistoryEntryFetchOptions(); } return this.history; @@ -182,7 +182,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withTags = function() { if (this.tags == null) { - var TagFetchOptions = require("dto/fetchoptions/tag/TagFetchOptions"); + var TagFetchOptions = require("as/dto/tag/fetchoptions/TagFetchOptions"); this.tags = new TagFetchOptions(); } return this.tags; @@ -195,7 +195,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withRegistrator = function() { if (this.registrator == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.registrator = new PersonFetchOptions(); } return this.registrator; @@ -208,7 +208,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withModifier = function() { if (this.modifier == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.modifier = new PersonFetchOptions(); } return this.modifier; @@ -221,7 +221,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.withAttachments = function() { if (this.attachments == null) { - var AttachmentFetchOptions = require("dto/fetchoptions/attachment/AttachmentFetchOptions"); + var AttachmentFetchOptions = require("as/dto/attachment/fetchoptions/AttachmentFetchOptions"); this.attachments = new AttachmentFetchOptions(); } return this.attachments; @@ -234,7 +234,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", 'dto/fetchoptions/s }; prototype.sortBy = function() { if (this.sort == null) { - var SampleSortOptions = require("dto/fetchoptions/sample/SampleSortOptions"); + var SampleSortOptions = require("as/dto/sample/fetchoptions/SampleSortOptions"); this.sort = new SampleSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleSortOptions.js index 0fe19869860d8c694cbac2134ce3899def068cbf..9a219aa781cba931d935bc8b3d8078fa692da039 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/EntityWithPropertiesSortOptions" ], function(require, stjs, EntityWithPropertiesSortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/EntityWithPropertiesSortOptions" ], function(require, stjs, EntityWithPropertiesSortOptions) { var SampleSortOptions = function() { EntityWithPropertiesSortOptions.call(this); }; stjs.extend(SampleSortOptions, EntityWithPropertiesSortOptions, [ EntityWithPropertiesSortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.sample.SampleSortOptions'; + prototype['@type'] = 'as.dto.sample.fetchoptions.SampleSortOptions'; constructor.serialVersionUID = 1; }, {}); return SampleSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleTypeFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleTypeFetchOptions.js similarity index 66% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleTypeFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleTypeFetchOptions.js index ced7ee3e4422190bb357c5775e4e841455aa4aa7..d0a5e52864ad41a6fbcc8d0245b08f0e33075ec7 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleTypeFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleTypeFetchOptions.js @@ -2,16 +2,16 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/sample/SampleTypeSortOptions" ], function(stjs, FetchOptions) { +define([ "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/sample/fetchoptions/SampleTypeSortOptions" ], function(stjs, FetchOptions) { var SampleTypeFetchOptions = function() { }; stjs.extend(SampleTypeFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.sample.SampleTypeFetchOptions'; + prototype['@type'] = 'as.dto.sample.fetchoptions.SampleTypeFetchOptions'; constructor.serialVersionUID = 1; prototype.sort = null; prototype.sortBy = function() { if (this.sort == null) { - var SampleTypeSortOptions = require("dto/fetchoptions/sample/SampleTypeSortOptions"); + var SampleTypeSortOptions = require("as/dto/sample/fetchoptions/SampleTypeSortOptions"); this.sort = new SampleTypeSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleTypeSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleTypeSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleTypeSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleTypeSortOptions.js index b76e203723425fbe29e52d8866f589318d3f4c7d..23018494199f6aefd8d14b3b69ced20e72c3a9fb 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/sample/SampleTypeSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/fetchoptions/SampleTypeSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var SampleTypeSortOptions = function() { SortOptions.call(this); }; stjs.extend(SampleTypeSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.sample.SampleTypeSortOptions'; + prototype['@type'] = 'as.dto.sample.fetchoptions.SampleTypeSortOptions'; constructor.serialVersionUID = 1; }, {}); return SampleTypeSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/history/SampleRelationType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/history/SampleRelationType.js new file mode 100644 index 0000000000000000000000000000000000000000..056e5c3d3c1a8d15db6ff924a9efb8656bf93d25 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/history/SampleRelationType.js @@ -0,0 +1,11 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var SampleRelationType = function() { + Enum.call(this, [ "SPACE", "EXPERIMENT", "PARENT", "CHILD", "CONTAINER", "COMPONENT", "DATA_SET" ]); + }; + stjs.extend(SampleRelationType, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new SampleRelationType(); +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/id/ISampleId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/id/ISampleId.js new file mode 100644 index 0000000000000000000000000000000000000000..90ae821e4e0485fdf79c2c7cf3a3087f0f1161bb --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/id/ISampleId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies a sample in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var ISampleId = function() { + }; + stjs.extend(ISampleId, null, [ IObjectId ], null, {}); + return ISampleId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/id/SampleIdentifier.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/id/SampleIdentifier.js new file mode 100644 index 0000000000000000000000000000000000000000..d4773c141c368979917f13ea3130a49f4186db1d --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/id/SampleIdentifier.js @@ -0,0 +1,20 @@ +/** + * Sample identifier. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectIdentifier", "as/dto/sample/id/ISampleId" ], function(stjs, ObjectIdentifier, ISampleId) { + /** + * @param identifier + * Sample identifier, e.g. "/MY_SPACE/MY_SAMPLE" (space sample) + * or "/MY_SAMPLE" (shared sample) + */ + var SampleIdentifier = function(identifier) { + ObjectIdentifier.call(this, identifier); + }; + stjs.extend(SampleIdentifier, ObjectIdentifier, [ ObjectIdentifier, ISampleId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.sample.id.SampleIdentifier'; + constructor.serialVersionUID = 1; + }, {}); + return SampleIdentifier; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/id/SamplePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/id/SamplePermId.js new file mode 100644 index 0000000000000000000000000000000000000000..bb2de064a36813b34bf6dd6bc0252aa84f842f1e --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/id/SamplePermId.js @@ -0,0 +1,19 @@ +/** + * Sample perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/sample/id/ISampleId" ], function(stjs, ObjectPermId, ISampleId) { + /** + * @param permId + * Sample perm id, e.g. "201108050937246-1031". + */ + var SamplePermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(SamplePermId, ObjectPermId, [ ObjectPermId, ISampleId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.sample.id.SamplePermId'; + constructor.serialVersionUID = 1; + }, {}); + return SamplePermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoSampleContainerSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/NoSampleContainerSearchCriteria.js similarity index 62% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoSampleContainerSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/NoSampleContainerSearchCriteria.js index 9d1d31736e87b0f7c538618254a3ae9cd9218338..ea065dcbf543c23a6d764adfdc19ca928b600ec3 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoSampleContainerSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/NoSampleContainerSearchCriteria.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/NoSampleSearchCriteria" ], function(stjs, NoSampleSearchCriteria) { +define([ "stjs", "as/dto/sample/search/NoSampleSearchCriteria" ], function(stjs, NoSampleSearchCriteria) { var NoSampleContainerSearchCriteria = function() { }; stjs.extend(NoSampleContainerSearchCriteria, NoSampleSearchCriteria, [ NoSampleSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NoSampleContainerSearchCriteria'; + prototype['@type'] = 'as.dto.sample.search.NoSampleContainerSearchCriteria'; constructor.serialVersionUID = 1; }, {}); return NoSampleContainerSearchCriteria; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoSampleSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/NoSampleSearchCriteria.js similarity index 60% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoSampleSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/NoSampleSearchCriteria.js index 97056d1243d3c9e8dc6a07149072277846cfcbf9..f0b7cb48a7118b6bf92f4bdcfc6d0e546db6e24b 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/NoSampleSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/NoSampleSearchCriteria.js @@ -1,11 +1,11 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/search/ISearchCriteria" ], function(stjs, ISearchCriteria) { +define([ "stjs", "as/dto/common/search/ISearchCriteria" ], function(stjs, ISearchCriteria) { var NoSampleSearchCriteria = function() { }; stjs.extend(NoSampleSearchCriteria, null, [ ISearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.NoSampleSearchCriteria'; + prototype['@type'] = 'as.dto.sample.search.NoSampleSearchCriteria'; constructor.serialVersionUID = 1; }, {}); return NoSampleSearchCriteria; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SampleSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/SampleSearchCriteria.js similarity index 72% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SampleSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/SampleSearchCriteria.js index 2fb43ae4677a76dd509f95c78d63fadd87e81acb..ecc76b75108847baab0bfbf5dbee6cd3a5c3b182 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SampleSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/SampleSearchCriteria.js @@ -1,38 +1,36 @@ /** * @author pkupczyk */ -define([ "require", "stjs", "dto/search/AbstractEntitySearchCriteria", "dto/search/SampleSearchRelation", "dto/search/SearchOperator", - "dto/search/SpaceSearchCriteria", "dto/search/ProjectSearchCriteria", "dto/search/NoProjectSearchCriteria", - "dto/search/ExperimentSearchCriteria", "dto/search/NoExperimentSearchCriteria", - "dto/search/NoSampleContainerSearchCriteria"], - function(require, stjs, AbstractEntitySearchCriteria, SampleSearchRelation, SearchOperator) { +define([ "require", "stjs", "as/dto/common/search/AbstractEntitySearchCriteria", "as/dto/common/search/SearchOperator", "as/dto/sample/search/SampleSearchRelation", "as/dto/space/search/SpaceSearchCriteria", + "as/dto/project/search/ProjectSearchCriteria", "as/dto/project/search/NoProjectSearchCriteria", "as/dto/experiment/search/ExperimentSearchCriteria", "as/dto/experiment/search/NoExperimentSearchCriteria", + "as/dto/sample/search/NoSampleContainerSearchCriteria" ], function(require, stjs, AbstractEntitySearchCriteria, SearchOperator, SampleSearchRelation) { var SampleSearchCriteria = function(relation) { AbstractEntitySearchCriteria.call(this); this.relation = relation ? relation : SampleSearchRelation.SAMPLE; }; stjs.extend(SampleSearchCriteria, AbstractEntitySearchCriteria, [ AbstractEntitySearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.SampleSearchCriteria'; + prototype['@type'] = 'as.dto.sample.search.SampleSearchCriteria'; constructor.serialVersionUID = 1; prototype.relation = null; prototype.withSpace = function() { - var SpaceSearchCriteria = require("dto/search/SpaceSearchCriteria"); + var SpaceSearchCriteria = require("as/dto/space/search/SpaceSearchCriteria"); return this.addCriteria(new SpaceSearchCriteria()); }; prototype.withProject = function() { - var ProjectSearchCriteria = require("dto/search/ProjectSearchCriteria"); + var ProjectSearchCriteria = require("as/dto/project/search/ProjectSearchCriteria"); return this.addCriteria(new ProjectSearchCriteria()); }; prototype.withoutProject = function() { - var NoProjectSearchCriteria = require("dto/search/NoProjectSearchCriteria"); + var NoProjectSearchCriteria = require("as/dto/project/search/NoProjectSearchCriteria"); return this.addCriteria(new NoProjectSearchCriteria()); }; prototype.withExperiment = function() { - var ExperimentSearchCriteria = require("dto/search/ExperimentSearchCriteria"); + var ExperimentSearchCriteria = require("as/dto/experiment/search/ExperimentSearchCriteria"); return this.addCriteria(new ExperimentSearchCriteria()); }; prototype.withoutExperiment = function() { - var NoExperimentSearchCriteria = require("dto/search/NoExperimentSearchCriteria"); + var NoExperimentSearchCriteria = require("as/dto/experiment/search/NoExperimentSearchCriteria"); return this.addCriteria(new NoExperimentSearchCriteria()); }; prototype.withParents = function() { @@ -45,7 +43,7 @@ define([ "require", "stjs", "dto/search/AbstractEntitySearchCriteria", "dto/sear return this.addCriteria(new SampleContainerSearchCriteria()); }; prototype.withoutContainer = function() { - var NoSampleContainerSearchCriteria = require("dto/search/NoSampleContainerSearchCriteria"); + var NoSampleContainerSearchCriteria = require("as/dto/sample/search/NoSampleContainerSearchCriteria"); return this.addCriteria(new NoSampleContainerSearchCriteria()); }; prototype.withOrOperator = function() { @@ -81,7 +79,7 @@ define([ "require", "stjs", "dto/search/AbstractEntitySearchCriteria", "dto/sear SampleSearchCriteria.call(this, SampleSearchRelation.PARENTS); }; stjs.extend(SampleParentsSearchCriteria, SampleSearchCriteria, [ SampleSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.SampleParentsSearchCriteria'; + prototype['@type'] = 'as.dto.sample.search.SampleParentsSearchCriteria'; constructor.serialVersionUID = 1; }, { relation : { @@ -102,7 +100,7 @@ define([ "require", "stjs", "dto/search/AbstractEntitySearchCriteria", "dto/sear SampleSearchCriteria.call(this, SampleSearchRelation.CHILDREN); }; stjs.extend(SampleChildrenSearchCriteria, SampleSearchCriteria, [ SampleSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.SampleChildrenSearchCriteria'; + prototype['@type'] = 'as.dto.sample.search.SampleChildrenSearchCriteria'; constructor.serialVersionUID = 1; }, { relation : { @@ -123,7 +121,7 @@ define([ "require", "stjs", "dto/search/AbstractEntitySearchCriteria", "dto/sear SampleSearchCriteria.call(this, SampleSearchRelation.CONTAINER); }; stjs.extend(SampleContainerSearchCriteria, SampleSearchCriteria, [ SampleSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.SampleContainerSearchCriteria'; + prototype['@type'] = 'as.dto.sample.search.SampleContainerSearchCriteria'; constructor.serialVersionUID = 1; }, { relation : { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/SampleSearchRelation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/SampleSearchRelation.js new file mode 100644 index 0000000000000000000000000000000000000000..3af3467437cf91bae525c38613ab9b16b5b03daf --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/search/SampleSearchRelation.js @@ -0,0 +1,11 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/Enum" ], function(stjs, Enum) { + var SampleSearchRelation = function() { + Enum.call(this, [ "SAMPLE", "PARENTS", "CHILDREN", "CONTAINER" ]); + }; + stjs.extend(SampleSearchRelation, Enum, [ Enum ], function(constructor, prototype) { + }, {}); + return new SampleSearchRelation(); +}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/SampleUpdate.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/update/SampleUpdate.js similarity index 85% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/SampleUpdate.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/update/SampleUpdate.js index c24134d9597319bc501b6234cf7f6c93d9e2acfc..22667c53c3d1f9a02518ab11301a0479ed1a568d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/sample/SampleUpdate.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/update/SampleUpdate.js @@ -1,7 +1,7 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/FieldUpdateValue", "dto/entity/IdListUpdateValue", "dto/entity/AttachmentListUpdateValue" ], function(stjs, FieldUpdateValue, IdListUpdateValue, +define([ "stjs", "as/dto/common/update/FieldUpdateValue", "as/dto/common/update/IdListUpdateValue", "as/dto/attachment/update/AttachmentListUpdateValue" ], function(stjs, FieldUpdateValue, IdListUpdateValue, AttachmentListUpdateValue) { var SampleUpdate = function() { this.properties = {}; @@ -16,9 +16,19 @@ define([ "stjs", "dto/entity/FieldUpdateValue", "dto/entity/IdListUpdateValue", this.attachments = new AttachmentListUpdateValue(); }; stjs.extend(SampleUpdate, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.sample.SampleUpdate'; + prototype['@type'] = 'as.dto.sample.update.SampleUpdate'; constructor.serialVersionUID = 1; prototype.sampleId = null; + prototype.properties = null; + prototype.experimentId = null; + prototype.projectId = null; + prototype.spaceId = null; + prototype.tagIds = null; + prototype.containerId = null; + prototype.componentIds = null; + prototype.parentIds = null; + prototype.childIds = null; + prototype.attachments = null; prototype.getSampleId = function() { return this.sampleId; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/sample/UpdateSamplesOperation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/update/UpdateSamplesOperation.js similarity index 73% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/sample/UpdateSamplesOperation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/update/UpdateSamplesOperation.js index 1c4ae45bac26572cf6c756f17775ac7fdf42f23a..2aa34d7fe1954830ad14a70e55455e0b046deee6 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/sample/UpdateSamplesOperation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/sample/update/UpdateSamplesOperation.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/operation/IOperation" ], function(stjs, IOperation) { +define([ "stjs", "as/dto/common/operations/IOperation" ], function(stjs, IOperation) { var UpdateSamplesOperation = function(updates) { this.updates = updates; }; stjs.extend(UpdateSamplesOperation, null, [ IOperation ], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.sample.UpdateSamplesOperation'; + prototype['@type'] = 'as.dto.sample.update.UpdateSamplesOperation'; prototype.updates = null; prototype.getUpdates = function() { return this.updates; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/CustomASService.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/CustomASService.js new file mode 100644 index 0000000000000000000000000000000000000000..cdca7cfd83ce2b3c016f5ad669165ec40ffb41c6 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/CustomASService.js @@ -0,0 +1,43 @@ +define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { + var CustomASService = function() { + }; + stjs.extend(CustomASService, null, [], function(constructor, prototype) { + prototype['@type'] = 'as.dto.service.CustomASService'; + constructor.serialVersionUID = 1; + prototype.fetchOptions = null; + prototype.code = null; + prototype.label = null; + prototype.description = null; + + prototype.getFetchOptions = function() { + return this.fetchOptions; + }; + prototype.setFetchOptions = function(fetchOptions) { + this.fetchOptions = fetchOptions; + }; + prototype.getCode = function() { + return this.code; + }; + prototype.setCode = function(code) { + this.code = code; + }; + prototype.getLabel = function() { + return this.label; + }; + prototype.setLabel = function(label) { + this.label = label; + }; + prototype.getDescription = function() { + return this.description; + }; + prototype.setDescription = function(description) { + this.description = description; + }; + prototype.toString = function() { + return "CustomASService " + this.code; + }; + }, { + fetchOptions : "CustomASServiceFetchOptions" + }); + return CustomASService; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/CustomASServiceExecutionOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/CustomASServiceExecutionOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..c17de38e551725286712b600f4904cebe99e340c --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/CustomASServiceExecutionOptions.js @@ -0,0 +1,23 @@ +define([ "stjs"], function(stjs) { + var CustomASServiceExecutionOptions = function() { + this.parameters = {}; + }; + stjs.extend(CustomASServiceExecutionOptions, null, [ ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.service.CustomASServiceExecutionOptions'; + constructor.serialVersionUID = 1; + prototype.parameters = null; + prototype.withParameter = function(parameterName, value) { + this.parameters[parameterName] = value; + return this; + } + prototype.getParameters = function() { + return this.parameters; + } + }, { + parameters : { + name : "Map", + arguments : [ null, null ] + } + }); + return CustomASServiceExecutionOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/fetchoptions/CustomASServiceFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/fetchoptions/CustomASServiceFetchOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..e977bf46f3322edc976bb9bbdbd53ac4b63d43be --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/fetchoptions/CustomASServiceFetchOptions.js @@ -0,0 +1,22 @@ +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/service/fetchoptions/CustomASServiceSortOptions" ], function(require, stjs, FetchOptions) { + var CustomASServiceFetchOptions = function() { + }; + stjs.extend(CustomASServiceFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.service.fetchoptions.CustomASServiceFetchOptions'; + constructor.serialVersionUID = 1; + prototype.sort = null; + prototype.sortBy = function() { + if (this.sort == null) { + var CustomASServiceSortOptions = require("as/dto/service/fetchoptions/CustomASServiceSortOptions"); + this.sort = new CustomASServiceSortOptions(); + } + return this.sort; + }; + prototype.getSortBy = function() { + return this.sort; + }; + }, { + sort : "CustomASServiceSortOptions" + }); + return CustomASServiceFetchOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/fetchoptions/CustomASServiceSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/fetchoptions/CustomASServiceSortOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..10e3357cbdf6496d9eeca999a21dc62911c5d194 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/fetchoptions/CustomASServiceSortOptions.js @@ -0,0 +1,10 @@ +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { + var CustomASServiceSortOptions = function() { + SortOptions.call(this); + }; + stjs.extend(CustomASServiceSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.service.fetchoptions.CustomASServiceSortOptions'; + constructor.serialVersionUID = 1; + }, {}); + return CustomASServiceSortOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/id/CustomASServiceCode.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/id/CustomASServiceCode.js new file mode 100644 index 0000000000000000000000000000000000000000..26db126cf971dda4d75cfa4e9db4e9294f679a28 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/id/CustomASServiceCode.js @@ -0,0 +1,15 @@ +/** + * Custom AS service code. This is the name of an AS core plugin of type 'services'. + * + * @author Franz-Josef Elmer + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/service/id/ICustomASServiceId" ], function(stjs, ObjectPermId, ICustomASServiceId) { + var CustomASServiceCode = function(code) { + ObjectPermId.call(this, code); + }; + stjs.extend(CustomASServiceCode, ObjectPermId, [ ObjectPermId, ICustomASServiceId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.service.id.CustomASServiceCode'; + constructor.serialVersionUID = 1; + }, {}); + return CustomASServiceCode; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/id/ICustomASServiceId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/id/ICustomASServiceId.js new file mode 100644 index 0000000000000000000000000000000000000000..6b86eaf50e55153030f9ce7d2ccc96687ac0a757 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/id/ICustomASServiceId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies a custom AS service in openBIS. + * + * @author Franz-Josef Elmer + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var ICustomASServiceId = function() { + }; + stjs.extend(ICustomASServiceId, null, [ IObjectId ], null, {}); + return ICustomASServiceId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/search/CustomASServiceSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/search/CustomASServiceSearchCriteria.js new file mode 100644 index 0000000000000000000000000000000000000000..3dcfff41ab0f213e316ed269fc9687b8bb3b0520 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/service/search/CustomASServiceSearchCriteria.js @@ -0,0 +1,26 @@ +define([ "require", "stjs", "as/dto/common/search/AbstractObjectSearchCriteria", "as/dto/common/search/CodeSearchCriteria"], + function(require, stjs, AbstractObjectSearchCriteria) { + var CustomASServiceSearchCriteria = function() { + AbstractObjectSearchCriteria.call(this); + }; + stjs.extend(CustomASServiceSearchCriteria, AbstractObjectSearchCriteria, [ AbstractObjectSearchCriteria ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.service.search.CustomASServiceSearchCriteria'; + constructor.serialVersionUID = 1; + prototype.withCode = function() { + var CodeSearchCriteria = require("as/dto/common/search/CodeSearchCriteria"); + return this.addCriteria(new CodeSearchCriteria()); + }; + prototype.createBuilder = function() { + var AbstractCompositeSearchCriteria = require("as/dto/common/search/AbstractCompositeSearchCriteria"); + var builder = AbstractCompositeSearchCriteria.prototype.createBuilder.call(this); + builder.setName("CUSTOM_AS_SERVICE"); + return builder; + }; + }, { + criteria : { + name : "Collection", + arguments : [ "ISearchCriteria" ] + } + }); + return CustomASServiceSearchCriteria; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/space/Space.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/Space.js similarity index 98% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/space/Space.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/Space.js index 98d8f73cd7430659eace50bb9a4a7c68120d06a3..9062fe6cac395911cb990aac39c20c7adefd51a2 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/space/Space.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/Space.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var Space = function() { }; stjs.extend(Space, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.space.Space'; + prototype['@type'] = 'as.dto.space.Space'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/space/SpaceCreation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/create/SpaceCreation.js similarity index 90% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/space/SpaceCreation.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/create/SpaceCreation.js index 17b46cdf30c5aef7e0cb1bb85b708cc4d6f686dc..b694e68fca34f5056dbb270207e6eff0f697810f 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/space/SpaceCreation.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/create/SpaceCreation.js @@ -5,7 +5,7 @@ define([ "stjs" ], function(stjs) { var SpaceCreation = function() { }; stjs.extend(SpaceCreation, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.space.SpaceCreation'; + prototype['@type'] = 'as.dto.space.create.SpaceCreation'; constructor.serialVersionUID = 1; prototype.code = null; prototype.description = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/space/SpaceDeletionOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/delete/SpaceDeletionOptions.js similarity index 63% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/space/SpaceDeletionOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/delete/SpaceDeletionOptions.js index c261e7ff7c016f0eeca343010ac3180dfd566122..dd8043e2f08722b5c18101f74de68cad4daea911 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/space/SpaceDeletionOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/delete/SpaceDeletionOptions.js @@ -1,12 +1,12 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { +define([ "stjs", "as/dto/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) { var SpaceDeletionOptions = function() { AbstractObjectDeletionOptions.call(this); }; stjs.extend(SpaceDeletionOptions, AbstractObjectDeletionOptions, [ AbstractObjectDeletionOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.deletion.space.SpaceDeletionOptions'; + prototype['@type'] = 'as.dto.space.delete.SpaceDeletionOptions'; constructor.serialVersionUID = 1; }, {}); return SpaceDeletionOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/space/SpaceFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/fetchoptions/SpaceFetchOptions.js similarity index 71% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/space/SpaceFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/fetchoptions/SpaceFetchOptions.js index 0a2a812bebf0d714b2fed98b65a3895e63652d2f..93af4d40b8e5e022897951ae51829f1aa0ea2900 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/space/SpaceFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/fetchoptions/SpaceFetchOptions.js @@ -2,12 +2,12 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/person/PersonFetchOptions", "dto/fetchoptions/sample/SampleFetchOptions", - "dto/fetchoptions/project/ProjectFetchOptions", "dto/fetchoptions/space/SpaceSortOptions" ], function(require, stjs, FetchOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/person/fetchoptions/PersonFetchOptions", "as/dto/sample/fetchoptions/SampleFetchOptions", + "as/dto/project/fetchoptions/ProjectFetchOptions", "as/dto/space/fetchoptions/SpaceSortOptions" ], function(require, stjs, FetchOptions) { var SpaceFetchOptions = function() { }; stjs.extend(SpaceFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.space.SpaceFetchOptions'; + prototype['@type'] = 'as.dto.space.fetchoptions.SpaceFetchOptions'; constructor.serialVersionUID = 1; prototype.registrator = null; prototype.samples = null; @@ -15,7 +15,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/p prototype.sort = null; prototype.withRegistrator = function() { if (this.registrator == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.registrator = new PersonFetchOptions(); } return this.registrator; @@ -28,7 +28,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/p }; prototype.withSamples = function() { if (this.samples == null) { - var SampleFetchOptions = require("dto/fetchoptions/sample/SampleFetchOptions"); + var SampleFetchOptions = require("as/dto/sample/fetchoptions/SampleFetchOptions"); this.samples = new SampleFetchOptions(); } return this.samples; @@ -41,7 +41,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/p }; prototype.withProjects = function() { if (this.projects == null) { - var ProjectFetchOptions = require("dto/fetchoptions/project/ProjectFetchOptions"); + var ProjectFetchOptions = require("as/dto/project/fetchoptions/ProjectFetchOptions"); this.projects = new ProjectFetchOptions(); } return this.projects; @@ -54,7 +54,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/p }; prototype.sortBy = function() { if (this.sort == null) { - var SpaceSortOptions = require("dto/fetchoptions/space/SpaceSortOptions"); + var SpaceSortOptions = require("as/dto/space/fetchoptions/SpaceSortOptions"); this.sort = new SpaceSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/space/SpaceSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/fetchoptions/SpaceSortOptions.js similarity index 56% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/space/SpaceSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/fetchoptions/SpaceSortOptions.js index be295fb8cb0ce7f3fb0248c86c9d7389ec162527..f9f98f50075f99cb2ccca2b31bd8276953fa7d10 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/space/SpaceSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/fetchoptions/SpaceSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/EntitySortOptions" ], function(require, stjs, EntitySortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/EntitySortOptions" ], function(require, stjs, EntitySortOptions) { var SpaceSortOptions = function() { EntitySortOptions.call(this); }; stjs.extend(SpaceSortOptions, EntitySortOptions, [ EntitySortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.space.SpaceSortOptions'; + prototype['@type'] = 'as.dto.space.fetchoptions.SpaceSortOptions'; constructor.serialVersionUID = 1; }, {}); return SpaceSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/id/ISpaceId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/id/ISpaceId.js new file mode 100644 index 0000000000000000000000000000000000000000..da7e5a8d03ec4c4eb810efe4875500942847dc8d --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/id/ISpaceId.js @@ -0,0 +1,11 @@ +/** + * Holds information that uniquely identifies a space in openBIS. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var ISpaceId = function() { + }; + stjs.extend(ISpaceId, null, [ IObjectId ], null, {}); + return ISpaceId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/id/SpacePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/id/SpacePermId.js new file mode 100644 index 0000000000000000000000000000000000000000..5ca23607cb87b97f45d0bb9dbedab888327bc730 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/id/SpacePermId.js @@ -0,0 +1,27 @@ +/** + * Space perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/space/id/ISpaceId" ], function(stjs, ObjectPermId, ISpaceId) { + /** + * @param permId + * Space perm id, e.g. "/MY_SPACE" or "MY_SPACE". + */ + var SpacePermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(SpacePermId, ObjectPermId, [ ObjectPermId, ISpaceId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.space.id.SpacePermId'; + constructor.serialVersionUID = 1; + prototype.getPermId = function() { + var permId = ObjectPermId.prototype.getPermId.call(this); + if (permId.startsWith("/")) { + return permId.substring(1); + } else { + return permId; + } + }; + }, {}); + return SpacePermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SpaceSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/search/SpaceSearchCriteria.js similarity index 55% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SpaceSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/search/SpaceSearchCriteria.js index fa14f2509905782a0d38df7d77178c2f883612c1..04ceb951c99878a85fd49a18a60207be82715a5a 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SpaceSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/search/SpaceSearchCriteria.js @@ -1,25 +1,24 @@ /** * @author pkupczyk */ -define([ "require", "stjs", "dto/search/AbstractObjectSearchCriteria", - "dto/search/CodeSearchCriteria", "dto/search/PermIdSearchCriteria", "dto/search/AbstractCompositeSearchCriteria"], - function(require, stjs, AbstractObjectSearchCriteria) { +define([ "require", "stjs", "as/dto/common/search/AbstractObjectSearchCriteria", "as/dto/common/search/CodeSearchCriteria", "as/dto/common/search/PermIdSearchCriteria", + "as/dto/common/search/AbstractCompositeSearchCriteria" ], function(require, stjs, AbstractObjectSearchCriteria) { var SpaceSearchCriteria = function() { AbstractObjectSearchCriteria.call(this); }; stjs.extend(SpaceSearchCriteria, AbstractObjectSearchCriteria, [ AbstractObjectSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.SpaceSearchCriteria'; + prototype['@type'] = 'as.dto.space.search.SpaceSearchCriteria'; constructor.serialVersionUID = 1; prototype.withCode = function() { - var CodeSearchCriteria = require("dto/search/CodeSearchCriteria"); + var CodeSearchCriteria = require("as/dto/common/search/CodeSearchCriteria"); return this.addCriteria(new CodeSearchCriteria()); }; prototype.withPermId = function() { - var PermIdSearchCriteria = require("dto/search/PermIdSearchCriteria"); + var PermIdSearchCriteria = require("as/dto/common/search/PermIdSearchCriteria"); return this.addCriteria(new PermIdSearchCriteria()); }; prototype.createBuilder = function() { - var AbstractCompositeSearchCriteria = require("dto/search/AbstractCompositeSearchCriteria"); + var AbstractCompositeSearchCriteria = require("as/dto/common/search/AbstractCompositeSearchCriteria"); var builder = AbstractCompositeSearchCriteria.prototype.createBuilder.call(this); builder.setName("SPACE"); return builder; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/space/SpaceUpdate.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/update/SpaceUpdate.js similarity index 77% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/space/SpaceUpdate.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/update/SpaceUpdate.js index 23aee800b7ec44714427bfb01a285bd0632c0ac0..38d275540abf02f3338c8c890c7375ec5037fc5b 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/space/SpaceUpdate.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/space/update/SpaceUpdate.js @@ -1,14 +1,15 @@ /** * @author pkupczyk */ -define([ "stjs", "dto/entity/FieldUpdateValue" ], function(stjs, FieldUpdateValue) { +define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, FieldUpdateValue) { var SpaceUpdate = function() { this.description = new FieldUpdateValue(); }; stjs.extend(SpaceUpdate, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.space.SpaceUpdate'; + prototype['@type'] = 'as.dto.space.update.SpaceUpdate'; constructor.serialVersionUID = 1; prototype.spaceId = null; + prototype.description = null; prototype.getSpaceId = function() { return this.spaceId; }; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/tag/Tag.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/Tag.js similarity index 97% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/tag/Tag.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/Tag.js index 461a0da686101635e8b77f364bd86b72c4715349..0dfc48068cbf6c292209172bd85735ee77f619ad 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/tag/Tag.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/Tag.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var Tag = function() { }; stjs.extend(Tag, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.tag.Tag'; + prototype['@type'] = 'as.dto.tag.Tag'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.permId = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/tag/TagFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/fetchoptions/TagFetchOptions.js similarity index 68% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/tag/TagFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/fetchoptions/TagFetchOptions.js index b2c95a9606076e8c9a503ee14ebae5ada0adb848..67f2755ac72809efcc8101f7c12bc8fe60a6f09a 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/tag/TagFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/fetchoptions/TagFetchOptions.js @@ -2,17 +2,17 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/person/PersonFetchOptions", "dto/fetchoptions/tag/TagSortOptions" ], function(require, stjs, FetchOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/person/fetchoptions/PersonFetchOptions", "as/dto/tag/fetchoptions/TagSortOptions" ], function(require, stjs, FetchOptions) { var TagFetchOptions = function() { }; stjs.extend(TagFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.tag.TagFetchOptions'; + prototype['@type'] = 'as.dto.tag.fetchoptions.TagFetchOptions'; constructor.serialVersionUID = 1; prototype.owner = null; prototype.sort = null; prototype.withOwner = function() { if (this.owner == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.owner = new PersonFetchOptions(); } return this.owner; @@ -25,7 +25,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/p }; prototype.sortBy = function() { if (this.sort == null) { - var TagSortOptions = require("dto/fetchoptions/tag/TagSortOptions"); + var TagSortOptions = require("as/dto/tag/fetchoptions/TagSortOptions"); this.sort = new TagSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/fetchoptions/TagSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/fetchoptions/TagSortOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..30831d89cb35510ec19625852d70b7f2927f05c0 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/fetchoptions/TagSortOptions.js @@ -0,0 +1,28 @@ +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { + var TagSortOptions = function() { + SortOptions.call(this); + }; + + var fields = { + CODE : "CODE", + REGISTRATION_DATE : "REGISTRATION_DATE" + }; + + stjs.extend(TagSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.tag.fetchoptions.TagSortOptions'; + constructor.serialVersionUID = 1; + prototype.code = function() { + return this.getOrCreateSorting(fields.CODE); + }; + prototype.getCode = function() { + return this.getSorting(fields.CODE); + }; + prototype.registrationDate = function() { + return this.getOrCreateSorting(fields.REGISTRATION_DATE); + }; + prototype.getRegistrationDate = function() { + return this.getSorting(fields.REGISTRATION_DATE); + }; + }, {}); + return TagSortOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/id/ITagId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/id/ITagId.js new file mode 100644 index 0000000000000000000000000000000000000000..9e4a40d6f2baa048c4faa59ef03eac7ee74a9050 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/id/ITagId.js @@ -0,0 +1,9 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var ITagId = function() { + }; + stjs.extend(ITagId, null, [ IObjectId ], null, {}); + return ITagId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/id/TagCode.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/id/TagCode.js new file mode 100644 index 0000000000000000000000000000000000000000..86b9eee5e0c2af0df1b7d30336381a06ea974242 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/id/TagCode.js @@ -0,0 +1,49 @@ +/** + * Tag code. + * + * @author Franz-Josef Elmer + * @author Jakub Straszewski + */ +define([ "stjs", "util/Exceptions", "as/dto/tag/id/ITagId" ], function(stjs, exceptions, ITagId) { + /** + * @param code + * Tag code, e.g. "MY_TAG". + */ + var TagCode = function(code) { + this.setCode(code); + }; + stjs.extend(TagCode, null, [ ITagId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.tag.id.TagCode'; + constructor.serialVersionUID = 1; + prototype.code = null; + prototype.getCode = function() { + return this.code; + }; + prototype.setCode = function(code) { + if (code == null) { + throw new exceptions.IllegalArgumentException("Code cannot be null"); + } + this.code = code; + }; + prototype.toString = function() { + return this.getCode(); + }; + prototype.hashCode = function() { + return ((this.getCode() == null) ? 0 : this.getCode().hashCode()); + }; + prototype.equals = function(obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (this.getClass() != obj.getClass()) { + return false; + } + var other = obj; + return this.getCode() == null ? this.getCode() == other.getCode() : this.getCode().equals(other.getCode()); + }; + }, {}); + return TagCode; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/id/TagPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/id/TagPermId.js new file mode 100644 index 0000000000000000000000000000000000000000..857bf8410d21c207ac71abfe33c019f26a504e52 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/id/TagPermId.js @@ -0,0 +1,19 @@ +/** + * Tag perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/tag/id/ITagId" ], function(stjs, ObjectPermId, ITagId) { + /** + * @param permId + * Tag perm id, e.g. "/MY_USER/MY_TAG". + */ + var TagPermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(TagPermId, ObjectPermId, [ ObjectPermId, ITagId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.tag.id.TagPermId'; + constructor.serialVersionUID = 1; + }, {}); + return TagPermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/TagSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/search/TagSearchCriteria.js similarity index 55% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/TagSearchCriteria.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/search/TagSearchCriteria.js index 5fe0fd491dbd15db7e1ced801967d70897b9a3eb..4aa7f9032ce2e54110bfda65e3d40c302a9e9796 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/TagSearchCriteria.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/tag/search/TagSearchCriteria.js @@ -1,25 +1,24 @@ /** * @author pkupczyk */ -define([ "require", "stjs", "dto/search/AbstractObjectSearchCriteria", - "dto/search/CodeSearchCriteria", "dto/search/PermIdSearchCriteria", "dto/search/AbstractCompositeSearchCriteria"], - function(require, stjs, AbstractObjectSearchCriteria) { +define([ "require", "stjs", "as/dto/common/search/AbstractObjectSearchCriteria", "as/dto/common/search/CodeSearchCriteria", "as/dto/common/search/PermIdSearchCriteria", + "as/dto/common/search/AbstractCompositeSearchCriteria" ], function(require, stjs, AbstractObjectSearchCriteria) { var TagSearchCriteria = function() { AbstractObjectSearchCriteria.call(this); }; stjs.extend(TagSearchCriteria, AbstractObjectSearchCriteria, [ AbstractObjectSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.TagSearchCriteria'; + prototype['@type'] = 'as.dto.tag.search.TagSearchCriteria'; constructor.serialVersionUID = 1; prototype.withCode = function() { - var CodeSearchCriteria = require("dto/search/CodeSearchCriteria"); + var CodeSearchCriteria = require("as/dto/common/search/CodeSearchCriteria"); return this.addCriteria(new CodeSearchCriteria()); }; prototype.withPermId = function() { - var PermIdSearchCriteria = require("dto/search/PermIdSearchCriteria"); + var PermIdSearchCriteria = require("as/dto/common/search/PermIdSearchCriteria"); return this.addCriteria(new PermIdSearchCriteria()); }; prototype.createBuilder = function() { - var AbstractCompositeSearchCriteria = require("dto/search/AbstractCompositeSearchCriteria"); + var AbstractCompositeSearchCriteria = require("as/dto/common/search/AbstractCompositeSearchCriteria"); var builder = AbstractCompositeSearchCriteria.prototype.createBuilder.call(this); builder.setName("TAG"); return builder; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/vocabulary/Vocabulary.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/Vocabulary.js similarity index 96% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/vocabulary/Vocabulary.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/Vocabulary.js index 69fc6a1f0395bb74a44d3e91da831100bcae8889..7f12bc0190ea2c93fe2fa6d6301855265a3f1258 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/vocabulary/Vocabulary.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/Vocabulary.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var Vocabulary = function() { }; stjs.extend(Vocabulary, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.vocabulary.Vocabulary'; + prototype['@type'] = 'as.dto.vocabulary.Vocabulary'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.code = null; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/vocabulary/VocabularyTerm.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/VocabularyTerm.js similarity index 96% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/vocabulary/VocabularyTerm.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/VocabularyTerm.js index 4fa4b1a27ca82018f00be61b2c562f33ce64f715..27e4dc762d817bacdc7d17ff488584a0ae6f2c5d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/vocabulary/VocabularyTerm.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/VocabularyTerm.js @@ -6,7 +6,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { var VocabularyTerm = function() { }; stjs.extend(VocabularyTerm, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.vocabulary.VocabularyTerm'; + prototype['@type'] = 'as.dto.vocabulary.VocabularyTerm'; constructor.serialVersionUID = 1; prototype.fetchOptions = null; prototype.code = null; @@ -49,7 +49,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { prototype.setOrdinal = function(ordinal) { this.ordinal = ordinal; }; - prototype.getOfficial = function() { + prototype.isOfficial = function() { return this.official; }; prototype.setOfficial = function(official) { diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularyFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularyFetchOptions.js new file mode 100644 index 0000000000000000000000000000000000000000..fc720a4b74e417b6d830b54048ef1c45fcfd36b1 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularyFetchOptions.js @@ -0,0 +1,42 @@ +/** + * Class automatically generated with + * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} + */ +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/person/fetchoptions/PersonFetchOptions", "as/dto/vocabulary/fetchoptions/VocabularySortOptions" ], function(require, stjs, + FetchOptions) { + var VocabularyFetchOptions = function() { + }; + stjs.extend(VocabularyFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.vocabulary.fetchoptions.VocabularyFetchOptions'; + constructor.serialVersionUID = 1; + prototype.registrator = null; + prototype.sort = null; + prototype.withRegistrator = function() { + if (this.registrator == null) { + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); + this.registrator = new PersonFetchOptions(); + } + return this.registrator; + }; + prototype.withRegistratorUsing = function(fetchOptions) { + return this.registrator = fetchOptions; + }; + prototype.hasRegistrator = function() { + return this.registrator != null; + }; + prototype.sortBy = function() { + if (this.sort == null) { + var VocabularySortOptions = require("as/dto/vocabulary/fetchoptions/VocabularySortOptions"); + this.sort = new VocabularySortOptions(); + } + return this.sort; + }; + prototype.getSortBy = function() { + return this.sort; + }; + }, { + registrator : "PersonFetchOptions", + sort : "VocabularySortOptions" + }); + return VocabularyFetchOptions; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularySortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularySortOptions.js similarity index 56% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularySortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularySortOptions.js index 059312d05f102b29a2524245333a9edda5740e28..21f00d638cbb36e3eac49f71f68f43587b5283eb 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularySortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularySortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var VocabularySortOptions = function() { SortOptions.call(this); }; stjs.extend(VocabularySortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.vocabulary.VocabularySortOptions'; + prototype['@type'] = 'as.dto.vocabulary.fetchoptions.VocabularySortOptions'; constructor.serialVersionUID = 1; }, {}); return VocabularySortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularyTermFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularyTermFetchOptions.js similarity index 69% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularyTermFetchOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularyTermFetchOptions.js index da31f143fe9f08912980ce82e6997554a1d0d8aa..67d44753dfb69db41df18162f67bc2377a91a96d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularyTermFetchOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularyTermFetchOptions.js @@ -2,19 +2,19 @@ * Class automatically generated with * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/vocabulary/VocabularyFetchOptions", "dto/fetchoptions/person/PersonFetchOptions", - "dto/fetchoptions/vocabulary/VocabularyTermSortOptions" ], function(require, stjs, FetchOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/FetchOptions", "as/dto/vocabulary/fetchoptions/VocabularyFetchOptions", "as/dto/person/fetchoptions/PersonFetchOptions", + "as/dto/vocabulary/fetchoptions/VocabularyTermSortOptions" ], function(require, stjs, FetchOptions) { var VocabularyTermFetchOptions = function() { }; stjs.extend(VocabularyTermFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.vocabulary.VocabularyTermFetchOptions'; + prototype['@type'] = 'as.dto.vocabulary.fetchoptions.VocabularyTermFetchOptions'; constructor.serialVersionUID = 1; prototype.vocabulary = null; prototype.registrator = null; prototype.sort = null; prototype.withVocabulary = function() { if (this.vocabulary == null) { - var VocabularyFetchOptions = require("dto/fetchoptions/vocabulary/VocabularyFetchOptions"); + var VocabularyFetchOptions = require("as/dto/vocabulary/fetchoptions/VocabularyFetchOptions"); this.vocabulary = new VocabularyFetchOptions(); } return this.vocabulary; @@ -27,7 +27,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/v }; prototype.withRegistrator = function() { if (this.registrator == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); + var PersonFetchOptions = require("as/dto/person/fetchoptions/PersonFetchOptions"); this.registrator = new PersonFetchOptions(); } return this.registrator; @@ -40,7 +40,7 @@ define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/v }; prototype.sortBy = function() { if (this.sort == null) { - var VocabularyTermSortOptions = require("dto/fetchoptions/vocabulary/VocabularyTermSortOptions"); + var VocabularyTermSortOptions = require("as/dto/vocabulary/fetchoptions/VocabularyTermSortOptions"); this.sort = new VocabularyTermSortOptions(); } return this.sort; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularyTermSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularyTermSortOptions.js similarity index 57% rename from plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularyTermSortOptions.js rename to plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularyTermSortOptions.js index ce90b99858335cd4174ceb15d7b8a1609e891214..49fe6b5559c9dbf686c40a9127a4e3c7c8ffdab1 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularyTermSortOptions.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/fetchoptions/VocabularyTermSortOptions.js @@ -1,9 +1,9 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { +define([ "require", "stjs", "as/dto/common/fetchoptions/SortOptions" ], function(require, stjs, SortOptions) { var VocabularyTermSortOptions = function() { SortOptions.call(this); }; stjs.extend(VocabularyTermSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.vocabulary.VocabularyTermSortOptions'; + prototype['@type'] = 'as.dto.vocabulary.fetchoptions.VocabularyTermSortOptions'; constructor.serialVersionUID = 1; }, {}); return VocabularyTermSortOptions; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/IVocabularyId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/IVocabularyId.js new file mode 100644 index 0000000000000000000000000000000000000000..9ca912acd468201a27105a3f1b112e862ef4ad29 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/IVocabularyId.js @@ -0,0 +1,9 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IVocabularyId = function() { + }; + stjs.extend(IVocabularyId, null, [ IObjectId ], null, {}); + return IVocabularyId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/IVocabularyTermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/IVocabularyTermId.js new file mode 100644 index 0000000000000000000000000000000000000000..e15625222b1f1c477d853a54743339f884a855dc --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/IVocabularyTermId.js @@ -0,0 +1,9 @@ +/** + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/IObjectId" ], function(stjs, IObjectId) { + var IVocabularyTermId = function() { + }; + stjs.extend(IVocabularyTermId, null, [ IObjectId ], null, {}); + return IVocabularyTermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/VocabularyPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/VocabularyPermId.js new file mode 100644 index 0000000000000000000000000000000000000000..1c0677d345f139cdca3b7c71d32981f6cd239e08 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/VocabularyPermId.js @@ -0,0 +1,19 @@ +/** + * Vocabulary perm id. + * + * @author pkupczyk + */ +define([ "stjs", "as/dto/common/id/ObjectPermId", "as/dto/vocabulary/id/IVocabularyId" ], function(stjs, ObjectPermId, IVocabularyId) { + /** + * @param permId + * Vocabulary perm id, e.g. "MY_VOCABULARY". + */ + var VocabularyPermId = function(permId) { + ObjectPermId.call(this, permId); + }; + stjs.extend(VocabularyPermId, ObjectPermId, [ ObjectPermId, IVocabularyId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.vocabulary.id.VocabularyPermId'; + constructor.serialVersionUID = 1; + }, {}); + return VocabularyPermId; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/VocabularyTermCode.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/VocabularyTermCode.js new file mode 100644 index 0000000000000000000000000000000000000000..362076f2e0561c253b149ddd29cf2cff76235b44 --- /dev/null +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/as/dto/vocabulary/id/VocabularyTermCode.js @@ -0,0 +1,48 @@ +/** + * Vocabulary term code. + * + * @author pkupczyk + */ +define([ "stjs", "util/Exceptions", "as/dto/vocabulary/id/IVocabularyTermId" ], function(stjs, exceptions, IVocabularyTermId) { + /** + * @param code + * Vocabulary term code, e.g. "MY_TERM". + */ + var VocabularyTermCode = function(code) { + this.setCode(code); + }; + stjs.extend(VocabularyTermCode, null, [ IVocabularyTermId ], function(constructor, prototype) { + prototype['@type'] = 'as.dto.vocabulary.id.VocabularyTermCode'; + constructor.serialVersionUID = 1; + prototype.code = null; + prototype.getCode = function() { + return this.code; + }; + prototype.setCode = function(code) { + if (code == null) { + throw new exceptions.IllegalArgumentException("Code cannot be null"); + } + this.code = code; + }; + prototype.toString = function() { + return this.getCode(); + }; + prototype.hashCode = function() { + return ((this.getCode() == null) ? 0 : this.getCode().hashCode()); + }; + prototype.equals = function(obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (this.getClass() != obj.getClass()) { + return false; + } + var other = obj; + return this.getCode() == null ? this.getCode() == other.getCode() : this.getCode().equals(other.getCode()); + }; + }, {}); + return VocabularyTermCode; +}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/ArchivingStatus.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/ArchivingStatus.js deleted file mode 100644 index 6f4885060ef98d972f3968e6be49bab222efa638..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/ArchivingStatus.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - AVAILABLE : "AVAILABLE", - LOCKED : "LOCKED", - ARCHIVED : "ARCHIVED", - UNARCHIVE_PENDING : "UNARCHIVE_PENDING", - ARCHIVE_PENDING : "ARCHIVE_PENDING", - BACKUP_PENDING : "BACKUP_PENDING" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/Complete.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/Complete.js deleted file mode 100644 index 308b93f49f0330de4c6b0fe65377e07d3c1ce8cc..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/Complete.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - YES : "YES", - NO : "NO", - UNKNOWN : "UNKNOWN" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSetKind.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSetKind.js deleted file mode 100644 index ff5f0eeddf943d7705bb439709343c24918e4e30..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/DataSetKind.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - PHYSICAL : "PHYSICAL", - CONTAINER : "CONTAINER", - LINK : "LINK" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/ExternalData.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/ExternalData.js deleted file mode 100644 index 2a1af51e61f7aee1894913e6f3fb104e659ca181..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/ExternalData.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Class automatically generated with - * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} - */ -define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { - var ExternalData = function() { - }; - stjs.extend(ExternalData, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.dataset.ExternalData'; - constructor.serialVersionUID = 1; - prototype.fetchOptions = null; - prototype.shareId = null; - prototype.location = null; - prototype.size = null; - prototype.storageFormat = null; - prototype.fileFormatType = null; - prototype.locatorType = null; - prototype.complete = null; - prototype.status = null; - prototype.presentInArchive = null; - prototype.storageConfirmation = null; - prototype.speedHint = null; - - prototype.getFetchOptions = function() { - return this.fetchOptions; - }; - prototype.setFetchOptions = function(fetchOptions) { - this.fetchOptions = fetchOptions; - }; - prototype.getShareId = function() { - return this.shareId; - }; - prototype.setShareId = function(shareId) { - this.shareId = shareId; - }; - prototype.getLocation = function() { - return this.location; - }; - prototype.setLocation = function(location) { - this.location = location; - }; - prototype.getSize = function() { - return this.size; - }; - prototype.setSize = function(size) { - this.size = size; - }; - prototype.getStorageFormat = function() { - if (this.getFetchOptions().hasStorageFormat()) { - return this.storageFormat; - } else { - throw new exceptions.NotFetchedException("Storage format has not been fetched."); - } - }; - prototype.setStorageFormat = function(storageFormat) { - this.storageFormat = storageFormat; - }; - prototype.getFileFormatType = function() { - if (this.getFetchOptions().hasFileFormatType()) { - return this.fileFormatType; - } else { - throw new exceptions.NotFetchedException("File format type has not been fetched."); - } - }; - prototype.setFileFormatType = function(fileFormatType) { - this.fileFormatType = fileFormatType; - }; - prototype.getLocatorType = function() { - if (this.getFetchOptions().hasLocatorType()) { - return this.locatorType; - } else { - throw new exceptions.NotFetchedException("Locator type has not been fetched."); - } - }; - prototype.setLocatorType = function(locatorType) { - this.locatorType = locatorType; - }; - prototype.getComplete = function() { - return this.complete; - }; - prototype.setComplete = function(complete) { - this.complete = complete; - }; - prototype.getStatus = function() { - return this.status; - }; - prototype.setStatus = function(status) { - this.status = status; - }; - prototype.isPresentInArchive = function() { - return this.presentInArchive; - }; - prototype.setPresentInArchive = function(presentInArchive) { - this.presentInArchive = presentInArchive; - }; - prototype.isStorageConfirmation = function() { - return this.storageConfirmation; - }; - prototype.setStorageConfirmation = function(storageConfirmation) { - this.storageConfirmation = storageConfirmation; - }; - prototype.getSpeedHint = function() { - return this.speedHint; - }; - prototype.setSpeedHint = function(speedHint) { - this.speedHint = speedHint; - }; - }, { - fetchOptions : "ExternalDataFetchOptions", - storageFormat : "VocabularyTerm", - fileFormatType : "FileFormatType", - locatorType : "LocatorType", - complete : "Complete", - status : "ArchivingStatus" - }); - return ExternalData; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/ExternalDataUpdate.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/ExternalDataUpdate.js deleted file mode 100644 index 382c813c8aff5591eab6ee0b8624a779a453e71b..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/dataset/ExternalDataUpdate.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs", "dto/entity/FieldUpdateValue" ], function(stjs, FieldUpdateValue) { - var ExternalDataUpdate = function() { - this.fileFormatTypeId = new FieldUpdateValue(); - }; - stjs.extend(ExternalDataUpdate, null, [], function(constructor, prototype) { - prototype['@type'] = 'dto.entity.dataset.ExternalDataUpdate'; - constructor.serialVersionUID = 1; - - prototype.getFileFormatTypeId = function() { - return this.fileFormatTypeId; - }; - prototype.setFileFormatTypeId = function(fileFormatTypeId) { - this.fileFormatTypeId.setValue(fileFormatTypeId); - }; - }, { - fileFormatTypeId : { - name : "FieldUpdateValue", - arguments : [ "IFileFormatTypeId" ] - } - }); - return ExternalDataUpdate; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/DeletionType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/DeletionType.js deleted file mode 100644 index 5af45a744fba6334146ce94aa86961f22db0aa17..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/deletion/DeletionType.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - PERMANENT : "PERMANENT", - TRASH : "TRASH" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/DataSetRelationType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/DataSetRelationType.js deleted file mode 100644 index 02a2f7433f97935f1e9c7d8ad59e708a17de6309..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/DataSetRelationType.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - EXPERIMENT : "EXPERIMENT", - SAMPLE : "SAMPLE", - PARENT : "PARENT", - CHILD : "CHILD", - CONTAINER : "CONTAINER", - COMPONENT : "COMPONENT" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/ExperimentRelationType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/ExperimentRelationType.js deleted file mode 100644 index 0cd8b60623089513685420c0beae37cdca15ac08..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/ExperimentRelationType.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - PROJECT : "PROJECT", - SAMPLE : "SAMPLE", - DATA_SET : "DATA_SET" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/SampleRelationType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/SampleRelationType.js deleted file mode 100644 index e6cedc087cee1b0033f95d467538c0922a55f619..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/entity/history/SampleRelationType.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - SPACE : "SPACE", - EXPERIMENT : "EXPERIMENT", - PARENT : "PARENT", - CHILD : "CHILD", - CONTAINER : "CONTAINER", - COMPONENT : "COMPONENT", - DATA_SET : "DATA_SET" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/CacheMode.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/CacheMode.js deleted file mode 100644 index 05bdd5c6c72d02e5ba2fe3bc48627257ae2ac79c..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/CacheMode.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - NO_CACHE : "NO_CACHE", - CACHE : "CACHE", - RELOAD_AND_CACHE : "RELOAD_AND_CACHE" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/EmptyFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/EmptyFetchOptions.js deleted file mode 100644 index d6b127497c8d5e9f1113f5c10d2cf7d6ed272656..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/EmptyFetchOptions.js +++ /dev/null @@ -1,10 +0,0 @@ -define([ "stjs", "dto/fetchoptions/FetchOptions" ], function(stjs, FetchOptions) { - var EmptyFetchOptions = function() { - FetchOptions.call(this); - }; - stjs.extend(EmptyFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.EmptyFetchOptions'; - constructor.serialVersionUID = 1; - }, {}); - return EmptyFetchOptions; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/attachment/AttachmentFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/attachment/AttachmentFetchOptions.js deleted file mode 100644 index 7c38b413055510db6f758416a8b2758b0ce76049..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/attachment/AttachmentFetchOptions.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Class automatically generated with - * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} - */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/person/PersonFetchOptions", "dto/fetchoptions/EmptyFetchOptions", "dto/fetchoptions/attachment/AttachmentSortOptions" ], - function(require, stjs, FetchOptions) { - var AttachmentFetchOptions = function() { - }; - stjs.extend(AttachmentFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.attachment.AttachmentFetchOptions'; - constructor.serialVersionUID = 1; - prototype.registrator = null; - prototype.previousVersion = null; - prototype.content = null; - prototype.sort = null; - prototype.withRegistrator = function() { - if (this.registrator == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); - this.registrator = new PersonFetchOptions(); - } - return this.registrator; - }; - prototype.withRegistratorUsing = function(fetchOptions) { - return this.registrator = fetchOptions; - }; - prototype.hasRegistrator = function() { - return this.registrator != null; - }; - prototype.withPreviousVersion = function() { - if (this.previousVersion == null) { - this.previousVersion = new AttachmentFetchOptions(); - } - return this.previousVersion; - }; - prototype.withPreviousVersionUsing = function(fetchOptions) { - return this.previousVersion = fetchOptions; - }; - prototype.hasPreviousVersion = function() { - return this.previousVersion != null; - }; - prototype.withContent = function() { - if (this.content == null) { - var EmptyFetchOptions = require("dto/fetchoptions/EmptyFetchOptions"); - this.content = new EmptyFetchOptions(); - } - return this.content; - }; - prototype.withContentUsing = function(fetchOptions) { - return this.content = fetchOptions; - }; - prototype.hasContent = function() { - return this.content != null; - }; - prototype.sortBy = function() { - if (this.sort == null) { - var AttachmentSortOptions = require("dto/fetchoptions/attachment/AttachmentSortOptions"); - this.sort = new AttachmentSortOptions(); - } - return this.sort; - }; - prototype.getSortBy = function() { - return this.sort; - }; - }, { - registrator : "PersonFetchOptions", - previousVersion : "AttachmentFetchOptions", - content : "EmptyFetchOptions", - sort : "AttachmentSortOptions" - }); - return AttachmentFetchOptions; - }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/ExternalDataFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/ExternalDataFetchOptions.js deleted file mode 100644 index b85dd07eed7d2eaaded37ad1278235ca6c8aa08a..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/ExternalDataFetchOptions.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Class automatically generated with - * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} - */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/vocabulary/VocabularyTermFetchOptions", "dto/fetchoptions/dataset/FileFormatTypeFetchOptions", - "dto/fetchoptions/dataset/LocatorTypeFetchOptions", "dto/fetchoptions/dataset/ExternalDataSortOptions" ], function(require, stjs, FetchOptions) { - var ExternalDataFetchOptions = function() { - }; - stjs.extend(ExternalDataFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.ExternalDataFetchOptions'; - constructor.serialVersionUID = 1; - prototype.storageFormat = null; - prototype.fileFormatType = null; - prototype.locatorType = null; - prototype.sort = null; - prototype.withStorageFormat = function() { - if (this.storageFormat == null) { - var VocabularyTermFetchOptions = require("dto/fetchoptions/vocabulary/VocabularyTermFetchOptions"); - this.storageFormat = new VocabularyTermFetchOptions(); - } - return this.storageFormat; - }; - prototype.withStorageFormatUsing = function(fetchOptions) { - return this.storageFormat = fetchOptions; - }; - prototype.hasStorageFormat = function() { - return this.storageFormat != null; - }; - prototype.withFileFormatType = function() { - if (this.fileFormatType == null) { - var FileFormatTypeFetchOptions = require("dto/fetchoptions/dataset/FileFormatTypeFetchOptions"); - this.fileFormatType = new FileFormatTypeFetchOptions(); - } - return this.fileFormatType; - }; - prototype.withFileFormatTypeUsing = function(fetchOptions) { - return this.fileFormatType = fetchOptions; - }; - prototype.hasFileFormatType = function() { - return this.fileFormatType != null; - }; - prototype.withLocatorType = function() { - if (this.locatorType == null) { - var LocatorTypeFetchOptions = require("dto/fetchoptions/dataset/LocatorTypeFetchOptions"); - this.locatorType = new LocatorTypeFetchOptions(); - } - return this.locatorType; - }; - prototype.withLocatorTypeUsing = function(fetchOptions) { - return this.locatorType = fetchOptions; - }; - prototype.hasLocatorType = function() { - return this.locatorType != null; - }; - prototype.sortBy = function() { - if (this.sort == null) { - var ExternalDataSortOptions = require("dto/fetchoptions/dataset/ExternalDataSortOptions"); - this.sort = new ExternalDataSortOptions(); - } - return this.sort; - }; - prototype.getSortBy = function() { - return this.sort; - }; - }, { - storageFormat : "VocabularyTermFetchOptions", - fileFormatType : "FileFormatTypeFetchOptions", - locatorType : "LocatorTypeFetchOptions", - sort : "ExternalDataSortOptions" - }); - return ExternalDataFetchOptions; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/ExternalDataSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/ExternalDataSortOptions.js deleted file mode 100644 index 271ca4b463120fc33ac3ba9f6a26e2fde72b3c5e..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/dataset/ExternalDataSortOptions.js +++ /dev/null @@ -1,10 +0,0 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { - var ExternalDataSortOptions = function() { - SortOptions.call(this); - }; - stjs.extend(ExternalDataSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.dataset.ExternalDataSortOptions'; - constructor.serialVersionUID = 1; - }, {}); - return ExternalDataSortOptions; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/tag/TagSortOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/tag/TagSortOptions.js deleted file mode 100644 index ddc67860325cef5bde360946114b567cb42472f7..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/tag/TagSortOptions.js +++ /dev/null @@ -1,10 +0,0 @@ -define([ "require", "stjs", "dto/fetchoptions/sort/SortOptions" ], function(require, stjs, SortOptions) { - var TagSortOptions = function() { - SortOptions.call(this); - }; - stjs.extend(TagSortOptions, SortOptions, [ SortOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.tag.TagSortOptions'; - constructor.serialVersionUID = 1; - }, {}); - return TagSortOptions; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularyFetchOptions.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularyFetchOptions.js deleted file mode 100644 index 52e3efaeada4d08fe298a48f4496e68e073206ce..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/fetchoptions/vocabulary/VocabularyFetchOptions.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Class automatically generated with - * {@link ch.ethz.sis.openbis.generic.shared.api.v3.dto.generators.DtoGenerator} - */ -define([ "require", "stjs", "dto/fetchoptions/FetchOptions", "dto/fetchoptions/person/PersonFetchOptions", "dto/fetchoptions/vocabulary/VocabularySortOptions" ], - function(require, stjs, FetchOptions) { - var VocabularyFetchOptions = function() { - }; - stjs.extend(VocabularyFetchOptions, FetchOptions, [ FetchOptions ], function(constructor, prototype) { - prototype['@type'] = 'dto.fetchoptions.vocabulary.VocabularyFetchOptions'; - constructor.serialVersionUID = 1; - prototype.registrator = null; - prototype.sort = null; - prototype.withRegistrator = function() { - if (this.registrator == null) { - var PersonFetchOptions = require("dto/fetchoptions/person/PersonFetchOptions"); - this.registrator = new PersonFetchOptions(); - } - return this.registrator; - }; - prototype.withRegistratorUsing = function(fetchOptions) { - return this.registrator = fetchOptions; - }; - prototype.hasRegistrator = function() { - return this.registrator != null; - }; - prototype.sortBy = function() { - if (this.sort == null) { - var VocabularySortOptions = require("dto/fetchoptions/vocabulary/VocabularySortOptions"); - this.sort = new VocabularySortOptions(); - } - return this.sort; - }; - prototype.getSortBy = function() { - return this.sort; - }; - }, { - registrator : "PersonFetchOptions", - sort : "VocabularySortOptions" - }); - return VocabularyFetchOptions; - }) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/CreationId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/CreationId.js deleted file mode 100644 index 6920a645b416b209c15df98a718d6ce31c63942d..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/CreationId.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @author Jakub Straszewski - */ -define(["stjs", "dto/id/sample/ISampleId", "dto/id/dataset/IDataSetId", "dto/id/experiment/IExperimentId", "dto/id/project/IProjectId", "dto/id/space/ISpaceId", "dto/id/material/IMaterialId"], function (stjs, ISampleId, IDataSetId, IExperimentId, IProjectId, ISpaceId, IMaterialId) { - var CreationId = function(creationId) { - this.creationId = creationId; - }; - stjs.extend(CreationId, null, [ISampleId, IDataSetId, IExperimentId, IProjectId, ISpaceId, IMaterialId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.CreationId'; - constructor.serialVersionUID = 1; - prototype.creationId = null; - prototype.getCreationId = function() { - return this.creationId; - }; - prototype.setCreationId = function(creationId) { - this.creationId = creationId; - }; - prototype.toString = function() { - return this.getCreationId(); - }; - prototype.hashCode = function() { - return ((this.getCreationId() == null) ? 0 : this.getCreationId().hashCode()); - }; - prototype.equals = function(obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (this.getClass() != obj.getClass()) { - return false; - } - var other = obj; - if (this.getCreationId() == null) { - if (other.getCreationId() != null) { - return false; - } - } else if (!this.getCreationId().equals(other.getCreationId())) { - return false; - } - return true; - }; - }, {}); - return CreationId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/IObjectId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/IObjectId.js deleted file mode 100644 index 4f3598210f86fb06691bc4f6c678e1e907e24337..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/IObjectId.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Holds information that uniquely identifies an object in openBIS. - * - * @author pkupczyk - */ -define(["stjs"], function (stjs) { - var IObjectId = function() {}; - stjs.extend(IObjectId, null, [], null, {}); - return IObjectId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/ObjectIdentifier.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/ObjectIdentifier.js deleted file mode 100644 index 2214d257dc66737bf62e75c29e10c0cdb4abcca8..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/ObjectIdentifier.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Base class for ids that identify objects by identifiers. An identifier is a mutable user-defined string. An identifier is assigned to an object - * during the object creation but can change afterwards. An object's identifier is not guaranteed to be always the same, e.g. a sample identifier - * changes when the sample is moved to a different space. - * - * @author pkupczyk - */ -define(["stjs", "util/Exceptions", "dto/id/IObjectId"], function (stjs, exceptions, IObjectId) { - var ObjectIdentifier = function(identifier) { - this.setIdentifier(identifier); - }; - stjs.extend(ObjectIdentifier, null, [IObjectId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.ObjectIdentifier'; - constructor.serialVersionUID = 1; - prototype.identifier = null; - prototype.getIdentifier = function() { - return this.identifier; - }; - prototype.setIdentifier = function(identifier) { - if (identifier == null) { -// throw new exceptions.IllegalArgumentException("Identifier id cannot be null"); - } - this.identifier = identifier; - }; - prototype.toString = function() { - return this.getIdentifier(); - }; - prototype.hashCode = function() { - return ((this.getIdentifier() == null) ? 0 : this.getIdentifier().hashCode()); - }; - prototype.equals = function(obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (this.getClass() != obj.getClass()) { - return false; - } - var other = obj; - return this.getIdentifier() == null ? this.getIdentifier() == other.getIdentifier() : this.getIdentifier().equals(other.getIdentifier()); - }; - }, {}); - return ObjectIdentifier; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/ObjectPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/ObjectPermId.js deleted file mode 100644 index 990ca79ea0e41d6471e4b909027e48782b60a0d1..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/ObjectPermId.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Base class for ids that identify objects by a perm id. A perm id is an immutable system-generated string. A perm id is assigned to an object during - * the object creation and cannot be changed afterwards. An object's perm id is guaranteed to be always the same, e.g. a sample perm id remains the - * same even if the sample is moved to a different space. - * - * @author pkupczyk - */ -define(["stjs", "util/Exceptions", "dto/id/IObjectId"], function (stjs, exceptions, IObjectId) { - var ObjectPermId = function(permId) { - this.setPermId(permId); - }; - stjs.extend(ObjectPermId, null, [IObjectId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.ObjectPermId'; - constructor.serialVersionUID = 1; - prototype.permId = null; - prototype.getPermId = function() { - return this.permId; - }; - prototype.setPermId = function(permId) { - if (permId == null) { - //TODO throw new exceptions.IllegalArgumentException("PermId cannot be null"); - } - this.permId = permId; - }; - prototype.toString = function() { - return this.getPermId(); - }; - prototype.hashCode = function() { - return ((this.getPermId() == null) ? 0 : this.getPermId().hashCode()); - }; - prototype.equals = function(obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (this.getClass() != obj.getClass()) { - return false; - } - var other = obj; - if (this.getPermId() == null) { - if (other.getPermId() != null) { - return false; - } - } else if (!this.getPermId().equals(other.getPermId())) { - return false; - } - return true; - }; - }, {}); - return ObjectPermId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/attachment/AttachmentFileName.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/attachment/AttachmentFileName.js deleted file mode 100644 index 14e4f1bf9478789400801f131be7785539eb536a..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/attachment/AttachmentFileName.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Attachment file name. - * - * @author pkupczyk - */ -define(["stjs", "util/Exceptions", "dto/id/attachment/IAttachmentId"], function (stjs, exceptions, IAttachmentId) { - var AttachmentFileName = /** - * @param fileName Attachment file name, e.g. "my_file.txt". - */ - function(fileName) { - this.setFileName(fileName); - }; - stjs.extend(AttachmentFileName, null, [IAttachmentId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.attachment.AttachmentFileName'; - constructor.serialVersionUID = 1; - prototype.fileName = null; - prototype.getFileName = function() { - return this.fileName; - }; - prototype.setFileName = function(fileName) { - if (fileName == null) { - throw new exceptions.IllegalArgumentException("File name cannot be null"); - } - this.fileName = fileName; - }; - prototype.toString = function() { - return this.getFileName(); - }; - prototype.hashCode = function() { - return ((this.getFileName() == null) ? 0 : this.getFileName().hashCode()); - }; - prototype.equals = function(obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (this.getClass() != obj.getClass()) { - return false; - } - var other = obj; - return this.getFileName() == null ? this.getFileName() == other.getFileName() : this.getFileName().equals(other.getFileName()); - }; - }, {}); - return AttachmentFileName; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/attachment/IAttachmentId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/attachment/IAttachmentId.js deleted file mode 100644 index 7bb8241748201e5f40bea1a23105adcac8f763fd..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/attachment/IAttachmentId.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Holds information that uniquely identifies an attachment in openBIS. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/IObjectId"], function (stjs, IObjectId) { - var IAttachmentId = function() {}; - stjs.extend(IAttachmentId, null, [IObjectId], null, {}); - return IAttachmentId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/DataSetPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/DataSetPermId.js deleted file mode 100644 index 793d9017f2040e8d4187b5f484d09128dfce7d65..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/DataSetPermId.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Data set perm id. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectPermId", "dto/id/dataset/IDataSetId"], function (stjs, ObjectPermId, IDataSetId) { - var DataSetPermId = /** - * @param permId Data set perm id, e.g. "201108050937246-1031". - */ - function(permId) { - ObjectPermId.call(this, permId); - }; - stjs.extend(DataSetPermId, ObjectPermId, [ObjectPermId, IDataSetId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.dataset.DataSetPermId'; - constructor.serialVersionUID = 1; - }, {}); - return DataSetPermId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/FileFormatTypePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/FileFormatTypePermId.js deleted file mode 100644 index a99b46e0826205e529a18827bc80e4289de09873..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/FileFormatTypePermId.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * File format type perm id. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectPermId", "dto/id/dataset/IFileFormatTypeId"], function (stjs, ObjectPermId, IFileFormatTypeId) { - var FileFormatTypePermId = /** - * @param permId File format type perm id, e.g. "PROPRIETARY". - */ - function(permId) { - ObjectPermId.call(this, permId); - }; - stjs.extend(FileFormatTypePermId, ObjectPermId, [ObjectPermId, IFileFormatTypeId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.dataset.FileFormatTypePermId'; - constructor.serialVersionUID = 1; - }, {}); - return FileFormatTypePermId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/IDataSetId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/IDataSetId.js deleted file mode 100644 index e24e2b64becb981552e39bf48d9a85b4fe655c61..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/dataset/IDataSetId.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Holds information that uniquely identifies a data set in openBIS. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/IObjectId"], function (stjs, IObjectId) { - var IDataSetId = function() {}; - stjs.extend(IDataSetId, null, [IObjectId], null, {}); - return IDataSetId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/deletion/DeletionTechId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/deletion/DeletionTechId.js deleted file mode 100644 index 5150f52fb3877c0f5541ef54fbb75bd23d7b769e..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/deletion/DeletionTechId.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectTechId", "dto/id/deletion/IDeletionId"], function (stjs, ObjectTechId, IDeletionId) { - var DeletionTechId = function(techId) { - ObjectTechId.call(this, techId); - }; - stjs.extend(DeletionTechId, ObjectTechId, [ObjectTechId, IDeletionId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.deletion.DeletionTechId'; - constructor.serialVersionUID = 1; - }, {}); - return DeletionTechId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/deletion/IDeletionId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/deletion/IDeletionId.js deleted file mode 100644 index de1d8ed684d287bf9374663454ece3b4baa76676..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/deletion/IDeletionId.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Holds information that uniquely identifies a deletion in openBIS. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/IObjectId"], function (stjs, IObjectId) { - var IDeletionId = function() {}; - stjs.extend(IDeletionId, null, [IObjectId], null, {}); - return IDeletionId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/entitytype/EntityTypePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/entitytype/EntityTypePermId.js deleted file mode 100644 index 9468ed7e9442762871379941def7f9f17bf5cb99..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/entitytype/EntityTypePermId.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Entity type perm id. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectPermId", "dto/id/entitytype/IEntityTypeId"], function (stjs, ObjectPermId, IEntityTypeId) { - var EntityTypePermId = /** - * @param permId Entity type perm id, e.g. "MY_ENTITY_TYPE". - */ - function(permId) { - ObjectPermId.call(this, permId); - }; - stjs.extend(EntityTypePermId, ObjectPermId, [ObjectPermId, IEntityTypeId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.entitytype.EntityTypePermId'; - constructor.serialVersionUID = 1; - }, {}); - return EntityTypePermId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/entitytype/IEntityTypeId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/entitytype/IEntityTypeId.js deleted file mode 100644 index 39689efe649d399096455c1b853027ccc9ca3f50..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/entitytype/IEntityTypeId.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Holds information that uniquely identifies an entity type in openBIS. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/IObjectId"], function (stjs, IObjectId) { - var IEntityTypeId = function() {}; - stjs.extend(IEntityTypeId, null, [IObjectId], null, {}); - return IEntityTypeId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/experiment/ExperimentIdentifier.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/experiment/ExperimentIdentifier.js deleted file mode 100644 index 3a9547d288a39c4b0e3d8d2897e75eb7c95bac64..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/experiment/ExperimentIdentifier.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Experiment identifier. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectIdentifier", "dto/id/experiment/IExperimentId"], function (stjs, ObjectIdentifier, IExperimentId) { - var ExperimentIdentifier = /** - * @param identifier Experiment identifier, e.g. "/MY_SPACE/MY_PROJECT/MY_EXPERIMENT". - */ - function(identifier) { - ObjectIdentifier.call(this, identifier); - }; - stjs.extend(ExperimentIdentifier, ObjectIdentifier, [ObjectIdentifier, IExperimentId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.experiment.ExperimentIdentifier'; - constructor.serialVersionUID = 1; - }, {}); - return ExperimentIdentifier; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/experiment/ExperimentPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/experiment/ExperimentPermId.js deleted file mode 100644 index 6c536c63154ab56081d4b721cd015cf60a22ca3c..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/experiment/ExperimentPermId.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Experiment perm id. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectPermId", "dto/id/experiment/IExperimentId"], function (stjs, ObjectPermId, IExperimentId) { - var ExperimentPermId = /** - * @param permId Experiment perm id, e.g. "201108050937246-1031". - */ - function(permId) { - ObjectPermId.call(this, permId); - }; - stjs.extend(ExperimentPermId, ObjectPermId, [ObjectPermId, IExperimentId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.experiment.ExperimentPermId'; - constructor.serialVersionUID = 1; - }, {}); - return ExperimentPermId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/experiment/IExperimentId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/experiment/IExperimentId.js deleted file mode 100644 index b19ae8fceb874aa404d03ad4b179141275d9fd68..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/experiment/IExperimentId.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Holds information that uniquely identifies an experiment in openBIS. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/IObjectId"], function (stjs, IObjectId) { - var IExperimentId = function() {}; - stjs.extend(IExperimentId, null, [IObjectId], null, {}); - return IExperimentId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/material/IMaterialId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/material/IMaterialId.js deleted file mode 100644 index 6d7d964fedff6d6db39e8791a152abe19f3ff2ea..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/material/IMaterialId.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Holds information that uniquely identifies a material in openBIS. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/IObjectId"], function (stjs, IObjectId) { - var IMaterialId = function() {}; - stjs.extend(IMaterialId, null, [IObjectId], null, {}); - return IMaterialId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/project/IProjectId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/project/IProjectId.js deleted file mode 100644 index e7e315624c13c947a052f604ecbebad037d2af4a..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/project/IProjectId.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Holds information that uniquely identifies a project in openBIS. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/IObjectId"], function (stjs, IObjectId) { - var IProjectId = function() {}; - stjs.extend(IProjectId, null, [IObjectId], null, {}); - return IProjectId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/project/ProjectIdentifier.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/project/ProjectIdentifier.js deleted file mode 100644 index 13b60c0af71d04eb50f73832ac36b126cb95a661..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/project/ProjectIdentifier.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Project identifier. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectIdentifier", "dto/id/project/IProjectId"], function (stjs, ObjectIdentifier, IProjectId) { - var ProjectIdentifier = /** - * @param identifier Project identifier, e.g. "/MY_SPACE/MY_PROJECT". - */ - function(identifier) { - ObjectIdentifier.call(this, identifier); - }; - stjs.extend(ProjectIdentifier, ObjectIdentifier, [ObjectIdentifier, IProjectId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.project.ProjectIdentifier'; - constructor.serialVersionUID = 1; - }, {}); - return ProjectIdentifier; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/project/ProjectPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/project/ProjectPermId.js deleted file mode 100644 index 365c3fc749f9077f1ad2aeb0a57fa50b730f6737..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/project/ProjectPermId.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Project perm id. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectPermId", "dto/id/project/IProjectId"], function (stjs, ObjectPermId, IProjectId) { - var ProjectPermId = /** - * @param permId Project perm id, e.g. "201108050937246-1031". - */ - function(permId) { - ObjectPermId.call(this, permId); - }; - stjs.extend(ProjectPermId, ObjectPermId, [ObjectPermId, IProjectId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.project.ProjectPermId'; - constructor.serialVersionUID = 1; - }, {}); - return ProjectPermId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/sample/ISampleId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/sample/ISampleId.js deleted file mode 100644 index dd2de231ab2acd32c1e64bd28311a763d0e5a5b4..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/sample/ISampleId.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Holds information that uniquely identifies a sample in openBIS. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/IObjectId"], function (stjs, IObjectId) { - var ISampleId = function() {}; - stjs.extend(ISampleId, null, [IObjectId], null, {}); - return ISampleId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/sample/SampleIdentifier.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/sample/SampleIdentifier.js deleted file mode 100644 index 8e1a72c812301f196ab203bb8d58f89437f62c93..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/sample/SampleIdentifier.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Sample identifier. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectIdentifier", "dto/id/sample/ISampleId"], function (stjs, ObjectIdentifier, ISampleId) { - var SampleIdentifier = /** - * @param identifier Sample identifier, e.g. "/MY_SPACE/MY_SAMPLE" (space sample) or "/MY_SAMPLE" (shared sample) - */ - function(identifier) { - ObjectIdentifier.call(this, identifier); - }; - stjs.extend(SampleIdentifier, ObjectIdentifier, [ObjectIdentifier, ISampleId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.sample.SampleIdentifier'; - constructor.serialVersionUID = 1; - }, {}); - return SampleIdentifier; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/sample/SamplePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/sample/SamplePermId.js deleted file mode 100644 index fa253af0c309ba8a256f21562788f2f74017586b..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/sample/SamplePermId.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Sample perm id. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectPermId", "dto/id/sample/ISampleId"], function (stjs, ObjectPermId, ISampleId) { - var SamplePermId = /** - * @param permId Sample perm id, e.g. "201108050937246-1031". - */ - function(permId) { - ObjectPermId.call(this, permId); - }; - stjs.extend(SamplePermId, ObjectPermId, [ObjectPermId, ISampleId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.sample.SamplePermId'; - constructor.serialVersionUID = 1; - }, {}); - return SamplePermId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/space/ISpaceId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/space/ISpaceId.js deleted file mode 100644 index 1f3f2725537baf9ddb1e9cca14fd9154a9a8c6e4..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/space/ISpaceId.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Holds information that uniquely identifies a space in openBIS. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/IObjectId"], function (stjs, IObjectId) { - var ISpaceId = function() {}; - stjs.extend(ISpaceId, null, [IObjectId], null, {}); - return ISpaceId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/space/SpacePermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/space/SpacePermId.js deleted file mode 100644 index 8d9096f8a40347e2235fa42ae04375910d946bdd..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/space/SpacePermId.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Space perm id. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectPermId", "dto/id/space/ISpaceId"], function (stjs, ObjectPermId, ISpaceId) { - var SpacePermId = /** - * @param permId Space perm id, e.g. "/MY_SPACE" or "MY_SPACE". - */ - function(permId) { - ObjectPermId.call(this, permId); - }; - stjs.extend(SpacePermId, ObjectPermId, [ObjectPermId, ISpaceId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.space.SpacePermId'; - constructor.serialVersionUID = 1; - prototype.getPermId = function() { - var permId = ObjectPermId.prototype.getPermId.call(this); - if (permId.startsWith("/")) { - return permId.substring(1); - } else { - return permId; - } - }; - }, {}); - return SpacePermId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/tag/ITagId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/tag/ITagId.js deleted file mode 100644 index fa6879b44821501b4bc68719be9aa6a099050965..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/tag/ITagId.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @author pkupczyk - */ -define(["stjs", "dto/id/IObjectId"], function (stjs, IObjectId) { - var ITagId = function() {}; - stjs.extend(ITagId, null, [IObjectId], null, {}); - return ITagId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/tag/TagCode.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/tag/TagCode.js deleted file mode 100644 index 9dcce92ddd1ad9f172da0a3d5806196e26ed642b..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/tag/TagCode.js +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Tag code. - * - * @author Franz-Josef Elmer - * @author Jakub Straszewski - */ -define(["stjs", "util/Exceptions", "dto/id/tag/ITagId"], function (stjs, exceptions, ITagId) { - var TagCode = /** - * @param code Tag code, e.g. "MY_TAG". - */ - function(code) { - this.setCode(code); - }; - stjs.extend(TagCode, null, [ITagId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.tag.TagCode'; - constructor.serialVersionUID = 1; - prototype.code = null; - prototype.getCode = function() { - return this.code; - }; - prototype.setCode = function(code) { - if (code == null) { - throw new exceptions.IllegalArgumentException("Code cannot be null"); - } - this.code = code; - }; - prototype.toString = function() { - return this.getCode(); - }; - prototype.hashCode = function() { - return ((this.getCode() == null) ? 0 : this.getCode().hashCode()); - }; - prototype.equals = function(obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (this.getClass() != obj.getClass()) { - return false; - } - var other = obj; - return this.getCode() == null ? this.getCode() == other.getCode() : this.getCode().equals(other.getCode()); - }; - }, {}); - return TagCode; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/tag/TagPermId.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/tag/TagPermId.js deleted file mode 100644 index c10b3c39e72d154a26c77df2f17480fc477409c7..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/id/tag/TagPermId.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Tag perm id. - * - * @author pkupczyk - */ -define(["stjs", "dto/id/ObjectPermId", "dto/id/tag/ITagId"], function (stjs, ObjectPermId, ITagId) { - var TagPermId = /** - * @param permId Tag perm id, e.g. "/MY_USER/MY_TAG". - */ - function(permId) { - ObjectPermId.call(this, permId); - }; - stjs.extend(TagPermId, ObjectPermId, [ObjectPermId, ITagId], function(constructor, prototype) { - prototype['@type'] = 'dto.id.tag.TagPermId'; - constructor.serialVersionUID = 1; - }, {}); - return TagPermId; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/CreateExperimentsOperation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/CreateExperimentsOperation.js deleted file mode 100644 index 3c7f2489b9ebeb53d9a1f51a298625f952dcd996..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/CreateExperimentsOperation.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @author pkupczyk - */ -define(["stjs", "dto/operation/IOperation"], function (stjs, IOperation) { - var CreateExperimentsOperation = function() {}; - stjs.extend(CreateExperimentsOperation, null, [IOperation], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.experiment.CreateExperimentsOperation'; - prototype.newExperiments = null; - }, {newExperiments: {name: "List", arguments: ["ExperimentCreation"]}}); - return CreateExperimentsOperation; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/CreateExperimentsOperationResult.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/CreateExperimentsOperationResult.js deleted file mode 100644 index 4b3de552d894f34261591e54e75cc8bd0f71cd4e..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/operation/experiment/CreateExperimentsOperationResult.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @author pkupczyk - */ -define(["stjs", "dto/operation/IOperationResult"], function (stjs, IOperationResult) { - var CreateExperimentsOperationResult = function() {}; - stjs.extend(CreateExperimentsOperationResult, null, [IOperationResult], function(constructor, prototype) { - prototype['@type'] = 'dto.operation.experiment.CreateExperimentsOperationResult'; - prototype.newExperimentIds = null; - }, {newExperimentIds: {name: "List", arguments: ["ExperimentPermId"]}}); - return CreateExperimentsOperationResult; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractEntitySearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractEntitySearchCriteria.js deleted file mode 100644 index da3cc1ac69bf6058585933e8f43f70db5a165bb4..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/AbstractEntitySearchCriteria.js +++ /dev/null @@ -1,86 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "require", "stjs", "dto/search/AbstractObjectSearchCriteria", "dto/search/SearchOperator", - "dto/search/CodeSearchCriteria", "dto/search/EntityTypeSearchCriteria", "dto/search/PermIdSearchCriteria", - "dto/search/RegistrationDateSearchCriteria", "dto/search/ModificationDateSearchCriteria", - "dto/search/NumberPropertySearchCriteria", "dto/search/TagSearchCriteria", "dto/search/StringPropertySearchCriteria", - "dto/search/DatePropertySearchCriteria", "dto/search/AnyPropertySearchCriteria", "dto/search/AnyFieldSearchCriteria", - "dto/search/AbstractCompositeSearchCriteria"], - function(require, stjs, AbstractObjectSearchCriteria, SearchOperator) { - var AbstractEntitySearchCriteria = function() { - AbstractObjectSearchCriteria.call(this); - }; - stjs.extend(AbstractEntitySearchCriteria, AbstractObjectSearchCriteria, [ AbstractObjectSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.AbstractEntitySearchCriteria'; - constructor.serialVersionUID = 1; - prototype.operator = SearchOperator.AND; - prototype.withOperator = function(anOperator) { - this.operator = anOperator; - return this; - }; - prototype.getOperator = function() { - return this.operator; - }; - prototype.withCode = function() { - var CodeSearchCriteria = require("dto/search/CodeSearchCriteria"); - return this.addCriteria(new CodeSearchCriteria()); - }; - prototype.withType = function() { - var EntityTypeSearchCriteria = require("dto/search/EntityTypeSearchCriteria"); - return this.addCriteria(new EntityTypeSearchCriteria()); - }; - prototype.withPermId = function() { - var PermIdSearchCriteria = require("dto/search/PermIdSearchCriteria"); - return this.addCriteria(new PermIdSearchCriteria()); - }; - prototype.withRegistrationDate = function() { - var RegistrationDateSearchCriteria = require("dto/search/RegistrationDateSearchCriteria"); - return this.addCriteria(new RegistrationDateSearchCriteria()); - }; - prototype.withModificationDate = function() { - var ModificationDateSearchCriteria = require("dto/search/ModificationDateSearchCriteria"); - return this.addCriteria(new ModificationDateSearchCriteria()); - }; - prototype.withNumberProperty = function(propertyName) { - var NumberPropertySearchCriteria = require("dto/search/NumberPropertySearchCriteria"); - return this.addCriteria(new NumberPropertySearchCriteria(propertyName)); - }; - prototype.withTag = function() { - var TagSearchCriteria = require("dto/search/TagSearchCriteria"); - return this.addCriteria(new TagSearchCriteria()); - }; - prototype.withProperty = function(propertyName) { - var StringPropertySearchCriteria = require("dto/search/StringPropertySearchCriteria"); - return this.addCriteria(new StringPropertySearchCriteria(propertyName)); - }; - prototype.withDateProperty = function(propertyName) { - var DatePropertySearchCriteria = require("dto/search/DatePropertySearchCriteria"); - return this.addCriteria(new DatePropertySearchCriteria(propertyName)); - }; - prototype.withAnyProperty = function() { - var AnyPropertySearchCriteria = require("dto/search/AnyPropertySearchCriteria"); - return this.addCriteria(new AnyPropertySearchCriteria()); - }; - prototype.withAnyField = function() { - var AnyFieldSearchCriteria = require("dto/search/AnyFieldSearchCriteria"); - return this.addCriteria(new AnyFieldSearchCriteria()); - }; - prototype.createBuilder = function() { - var AbstractCompositeSearchCriteria = require("dto/search/AbstractCompositeSearchCriteria"); - var builder = AbstractCompositeSearchCriteria.prototype.createBuilder.call(this); - builder.setOperator(this.operator); - return builder; - }; - }, { - operator : { - name : "Enum", - arguments : [ "SearchOperator" ] - }, - criteria : { - name : "Collection", - arguments : [ "ISearchCriteria" ] - } - }); - return AbstractEntitySearchCriteria; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DataSetSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DataSetSearchCriteria.js deleted file mode 100644 index d749ceb7a407d46bf6d9ee572568edc79fb37d0e..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DataSetSearchCriteria.js +++ /dev/null @@ -1,134 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "require", "stjs", "dto/search/AbstractEntitySearchCriteria", "dto/search/DataSetSearchRelation", "dto/search/SearchOperator", - "dto/search/ExperimentSearchCriteria", "dto/search/NoExperimentSearchCriteria", - "dto/search/SampleSearchCriteria", "dto/search/NoSampleSearchCriteria"], - function(require, stjs, AbstractEntitySearchCriteria, DataSetSearchRelation, SearchOperator) { - var DataSetSearchCriteria = function(relation) { - AbstractEntitySearchCriteria.call(this); - this.relation = relation ? relation : DataSetSearchRelation.DATASET; - }; - stjs.extend(DataSetSearchCriteria, AbstractEntitySearchCriteria, [ AbstractEntitySearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DataSetSearchCriteria'; - constructor.serialVersionUID = 1; - prototype.relation = null; - prototype.withParents = function() { - return this.addCriteria(new DataSetParentsSearchCriteria()); - }; - prototype.withChildren = function() { - return this.addCriteria(new DataSetChildrenSearchCriteria()); - }; - prototype.withContainer = function() { - return this.addCriteria(new DataSetContainerSearchCriteria()); - }; - prototype.withExperiment = function() { - var ExperimentSearchCriteria = require("dto/search/ExperimentSearchCriteria"); - return this.addCriteria(new ExperimentSearchCriteria()); - }; - prototype.withoutExperiment = function() { - var NoExperimentSearchCriteria = require("dto/search/NoExperimentSearchCriteria"); - return this.addCriteria(new NoExperimentSearchCriteria()); - }; - prototype.withSample = function() { - var SampleSearchCriteria = require("dto/search/SampleSearchCriteria"); - return this.addCriteria(new SampleSearchCriteria()); - }; - prototype.withoutSample = function() { - var NoSampleSearchCriteria = require("dto/search/NoSampleSearchCriteria"); - return this.addCriteria(new NoSampleSearchCriteria()); - }; - prototype.withOrOperator = function() { - return this.withOperator(SearchOperator.OR); - }; - prototype.withAndOperator = function() { - return this.withOperator(SearchOperator.AND); - }; - prototype.getRelation = function() { - return this.relation; - }; - prototype.createBuilder = function() { - var builder = AbstractEntitySearchCriteria.prototype.createBuilder.call(this); - builder.setName(this.relation.name()); - return builder; - }; - }, { - relation : { - name : "Enum", - arguments : [ "DataSetSearchRelation" ] - }, - operator : { - name : "Enum", - arguments : [ "SearchOperator" ] - }, - criteria : { - name : "Collection", - arguments : [ "ISearchCriteria" ] - } - }); - - var DataSetParentsSearchCriteria = function() { - DataSetSearchCriteria.call(this, DataSetSearchRelation.PARENTS); - }; - stjs.extend(DataSetParentsSearchCriteria, DataSetSearchCriteria, [ DataSetSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DataSetParentsSearchCriteria'; - constructor.serialVersionUID = 1; - }, { - relation : { - name : "Enum", - arguments : [ "DataSetSearchRelation" ] - }, - operator : { - name : "Enum", - arguments : [ "SearchOperator" ] - }, - criteria : { - name : "Collection", - arguments : [ "ISearchCriteria" ] - } - }); - - var DataSetChildrenSearchCriteria = function() { - DataSetSearchCriteria.call(this, DataSetSearchRelation.CHILDREN); - }; - stjs.extend(DataSetChildrenSearchCriteria, DataSetSearchCriteria, [ DataSetSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DataSetChildrenSearchCriteria'; - constructor.serialVersionUID = 1; - }, { - relation : { - name : "Enum", - arguments : [ "DataSetSearchRelation" ] - }, - operator : { - name : "Enum", - arguments : [ "SearchOperator" ] - }, - criteria : { - name : "Collection", - arguments : [ "ISearchCriteria" ] - } - }); - - var DataSetContainerSearchCriteria = function() { - DataSetSearchCriteria.call(this, DataSetSearchRelation.CONTAINER); - }; - stjs.extend(DataSetContainerSearchCriteria, DataSetSearchCriteria, [ DataSetSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.DataSetContainerSearchCriteria'; - constructor.serialVersionUID = 1; - }, { - relation : { - name : "Enum", - arguments : [ "DataSetSearchRelation" ] - }, - operator : { - name : "Enum", - arguments : [ "SearchOperator" ] - }, - criteria : { - name : "Collection", - arguments : [ "ISearchCriteria" ] - } - }); - - return DataSetSearchCriteria; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DataSetSearchRelation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DataSetSearchRelation.js deleted file mode 100644 index 884afaaf12174aacf65b7e3e7d9c4a946e168e7a..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/DataSetSearchRelation.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - DATASET : "DATASET", - PARENTS : "PARENTS", - CHILDREN : "CHILDREN", - CONTAINER : "CONTAINER" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/IDateFormat.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/IDateFormat.js deleted file mode 100644 index fcf5d419a4c1a48d27981db58d870469643a73f7..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/IDateFormat.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - var IDateFormat = function() { - }; - stjs.extend(IDateFormat, null, [], null, {}); - return IDateFormat; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SampleSearchRelation.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SampleSearchRelation.js deleted file mode 100644 index 01b548919f6e821d26c67400cbcff00f37712a1c..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SampleSearchRelation.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - SAMPLE : "SAMPLE", - PARENTS : "PARENTS", - CHILDREN : "CHILDREN", - CONTAINER : "CONTAINER" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchFieldType.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchFieldType.js deleted file mode 100644 index 1a619c029d43421a2287ab6ccc83f1ee8cc356a1..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchFieldType.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - PROPERTY : "PROPERTY", - ATTRIBUTE : "ATTRIBUTE", - ANY_PROPERTY : "ANY_PROPERTY", - ANY_FIELD : "ANY_FIELD" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchOperator.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchOperator.js deleted file mode 100644 index 361caa21708e4ac028f5d3957c6de2afdbf7490a..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/SearchOperator.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs" ], function(stjs) { - return { - AND : "AND", - OR : "OR" - }; -}) diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/VocabularyFieldSearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/VocabularyFieldSearchCriteria.js deleted file mode 100644 index 530365ce3c630a40a0e126c53a17acdc6e08aab4..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/VocabularyFieldSearchCriteria.js +++ /dev/null @@ -1,15 +0,0 @@ -define([ "stjs", "dto/search/AbstractFieldSearchCriteria" ], function(stjs, AbstractFieldSearchCriteria) { - var VocabularyFieldSearchCriteria = function(fieldName, fieldType) { - AbstractFieldSearchCriteria.call(this, fieldName, fieldType); - }; - stjs.extend(VocabularyFieldSearchCriteria, AbstractFieldSearchCriteria, [ AbstractFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.VocabularyFieldSearchCriteria'; - constructor.serialVersionUID = 1; - }, { - fieldType : { - name : "Enum", - arguments : [ "SearchFieldType" ] - } - }); - return VocabularyFieldSearchCriteria; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/VocabularyPropertySearchCriteria.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/VocabularyPropertySearchCriteria.js deleted file mode 100644 index ec901ec311be4ee34cdd941f650ecc382f924d2c..0000000000000000000000000000000000000000 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/dto/search/VocabularyPropertySearchCriteria.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @author pkupczyk - */ -define([ "stjs", "dto/search/VocabularyFieldSearchCriteria", "dto/search/SearchFieldType" ], function(stjs, VocabularyFieldSearchCriteria) { - var VocabularyPropertySearchCriteria = function(fieldName) { - VocabularyFieldSearchCriteria.call(this, fieldName, SearchFieldType.PROPERTY); - }; - stjs.extend(VocabularyPropertySearchCriteria, VocabularyFieldSearchCriteria, [ VocabularyFieldSearchCriteria ], function(constructor, prototype) { - prototype['@type'] = 'dto.search.VocabularyPropertySearchCriteria'; - constructor.serialVersionUID = 1; - }, { - fieldType : { - name : "Enum", - arguments : [ "SearchFieldType" ] - } - }); - return VocabularyPropertySearchCriteria; -}) \ No newline at end of file diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/openbis.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/openbis.js index e7043d7e337019be322fef295f4ef4220430a659..4f9fa7a6d7155a561f007673116740856107df2a 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/openbis.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/openbis.js @@ -9,6 +9,11 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { settings.processData = false; settings.dataType = "json"; + var returnType = settings.returnType; + if (returnType) { + delete settings.returnType; + } + var data = settings.data; data["id"] = "1"; data["jsonrpc"] = "2.0"; @@ -27,7 +32,7 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { dfd.reject(response.error); } else { thisPrivate.log("Request succeeded - data: " + JSON.stringify(settings.data)); - stjsUtil.fromJson(response.result).done(function(dtos) { + stjsUtil.fromJson(returnType, response.result).done(function(dtos) { originalSuccess(dtos); dfd.resolve(dtos); }).fail(function() { @@ -48,12 +53,12 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { return dfd.promise(); }; - this.loginCommon = function(user, response) { + this.loginCommon = function(user, isAnonymousUser, response) { var thisPrivate = this; var dfd = $.Deferred(); response.done(function(sessionToken) { - if (sessionToken && sessionToken.indexOf(user) > -1) { + if (sessionToken && (isAnonymousUser || sessionToken.indexOf(user) > -1)) { thisPrivate.sessionToken = sessionToken; dfd.resolve(sessionToken); } else { @@ -82,7 +87,7 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { this.login = function(user, password) { var thisFacade = this; - return thisFacade._private.loginCommon(user, thisFacade._private.ajaxRequest({ + return thisFacade._private.loginCommon(user, false, thisFacade._private.ajaxRequest({ url : openbisUrl, data : { "method" : "login", @@ -93,7 +98,7 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { this.loginAs = function(user, password, asUserId) { var thisFacade = this; - return thisFacade._private.loginCommon(asUserId, thisFacade._private.ajaxRequest({ + return thisFacade._private.loginCommon(asUserId, false, thisFacade._private.ajaxRequest({ url : openbisUrl, data : { "method" : "loginAs", @@ -102,6 +107,17 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { })); } + this.loginAsAnonymousUser = function() { + var thisFacade = this; + return thisFacade._private.loginCommon(null, true, thisFacade._private.ajaxRequest({ + url : openbisUrl, + data : { + "method" : "loginAsAnonymousUser", + "params" : [] + } + })); + } + this.logout = function() { var thisFacade = this; return thisFacade._private.ajaxRequest({ @@ -122,6 +138,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "createSpaces", "params" : [ thisFacade._private.sessionToken, creations ] + }, + returnType : { + name : "List", + arguments : [ "SpacePermId" ] } }); } @@ -133,6 +153,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "createProjects", "params" : [ thisFacade._private.sessionToken, creations ] + }, + returnType : { + name : "List", + arguments : [ "ProjectPermId" ] } }); } @@ -144,6 +168,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "createExperiments", "params" : [ thisFacade._private.sessionToken, creations ] + }, + returnType : { + name : "List", + arguments : [ "ExperimentPermId" ] } }); } @@ -155,6 +183,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "createSamples", "params" : [ thisFacade._private.sessionToken, creations ] + }, + returnType : { + name : "List", + arguments : [ "SamplePermId" ] } }); } @@ -166,6 +198,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "createMaterials", "params" : [ thisFacade._private.sessionToken, creations ] + }, + returnType : { + name : "List", + arguments : [ "MaterialPermId" ] } }); } @@ -243,6 +279,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "mapSpaces", "params" : [ thisFacade._private.sessionToken, ids, fetchOptions ] + }, + returnType : { + name : "Map", + arguments : [ "ISpaceId", "Space" ] } }); } @@ -254,6 +294,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "mapProjects", "params" : [ thisFacade._private.sessionToken, ids, fetchOptions ] + }, + returnType : { + name : "Map", + arguments : [ "IProjectId", "Project" ] } }); } @@ -265,6 +309,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "mapExperiments", "params" : [ thisFacade._private.sessionToken, ids, fetchOptions ] + }, + returnType : { + name : "Map", + arguments : [ "IExperimentId", "Experiment" ] } }); } @@ -276,6 +324,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "mapSamples", "params" : [ thisFacade._private.sessionToken, ids, fetchOptions ] + }, + returnType : { + name : "Map", + arguments : [ "ISampleId", "Sample" ] } }); } @@ -287,6 +339,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "mapDataSets", "params" : [ thisFacade._private.sessionToken, ids, fetchOptions ] + }, + returnType : { + name : "Map", + arguments : [ "IDataSetId", "DataSet" ] } }); } @@ -298,6 +354,10 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "mapMaterials", "params" : [ thisFacade._private.sessionToken, ids, fetchOptions ] + }, + returnType : { + name : "Map", + arguments : [ "IMaterialId", "Material" ] } }); } @@ -309,7 +369,8 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "searchSpaces", "params" : [ thisFacade._private.sessionToken, criteria, fetchOptions ] - } + }, + returnType : "SearchResult" }); } @@ -320,7 +381,8 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "searchProjects", "params" : [ thisFacade._private.sessionToken, criteria, fetchOptions ] - } + }, + returnType : "SearchResult" }); } @@ -331,7 +393,8 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "searchExperiments", "params" : [ thisFacade._private.sessionToken, criteria, fetchOptions ] - } + }, + returnType : "SearchResult" }) } @@ -342,7 +405,8 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "searchSamples", "params" : [ thisFacade._private.sessionToken, criteria, fetchOptions ] - } + }, + returnType : "SearchResult" }); } @@ -353,7 +417,8 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "searchDataSets", "params" : [ thisFacade._private.sessionToken, criteria, fetchOptions ] - } + }, + returnType : "SearchResult" }); } @@ -364,7 +429,32 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "searchMaterials", "params" : [ thisFacade._private.sessionToken, criteria, fetchOptions ] - } + }, + returnType : "SearchResult" + }); + } + + this.searchCustomASServices = function(criteria, fetchOptions) { + var thisFacade = this; + return thisFacade._private.ajaxRequest({ + url : openbisUrl, + data : { + "method" : "searchCustomASServices", + "params" : [ thisFacade._private.sessionToken, criteria, fetchOptions ] + }, + returnType : "SearchResult" + }); + } + + this.searchObjectKindModifications = function(criteria, fetchOptions) { + var thisFacade = this; + return thisFacade._private.ajaxRequest({ + url : openbisUrl, + data : { + "method" : "searchObjectKindModifications", + "params" : [ thisFacade._private.sessionToken, criteria, fetchOptions ] + }, + returnType : "SearchResult" }); } @@ -397,7 +487,8 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "deleteExperiments", "params" : [ thisFacade._private.sessionToken, ids, deletionOptions ] - } + }, + returnType : "IDeletionId" }); } @@ -408,7 +499,8 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "deleteSamples", "params" : [ thisFacade._private.sessionToken, ids, deletionOptions ] - } + }, + returnType : "IDeletionId" }); } @@ -419,7 +511,8 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { data : { "method" : "deleteDataSets", "params" : [ thisFacade._private.sessionToken, ids, deletionOptions ] - } + }, + returnType : "IDeletionId" }); } @@ -434,13 +527,17 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { }); } - this.listDeletions = function(fetchOptions) { + this.searchDeletions = function(criteria, fetchOptions) { var thisFacade = this; return thisFacade._private.ajaxRequest({ url : openbisUrl, data : { - "method" : "listDeletions", - "params" : [ thisFacade._private.sessionToken, fetchOptions ] + "method" : "searchDeletions", + "params" : [ thisFacade._private.sessionToken, criteria, fetchOptions ] + }, + returnType : { + name : "List", + arguments : [ "Deletion" ] } }); } @@ -466,6 +563,17 @@ define([ 'jquery', 'util/Json' ], function($, stjsUtil) { } }); } + + this.executeCustomASService = function(serviceId, options) { + var thisFacade = this; + return thisFacade._private.ajaxRequest({ + url : openbisUrl, + data : { + "method" : "executeCustomASService", + "params" : [ thisFacade._private.sessionToken, serviceId, options ] + } + }); + } } return facade; diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/util/Json.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/util/Json.js index da775c7d3b441883922ee72903e1244ab0c0de2e..340b53d5cbc7d0baf1a69b9d3acc09d4d5b1e101 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/util/Json.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/lib/openbis/js/v3/util/Json.js @@ -5,7 +5,7 @@ define([ "underscore" ], function(_) { var Json = function() { } - Json.prototype.fromJson = function(jsonObject) { + Json.prototype.fromJson = function(jsonType, jsonObject) { var dfd = $.Deferred(); var types = {} @@ -23,7 +23,7 @@ define([ "underscore" ], function(_) { moduleMap[moduleName] = module; } - var dto = fromJsonObjectWithTypeOrArrayOrMap(null, jsonObject, {}, moduleMap); + var dto = fromJsonObjectWithTypeOrArrayOrMap(jsonType, jsonObject, {}, moduleMap); dfd.resolve(dto); }); @@ -57,14 +57,18 @@ define([ "underscore" ], function(_) { var fromJsonObjectWithTypeOrArrayOrMap = function(jsonType, jsonObject, hashedObjects, modulesMap) { if (jsonObject instanceof Array) { - var array = []; - var jsonType = jsonType ? jsonType["arguments"][0] : null; + if (jsonType && _.isString(jsonType) && jsonObject.length == 2) { + return jsonObject[1]; + } else { + var array = []; + var jsonType = jsonType ? jsonType["arguments"][0] : null; - jsonObject.forEach(function(item, index) { - var dto = fromJsonObjectWithTypeOrArrayOrMap(jsonType, item, hashedObjects, modulesMap); - array.push(dto); - }); - return array; + jsonObject.forEach(function(item, index) { + var dto = fromJsonObjectWithTypeOrArrayOrMap(jsonType, item, hashedObjects, modulesMap); + array.push(dto); + }); + return array; + } } else if (jsonObject instanceof Object) { if (jsonObject["@type"]) { return fromJsonObjectWithType(jsonObject, hashedObjects, modulesMap) diff --git a/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py b/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py index d0296e09b88052fa9871cdb8e6b2894f7ab65b82..ba7b362cc286c44c56c3e297302eebb4b4b7b26a 100644 --- a/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py +++ b/plasmid/source/core-plugins/eln-lims/1/dss/reporting-plugins/newbrowserapi/script.py @@ -680,6 +680,7 @@ def searchSamples(tr, parameters, tableBuilder, sessionId): # Attributes samplePermId = fechOptions.get("samplePermId"); + withExperimentWithProjectPermId = fechOptions.get("withExperimentWithProjectPermId"); sampleIdentifier = fechOptions.get("sampleIdentifier"); sampleCode = fechOptions.get("sampleCode"); sampleTypeCode = fechOptions.get("sampleTypeCode"); @@ -715,6 +716,8 @@ def searchSamples(tr, parameters, tableBuilder, sessionId): #Attributes if samplePermId is not None: criterion.withPermId().thatEquals(samplePermId); + if withExperimentWithProjectPermId is not None: + criterion.withExperiment().withProject().withPermId().thatEquals(withExperimentWithProjectPermId); if sampleIdentifier is not None: criterion.withId().thatEquals(SampleIdentifier(sampleIdentifier)); if sampleCode is not None: