Cleaning code
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / 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.sparky.search.filters.config;
24
25 import java.util.List;
26
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;
31
32 @JsonInclude(Include.NON_NULL)
33 public class UiFilterConfig {
34  
35   @JsonProperty("filterId")
36   private String filterId;
37   
38   @JsonProperty("filterName")
39   private String filterName;
40   
41   @JsonProperty("displayName")
42   private String displayName;
43   
44   @JsonProperty("dataType")
45   private String dataType;
46   
47   @JsonProperty("multiSelect")
48   private String multiSelect;
49   
50   @JsonProperty("watermark")
51   private String watermark;
52   
53   @JsonProperty("defaultValue")
54   private UiFilterOptionsValuesConfig defaultValue;
55   
56   @JsonProperty("optionsType")
57   private String optionsType;
58   
59   @JsonProperty("optionsValues")
60   private List<UiFilterOptionsValuesConfig> optionsValues;
61   
62   @JsonProperty("dataSource")
63   private UiFilterDataSourceConfig dataSource = new UiFilterDataSourceConfig();
64   
65   @JsonCreator
66   public UiFilterConfig(@JsonProperty("filterId") final String filterId, 
67       @JsonProperty("filterName") final String filterName, 
68       @JsonProperty("displayName") final String displayName,
69       @JsonProperty("dataType") final String dataType,
70       @JsonProperty("multiSelect") final String multiSelect,
71       @JsonProperty("watermark") final String watermark,
72       @JsonProperty("defaultValue") final UiFilterOptionsValuesConfig defaultValue,
73       @JsonProperty("optionsType") final String optionsType,
74       @JsonProperty("optionsValues") final List<UiFilterOptionsValuesConfig> optionsValues,
75       @JsonProperty("dataSource") final UiFilterDataSourceConfig dataSource
76       ) {
77     this.filterId = filterId;
78     this.filterName = filterName;
79     this.displayName = displayName;
80     this.dataType = dataType;
81     this.multiSelect = multiSelect;
82     this.watermark = watermark;
83     this.defaultValue = defaultValue;
84     this.optionsType = optionsType;
85     this.optionsValues = optionsValues;
86     this.dataSource = dataSource;
87   }
88
89   @JsonProperty("filterId")
90   public String getFilterId() {
91     return filterId;
92   }
93
94   public void setFilterId(String filterId) {
95     this.filterId = filterId;
96   }
97
98   @JsonProperty("filterName")
99   public String getFilterName() {
100     return filterName;
101   }
102
103   public void setFilterName(String filterName) {
104     this.filterName = filterName;
105   }
106
107   @JsonProperty("displayName")
108   public String getDisplayName() {
109     return displayName;
110   }
111
112   public void setDisplayName(String displayName) {
113     this.displayName = displayName;
114   }
115
116   @JsonProperty("dataType")
117   public String getDataType() {
118     return dataType;
119   }
120
121   public void setDataType(String dataType) {
122     this.dataType = dataType;
123   }
124
125   @JsonProperty("multiSelect")
126   public String getMultiSelect() {
127     return multiSelect;
128   }
129
130   public void setMultiSelect(String multiSelect) {
131     this.multiSelect = multiSelect;
132   }
133
134   @JsonProperty("watermark")
135   public String getWatermark() {
136     return watermark;
137   }
138
139   public void setWatermark(String watermark) {
140     this.watermark = watermark;
141   }
142   
143   @JsonProperty("defaultValue")
144   public UiFilterOptionsValuesConfig getDefaultValue() {
145     return defaultValue;
146   }
147
148   public void setDefaultValue(UiFilterOptionsValuesConfig defaultValue) {
149     this.defaultValue = defaultValue;
150   }
151
152   @JsonProperty("optionsType")
153   public String getOptionsType() {
154     return optionsType;
155   }
156
157   public void setOptionsType(String optionsType) {
158     this.optionsType = optionsType;
159   }
160   @JsonProperty("optionsValues")
161   public List<UiFilterOptionsValuesConfig> getOptionsValues() {
162     return optionsValues;
163   }
164
165   public void setOptionsValues(List<UiFilterOptionsValuesConfig> optionsValues) {
166     this.optionsValues = optionsValues;
167   }
168
169   @JsonProperty("dataSource")
170   public UiFilterDataSourceConfig getDataSource() {
171     return dataSource;
172   }
173
174   public void setDataSource(UiFilterDataSourceConfig dataSource) {
175     this.dataSource = dataSource;
176   }
177
178   @Override
179   public String toString() {
180     return "UiFilterConfig [filterId=" + filterId + ", filterName=" + filterName + ", displayName="
181         + displayName + ", dataType=" + dataType + ", multiSelect=" + multiSelect + ", watermark="
182         + watermark + ", optionsType=" + optionsType + ", optionsValues=" + optionsValues
183         + ", dataSource=" + dataSource + "]";
184   }
185 }
186