Skip to content
Snippets Groups Projects
Commit 45b1a206 authored by Adam Laskowski's avatar Adam Laskowski
Browse files

BIS-1002: Added internal vocabulary term to JS API

parent 80e94110
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -19,6 +19,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { ...@@ -19,6 +19,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
prototype.registrationDate = null; prototype.registrationDate = null;
prototype.registrator = null; prototype.registrator = null;
prototype.modificationDate = null; prototype.modificationDate = null;
prototype.managedInternally = null;
prototype.getFetchOptions = function() { prototype.getFetchOptions = function() {
return this.fetchOptions; return this.fetchOptions;
...@@ -94,6 +95,12 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { ...@@ -94,6 +95,12 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
prototype.setModificationDate = function(modificationDate) { prototype.setModificationDate = function(modificationDate) {
this.modificationDate = modificationDate; this.modificationDate = modificationDate;
}; };
prototype.isManagedInternally = function() {
return this.managedInternally;
};
prototype.setManagedInternally = function(managedInternally) {
this.managedInternally = managedInternally;
};
}, { }, {
fetchOptions : "VocabularyTermFetchOptions", fetchOptions : "VocabularyTermFetchOptions",
permId : "VocabularyTermPermId", permId : "VocabularyTermPermId",
......
...@@ -10,6 +10,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { ...@@ -10,6 +10,7 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
prototype.description = null; prototype.description = null;
prototype.official = true; prototype.official = true;
prototype.previousTermId = null; prototype.previousTermId = null;
prototype.managedInternally = null;
prototype.getVocabularyId = function() { prototype.getVocabularyId = function() {
return this.vocabularyId; return this.vocabularyId;
}; };
...@@ -46,6 +47,12 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) { ...@@ -46,6 +47,12 @@ define([ "stjs", "util/Exceptions" ], function(stjs, exceptions) {
prototype.setPreviousTermId = function(previousTermId) { prototype.setPreviousTermId = function(previousTermId) {
this.previousTermId = previousTermId; this.previousTermId = previousTermId;
}; };
prototype.isManagedInternally = function() {
return this.managedInternally;
};
prototype.setManagedInternally = function(managedInternally) {
this.managedInternally = managedInternally;
};
}, {}); }, {});
return VocabularyTermCreation; return VocabularyTermCreation;
}) })
......
...@@ -7,6 +7,7 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, Field ...@@ -7,6 +7,7 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, Field
this.description = new FieldUpdateValue(); this.description = new FieldUpdateValue();
this.previousTermId = new FieldUpdateValue(); this.previousTermId = new FieldUpdateValue();
this.official = new FieldUpdateValue(); this.official = new FieldUpdateValue();
this.managedInternally = new FieldUpdateValue();
}; };
stjs.extend(VocabularyTermUpdate, null, [], function(constructor, prototype) { stjs.extend(VocabularyTermUpdate, null, [], function(constructor, prototype) {
prototype['@type'] = 'as.dto.vocabulary.update.VocabularyTermUpdate'; prototype['@type'] = 'as.dto.vocabulary.update.VocabularyTermUpdate';
...@@ -16,6 +17,7 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, Field ...@@ -16,6 +17,7 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, Field
prototype.description = null; prototype.description = null;
prototype.previousTermId = null; prototype.previousTermId = null;
prototype.official = null; prototype.official = null;
prototype.managedInternally = null;
prototype.getObjectId = function() { prototype.getObjectId = function() {
return this.getVocabularyTermId(); return this.getVocabularyTermId();
...@@ -50,6 +52,12 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, Field ...@@ -50,6 +52,12 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, Field
prototype.setOfficial = function(official) { prototype.setOfficial = function(official) {
this.official.setValue(official); this.official.setValue(official);
}; };
prototype.isManagedInternally = function() {
return this.managedInternally;
};
prototype.setManagedInternally = function(managedInternally) {
this.managedInternally.setValue(managedInternally);
};
}, { }, {
vocabularyTermId : "IVocabularyTermId", vocabularyTermId : "IVocabularyTermId",
previousTermId : { previousTermId : {
...@@ -67,6 +75,10 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, Field ...@@ -67,6 +75,10 @@ define([ "stjs", "as/dto/common/update/FieldUpdateValue" ], function(stjs, Field
official: { official: {
name: "FieldUpdateValue", name: "FieldUpdateValue",
arguments: ["Boolean"] arguments: ["Boolean"]
},
managedInternally: {
name: "FieldUpdateValue",
arguments: ["Boolean"]
} }
}); });
return VocabularyTermUpdate; return VocabularyTermUpdate;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment