2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017 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 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.openecomp.datarouter.search.filters.config;
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("dataSource")
46 private UiFilterDataSourceConfig dataSource = new UiFilterDataSourceConfig();
49 public UiFilterConfig(@JsonProperty("filterId") final String filterId,
50 @JsonProperty("filterName") final String filterName,
51 @JsonProperty("displayName") final String displayName,
52 @JsonProperty("dataType") final String dataType,
53 @JsonProperty("dataSource") final UiFilterDataSourceConfig dataSource
55 this.filterId = filterId;
56 this.filterName = filterName;
57 this.displayName = displayName;
58 this.dataType = dataType;
59 this.dataSource = dataSource;
62 @JsonProperty("filterId")
63 public String getFilterId() {
67 public void setFilterId(String filterId) {
68 this.filterId = filterId;
71 @JsonProperty("filterName")
72 public String getFilterName() {
76 public void setFilterName(String filterName) {
77 this.filterName = filterName;
80 @JsonProperty("displayName")
81 public String getDisplayName() {
85 public void setDisplayName(String displayName) {
86 this.displayName = displayName;
89 @JsonProperty("dataType")
90 public String getDataType() {
94 public void setDataType(String dataType) {
95 this.dataType = dataType;
98 @JsonProperty("dataSource")
99 public UiFilterDataSourceConfig getDataSource() {
103 public void setDataSource(UiFilterDataSourceConfig dataSource) {
104 this.dataSource = dataSource;
108 public String toString() {
109 return "UiFilterConfig [filterId=" + filterId + ", filterName=" + filterName + ", displayName="
110 + displayName + ", dataType=" + dataType + ", dataSource=" + dataSource + "]";