Skip to content
Snippets Groups Projects
Commit 1ee19b43 authored by vkovtun's avatar vkovtun
Browse files

SSDM-12986 Added JS criteria.

parent 0450f740
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
/*
* Copyright 2023 ETH Zuerich, SIS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
define([ "stjs", "as/dto/common/search/AbstractFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ],
function(stjs, AbstractFieldSearchCriteria, SearchFieldType) {
var ControlledVocabularyPropertySearchCriteria = function(propertyName) {
AbstractFieldSearchCriteria.call(this, propertyName, SearchFieldType.PROPERTY);
};
stjs.extend(ControlledVocabularyPropertySearchCriteria, AbstractFieldSearchCriteria, [ AbstractFieldSearchCriteria ],
function(constructor, prototype) {
prototype['@type'] = 'as.dto.common.search.ControlledVocabularyPropertySearchCriteria';
constructor.serialVersionUID = 1;
prototype.thatEquals = function (value) {
this.setFieldValue(value);
}
}, {
fieldType : {
name : "Enum",
arguments : [ "SearchFieldType" ]
}
});
return ControlledVocabularyPropertySearchCriteria;
})
\ No newline at end of file
/*
* Copyright 2023 ETH Zuerich, SIS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
define([ "stjs", "as/dto/common/search/AbstractFieldSearchCriteria", "as/dto/common/search/SearchFieldType" ],
function(stjs, AbstractFieldSearchCriteria, SearchFieldType) {
var SamplePropertySearchCriteria = function(propertyName) {
AbstractFieldSearchCriteria.call(this, propertyName, SearchFieldType.PROPERTY);
};
stjs.extend(SamplePropertySearchCriteria, AbstractFieldSearchCriteria, [ AbstractFieldSearchCriteria ],
function(constructor, prototype) {
prototype['@type'] = 'as.dto.common.search.SamplePropertySearchCriteria';
constructor.serialVersionUID = 1;
prototype.thatEquals = function (value) {
this.setFieldValue(value);
}
}, {
fieldType : {
name : "Enum",
arguments : [ "SearchFieldType" ]
}
});
return SamplePropertySearchCriteria;
})
\ No newline at end of file
......@@ -18,7 +18,6 @@ package ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search;
import ch.systemsx.cisd.base.annotation.JsonObject;
// TODO: add JS criteria!
@JsonObject("as.dto.common.search.ControlledVocabularyPropertySearchCriteria")
public class ControlledVocabularyPropertySearchCriteria extends AbstractFieldSearchCriteria<String>
{
......
......@@ -18,7 +18,6 @@ package ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search;
import ch.systemsx.cisd.base.annotation.JsonObject;
// TODO: add JS criteria
@JsonObject("as.dto.common.search.SamplePropertySearchCriteria")
public class SamplePropertySearchCriteria extends AbstractFieldSearchCriteria<String>
{
......
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