2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017-2018 Amdocs
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 package org.onap.aai.sparky.search.filters.config;
23 import java.util.List;
25 import com.fasterxml.jackson.annotation.JsonCreator;
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonInclude.Include;
28 import com.fasterxml.jackson.annotation.JsonProperty;
30 @JsonInclude(Include.NON_NULL)
31 public class UiFilterConfig {
33 @JsonProperty("filterId")
34 private String filterId;
36 @JsonProperty("filterName")
37 private String filterName;
39 @JsonProperty("displayName")
40 private String displayName;
42 @JsonProperty("dataType")
43 private String dataType;
45 @JsonProperty("multiSelect")
46 private String multiSelect;
48 @JsonProperty("watermark")
49 private String watermark;
51 @JsonProperty("defaultValue")
52 private UiFilterOptionsValuesConfig defaultValue;
54 @JsonProperty("optionsType")
55 private String optionsType;
57 @JsonProperty("optionsValues")
58 private List<UiFilterOptionsValuesConfig> optionsValues;
60 @JsonProperty("dataSource")
61 private UiFilterDataSourceConfig dataSource = new UiFilterDataSourceConfig();
64 public UiFilterConfig(@JsonProperty("filterId") final String filterId,
65 @JsonProperty("filterName") final String filterName,
66 @JsonProperty("displayName") final String displayName,
67 @JsonProperty("dataType") final String dataType,
68 @JsonProperty("multiSelect") final String multiSelect,
69 @JsonProperty("watermark") final String watermark,
70 @JsonProperty("defaultValue") final UiFilterOptionsValuesConfig defaultValue,
71 @JsonProperty("optionsType") final String optionsType,
72 @JsonProperty("optionsValues") final List<UiFilterOptionsValuesConfig> optionsValues,
73 @JsonProperty("dataSource") final UiFilterDataSourceConfig dataSource
75 this.filterId = filterId;
76 this.filterName = filterName;
77 this.displayName = displayName;
78 this.dataType = dataType;
79 this.multiSelect = multiSelect;
80 this.watermark = watermark;
81 this.defaultValue = defaultValue;
82 this.optionsType = optionsType;
83 this.optionsValues = optionsValues;
84 this.dataSource = dataSource;
87 @JsonProperty("filterId")
88 public String getFilterId() {
92 public void setFilterId(String filterId) {
93 this.filterId = filterId;
96 @JsonProperty("filterName")
97 public String getFilterName() {
101 public void setFilterName(String filterName) {
102 this.filterName = filterName;
105 @JsonProperty("displayName")
106 public String getDisplayName() {
110 public void setDisplayName(String displayName) {
111 this.displayName = displayName;
114 @JsonProperty("dataType")
115 public String getDataType() {
119 public void setDataType(String dataType) {
120 this.dataType = dataType;
123 @JsonProperty("multiSelect")
124 public String getMultiSelect() {
128 public void setMultiSelect(String multiSelect) {
129 this.multiSelect = multiSelect;
132 @JsonProperty("watermark")
133 public String getWatermark() {
137 public void setWatermark(String watermark) {
138 this.watermark = watermark;
141 @JsonProperty("defaultValue")
142 public UiFilterOptionsValuesConfig getDefaultValue() {
146 public void setDefaultValue(UiFilterOptionsValuesConfig defaultValue) {
147 this.defaultValue = defaultValue;
150 @JsonProperty("optionsType")
151 public String getOptionsType() {
155 public void setOptionsType(String optionsType) {
156 this.optionsType = optionsType;
158 @JsonProperty("optionsValues")
159 public List<UiFilterOptionsValuesConfig> getOptionsValues() {
160 return optionsValues;
163 public void setOptionsValues(List<UiFilterOptionsValuesConfig> optionsValues) {
164 this.optionsValues = optionsValues;
167 @JsonProperty("dataSource")
168 public UiFilterDataSourceConfig getDataSource() {
172 public void setDataSource(UiFilterDataSourceConfig dataSource) {
173 this.dataSource = dataSource;
177 public String toString() {
178 return "UiFilterConfig [filterId=" + filterId + ", filterName=" + filterName + ", displayName="
179 + displayName + ", dataType=" + dataType + ", multiSelect=" + multiSelect + ", watermark="
180 + watermark + ", optionsType=" + optionsType + ", optionsValues=" + optionsValues
181 + ", dataSource=" + dataSource + "]";