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.datarouter.search.filters.config;
23 import com.fasterxml.jackson.annotation.JsonCreator;
24 import com.fasterxml.jackson.annotation.JsonInclude;
25 import com.fasterxml.jackson.annotation.JsonInclude.Include;
26 import com.fasterxml.jackson.annotation.JsonProperty;
28 @JsonInclude(Include.NON_NULL)
29 public class UiFilterConfig {
31 @JsonProperty("filterId")
32 private String filterId;
34 @JsonProperty("filterName")
35 private String filterName;
37 @JsonProperty("displayName")
38 private String displayName;
40 @JsonProperty("dataType")
41 private String dataType;
43 @JsonProperty("dataSource")
44 private UiFilterDataSourceConfig dataSource = new UiFilterDataSourceConfig();
47 public UiFilterConfig(@JsonProperty("filterId") final String filterId,
48 @JsonProperty("filterName") final String filterName,
49 @JsonProperty("displayName") final String displayName,
50 @JsonProperty("dataType") final String dataType,
51 @JsonProperty("dataSource") final UiFilterDataSourceConfig dataSource
53 this.filterId = filterId;
54 this.filterName = filterName;
55 this.displayName = displayName;
56 this.dataType = dataType;
57 this.dataSource = dataSource;
60 @JsonProperty("filterId")
61 public String getFilterId() {
65 public void setFilterId(String filterId) {
66 this.filterId = filterId;
69 @JsonProperty("filterName")
70 public String getFilterName() {
74 public void setFilterName(String filterName) {
75 this.filterName = filterName;
78 @JsonProperty("displayName")
79 public String getDisplayName() {
83 public void setDisplayName(String displayName) {
84 this.displayName = displayName;
87 @JsonProperty("dataType")
88 public String getDataType() {
92 public void setDataType(String dataType) {
93 this.dataType = dataType;
96 @JsonProperty("dataSource")
97 public UiFilterDataSourceConfig getDataSource() {
101 public void setDataSource(UiFilterDataSourceConfig dataSource) {
102 this.dataSource = dataSource;
106 public String toString() {
107 return "UiFilterConfig [filterId=" + filterId + ", filterName=" + filterName + ", displayName="
108 + displayName + ", dataType=" + dataType + ", dataSource=" + dataSource + "]";