Adding support for external microservice
[aai/data-router.git] / src / main / java / org / openecomp / datarouter / search / filters / config / UiFilterConfig.java
1 /**
2  * ============LICENSE_START=======================================================
3  * DataRouter
4  * ================================================================================
5  * Copyright © 2017 AT&T Intellectual Property.
6  * Copyright © 2017 Amdocs
7  * All rights reserved.
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
12  *
13  *    http://www.apache.org/licenses/LICENSE-2.0
14  *
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=========================================================
21  *
22  * ECOMP and OpenECOMP are trademarks
23  * and service marks of AT&T Intellectual Property.
24  */
25 package org.openecomp.datarouter.search.filters.config;
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("dataSource")
48   private UiFilterDataSourceConfig dataSource = new UiFilterDataSourceConfig();
49
50   @JsonCreator
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
56       ) {
57     this.filterId = filterId;
58     this.filterName = filterName;
59     this.displayName = displayName;
60     this.dataType = dataType;
61     this.dataSource = dataSource;
62   }
63
64   @JsonProperty("filterId")
65   public String getFilterId() {
66     return filterId;
67   }
68
69   public void setFilterId(String filterId) {
70     this.filterId = filterId;
71   }
72
73   @JsonProperty("filterName")
74   public String getFilterName() {
75     return filterName;
76   }
77
78   public void setFilterName(String filterName) {
79     this.filterName = filterName;
80   }
81
82   @JsonProperty("displayName")
83   public String getDisplayName() {
84     return displayName;
85   }
86
87   public void setDisplayName(String displayName) {
88     this.displayName = displayName;
89   }
90
91   @JsonProperty("dataType")
92   public String getDataType() {
93     return dataType;
94   }
95
96   public void setDataType(String dataType) {
97     this.dataType = dataType;
98   }
99
100   @JsonProperty("dataSource")
101   public UiFilterDataSourceConfig getDataSource() {
102     return dataSource;
103   }
104
105   public void setDataSource(UiFilterDataSourceConfig dataSource) {
106     this.dataSource = dataSource;
107   }
108
109   @Override
110   public String toString() {
111     return "UiFilterConfig [filterId=" + filterId + ", filterName=" + filterName + ", displayName="
112         + displayName + ", dataType=" + dataType + ", dataSource=" + dataSource + "]";
113   }
114 }