Update license and poms
[aai/sparky-be.git] / sparkybe-onap-service / src / main / java / org / onap / aai / sparky / search / filters / config / UiFilterConfig.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
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
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 package org.onap.aai.sparky.search.filters.config;
22
23 import java.util.List;
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("multiSelect")
46   private String multiSelect;
47   
48   @JsonProperty("watermark")
49   private String watermark;
50   
51   @JsonProperty("defaultValue")
52   private UiFilterOptionsValuesConfig defaultValue;
53   
54   @JsonProperty("optionsType")
55   private String optionsType;
56   
57   @JsonProperty("optionsValues")
58   private List<UiFilterOptionsValuesConfig> optionsValues;
59   
60   @JsonProperty("dataSource")
61   private UiFilterDataSourceConfig dataSource = new UiFilterDataSourceConfig();
62   
63   @JsonCreator
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
74       ) {
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;
85   }
86
87   @JsonProperty("filterId")
88   public String getFilterId() {
89     return filterId;
90   }
91
92   public void setFilterId(String filterId) {
93     this.filterId = filterId;
94   }
95
96   @JsonProperty("filterName")
97   public String getFilterName() {
98     return filterName;
99   }
100
101   public void setFilterName(String filterName) {
102     this.filterName = filterName;
103   }
104
105   @JsonProperty("displayName")
106   public String getDisplayName() {
107     return displayName;
108   }
109
110   public void setDisplayName(String displayName) {
111     this.displayName = displayName;
112   }
113
114   @JsonProperty("dataType")
115   public String getDataType() {
116     return dataType;
117   }
118
119   public void setDataType(String dataType) {
120     this.dataType = dataType;
121   }
122
123   @JsonProperty("multiSelect")
124   public String getMultiSelect() {
125     return multiSelect;
126   }
127
128   public void setMultiSelect(String multiSelect) {
129     this.multiSelect = multiSelect;
130   }
131
132   @JsonProperty("watermark")
133   public String getWatermark() {
134     return watermark;
135   }
136
137   public void setWatermark(String watermark) {
138     this.watermark = watermark;
139   }
140   
141   @JsonProperty("defaultValue")
142   public UiFilterOptionsValuesConfig getDefaultValue() {
143     return defaultValue;
144   }
145
146   public void setDefaultValue(UiFilterOptionsValuesConfig defaultValue) {
147     this.defaultValue = defaultValue;
148   }
149
150   @JsonProperty("optionsType")
151   public String getOptionsType() {
152     return optionsType;
153   }
154
155   public void setOptionsType(String optionsType) {
156     this.optionsType = optionsType;
157   }
158   @JsonProperty("optionsValues")
159   public List<UiFilterOptionsValuesConfig> getOptionsValues() {
160     return optionsValues;
161   }
162
163   public void setOptionsValues(List<UiFilterOptionsValuesConfig> optionsValues) {
164     this.optionsValues = optionsValues;
165   }
166
167   @JsonProperty("dataSource")
168   public UiFilterDataSourceConfig getDataSource() {
169     return dataSource;
170   }
171
172   public void setDataSource(UiFilterDataSourceConfig dataSource) {
173     this.dataSource = dataSource;
174   }
175
176   @Override
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 + "]";
182   }
183 }
184