2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
25 package org.openecomp.datarouter.search.filters.config;
27 import com.fasterxml.jackson.annotation.JsonCreator;
28 import com.fasterxml.jackson.annotation.JsonInclude;
29 import com.fasterxml.jackson.annotation.JsonInclude.Include;
30 import com.fasterxml.jackson.annotation.JsonProperty;
32 @JsonInclude(Include.NON_NULL)
33 public class UiFilterConfig {
35 @JsonProperty("filterId")
36 private String filterId;
38 @JsonProperty("filterName")
39 private String filterName;
41 @JsonProperty("displayName")
42 private String displayName;
44 @JsonProperty("dataType")
45 private String dataType;
47 @JsonProperty("dataSource")
48 private UiFilterDataSourceConfig dataSource = new UiFilterDataSourceConfig();
51 public UiFilterConfig(@JsonProperty("filterId") final String filterId,
52 @JsonProperty("filterName") final String filterName,
53 @JsonProperty("displayName") final String displayName,
54 @JsonProperty("dataType") final String dataType,
55 @JsonProperty("dataSource") final UiFilterDataSourceConfig dataSource
57 this.filterId = filterId;
58 this.filterName = filterName;
59 this.displayName = displayName;
60 this.dataType = dataType;
61 this.dataSource = dataSource;
64 @JsonProperty("filterId")
65 public String getFilterId() {
69 public void setFilterId(String filterId) {
70 this.filterId = filterId;
73 @JsonProperty("filterName")
74 public String getFilterName() {
78 public void setFilterName(String filterName) {
79 this.filterName = filterName;
82 @JsonProperty("displayName")
83 public String getDisplayName() {
87 public void setDisplayName(String displayName) {
88 this.displayName = displayName;
91 @JsonProperty("dataType")
92 public String getDataType() {
96 public void setDataType(String dataType) {
97 this.dataType = dataType;
100 @JsonProperty("dataSource")
101 public UiFilterDataSourceConfig getDataSource() {
105 public void setDataSource(UiFilterDataSourceConfig dataSource) {
106 this.dataSource = dataSource;
110 public String toString() {
111 return "UiFilterConfig [filterId=" + filterId + ", filterName=" + filterName + ", displayName="
112 + displayName + ", dataType=" + dataType + ", dataSource=" + dataSource + "]";