Renaming openecomp to onap
[aai/data-router.git] / src / main / java / org / onap / aai / datarouter / search / filters / config / UiFilterConfig.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
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
11  *
12  *       http://www.apache.org/licenses/LICENSE-2.0
13  *
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=========================================================
20  *
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  */
23 package org.onap.aai.datarouter.search.filters.config;
24
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;
29
30 @JsonInclude(Include.NON_NULL)
31 public class UiFilterConfig {
32
33   @JsonProperty("filterId")
34   private String filterId;
35
36   @JsonProperty("filterName")
37   private String filterName;
38
39   @JsonProperty("displayName")
40   private String displayName;
41
42   @JsonProperty("dataType")
43   private String dataType;
44
45   @JsonProperty("dataSource")
46   private UiFilterDataSourceConfig dataSource = new UiFilterDataSourceConfig();
47
48   @JsonCreator
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
54       ) {
55     this.filterId = filterId;
56     this.filterName = filterName;
57     this.displayName = displayName;
58     this.dataType = dataType;
59     this.dataSource = dataSource;
60   }
61
62   @JsonProperty("filterId")
63   public String getFilterId() {
64     return filterId;
65   }
66
67   public void setFilterId(String filterId) {
68     this.filterId = filterId;
69   }
70
71   @JsonProperty("filterName")
72   public String getFilterName() {
73     return filterName;
74   }
75
76   public void setFilterName(String filterName) {
77     this.filterName = filterName;
78   }
79
80   @JsonProperty("displayName")
81   public String getDisplayName() {
82     return displayName;
83   }
84
85   public void setDisplayName(String displayName) {
86     this.displayName = displayName;
87   }
88
89   @JsonProperty("dataType")
90   public String getDataType() {
91     return dataType;
92   }
93
94   public void setDataType(String dataType) {
95     this.dataType = dataType;
96   }
97
98   @JsonProperty("dataSource")
99   public UiFilterDataSourceConfig getDataSource() {
100     return dataSource;
101   }
102
103   public void setDataSource(UiFilterDataSourceConfig dataSource) {
104     this.dataSource = dataSource;
105   }
106
107   @Override
108   public String toString() {
109     return "UiFilterConfig [filterId=" + filterId + ", filterName=" + filterName + ", displayName="
110         + displayName + ", dataType=" + dataType + ", dataSource=" + dataSource + "]";
111   }
112 }