Skip to content
Snippets Groups Projects
Commit 715ea509 authored by felmer's avatar felmer
Browse files

SSDM-3348: VocabularyTermDeletionOptions.js added. Vocabulary* js adapted.

SVN: 36019
parent 6c26a338
No related branches found
No related tags found
No related merge requests found
......@@ -297,8 +297,7 @@ var sources = [
'as/dto/vocabulary/id/VocabularyTermPermId',
'as/dto/vocabulary/Vocabulary',
'as/dto/vocabulary/VocabularyTerm',
'as/dto/vocabulary/search/VocabularyCodeSearchCriteria',
'as/dto/vocabulary/search/VocabularyTermCodeSearchCriteria',
'as/dto/vocabulary/search/VocabularySearchCriteria',
'as/dto/vocabulary/search/VocabularyTermSearchCriteria',
'as/dto/vocabulary/create/VocabularyTermCreation'
];
......
define([ "stjs", "as/dto/deletion/AbstractObjectDeletionOptions" ], function(stjs, AbstractObjectDeletionOptions) {
var VocabularyTermDeletionOptions = function() {
AbstractObjectDeletionOptions.call(this);
};
stjs.extend(VocabularyTermDeletionOptions, AbstractObjectDeletionOptions, [ AbstractObjectDeletionOptions ], function(constructor, prototype) {
prototype['@type'] = 'as.dto.vocabulary.delete.VocabularyTermDeletionOptions';
constructor.serialVersionUID = 1;
prototype.replacements = null;
prototype.replace = function(termId, replacementId) {
this.replacements[termId] = replacementId;
};
prototype.getReplacements = function() {
return this.replacements;
};
}, {});
return VocabularyTermDeletionOptions;
})
/**
* @author pkupczyk
*/
define([ "stjs", "as/dto/common/search/StringFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) {
var VocabularyCodeSearchCriteria = function() {
StringFieldSearchCriteria.call(this, "vocabularyCode", SearchFieldType.ATTRIBUTE);
};
stjs.extend(VocabularyCodeSearchCriteria, StringFieldSearchCriteria, [ StringFieldSearchCriteria ], function(constructor, prototype) {
prototype['@type'] = 'as.dto.vocabulary.search.VocabularyCodeSearchCriteria';
constructor.serialVersionUID = 1;
}, {
// fieldType : {
// name : "Enum",
// arguments : [ "SearchFieldType" ]
// }
});
return VocabularyCodeSearchCriteria;
})
\ No newline at end of file
/**
* @author pkupczyk
*/
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 VocabularySearchCriteria = function() {
AbstractObjectSearchCriteria.call(this);
};
stjs.extend(VocabularySearchCriteria, AbstractObjectSearchCriteria, [ AbstractObjectSearchCriteria ], function(constructor, prototype) {
prototype['@type'] = 'as.dto.vocabulary.search.VocabularySearchCriteria';
constructor.serialVersionUID = 1;
prototype.withCode = function() {
var CodeSearchCriteria = require("as/dto/common/search/CodeSearchCriteria");
return this.addCriteria(new CodeSearchCriteria());
};
prototype.withPermId = function() {
var PermIdSearchCriteria = require("as/dto/common/search/PermIdSearchCriteria");
return this.addCriteria(new PermIdSearchCriteria());
};
}, {
criteria : {
name : "Collection",
arguments : [ "ISearchCriteria" ]
}
});
return VocabularySearchCriteria;
})
\ No newline at end of file
/**
* @author pkupczyk
*/
define([ "stjs", "as/dto/common/search/StringFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ], function(stjs, StringFieldSearchCriteria, SearchFieldType) {
var VocabularyTermCodeSearchCriteria = function() {
StringFieldSearchCriteria.call(this, "any", SearchFieldType.ANY_FIELD);
};
stjs.extend(VocabularyTermCodeSearchCriteria, StringFieldSearchCriteria, [ StringFieldSearchCriteria ], function(constructor, prototype) {
prototype['@type'] = 'as.dto.vocabulary.search.VocabularyTermCodeSearchCriteria';
constructor.serialVersionUID = 1;
}, {
// fieldType : {
// name : "Enum",
// arguments : [ "SearchFieldType" ]
// }
});
return VocabularyTermCodeSearchCriteria;
})
\ No newline at end of file
/**
* @author pkupczyk
*/
define([ "require", "stjs", "as/dto/common/search/AbstractObjectSearchCriteria", "as/dto/common/search/SearchOperator", "as/dto/common/search/PermIdSearchCriteria",
"as/dto/common/search/AbstractCompositeSearchCriteria", "as/dto/vocabulary/search/VocabularyTermSearchCriteria", "as/dto/vocabulary/search/VocabularyCodeSearchCriteria" ],
function(require, stjs, AbstractObjectSearchCriteria, SearchOperator) {
define([ "require", "stjs", "as/dto/common/search/AbstractObjectSearchCriteria"],
function(require, stjs, AbstractObjectSearchCriteria) {
var VocabularyTermSearchCriteria = function() {
AbstractObjectSearchCriteria.call(this);
};
stjs.extend(VocabularyTermSearchCriteria, AbstractObjectSearchCriteria, [ AbstractObjectSearchCriteria ], function(constructor, prototype) {
prototype['@type'] = 'as.dto.tag.search.TagSearchCriteria';
prototype['@type'] = 'as.dto.vocabulary.search.VocabularyTermSearchCriteria';
constructor.serialVersionUID = 1;
prototype.withPermId = function() {
return this.with(new require("as/dto/common/search/PermIdSearchCriteria")());
};
return this.with(new require("as/dto/common/search/PermIdSearchCriteria")());
};
prototype.withCode = function() {
return this.with(new require("as/dto/vocabulary/search/VocabularyTermSearchCriteria")());
};
prototype.withVocabularyCode = function() {
return this.with(new require("as/dto/vocabulary/search/VocabularyCodeSearchCriteria")());
};
prototype.withOrOperator = function() {
return this.withOperator(new SearchOperator().OR);
};
prototype.withAndOperator = function() {
return this.withOperator(new SearchOperator().AND);
};
return this.addCriteria(new require("as/dto/common/search/CodeSearchCriteria")());
};
prototype.withVocabulary = function() {
return this.with(new require("as/dto/vocabulary/search/VocabularySearchCriteria")());
};
}, {
// criteria : {
// name : "Collection",
......
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