2 * ============LICENSE_START===================================================
3 * SPARKY (AAI UI service)
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.onap.aai.sparky.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 UiFilterDataSourceConfig {
35 @JsonProperty("indexName")
36 private String indexName;
38 @JsonProperty("docType")
39 private String docType;
41 @JsonProperty("fieldName")
42 private String fieldName;
44 @JsonProperty("pathToField")
45 private String pathToField;
47 public UiFilterDataSourceConfig(){}
50 public UiFilterDataSourceConfig(@JsonProperty("indexName") final String indexName, @JsonProperty("docType") final String docType, @JsonProperty("fieldName") final String fieldName, @JsonProperty("pathToField") final String pathToField) {
51 this.indexName = indexName;
52 this.docType = docType;
53 this.fieldName = fieldName;
54 this.pathToField = pathToField;
57 @JsonProperty("indexName")
58 public String getIndexName() {
62 public void setIndexName(String indexName) {
63 this.indexName = indexName;
66 @JsonProperty("docType")
67 public String getDocType() {
71 public void setDocType(String docType) {
72 this.docType = docType;
75 @JsonProperty("fieldName")
76 public String getFieldName() {
80 public void setFieldName(String fieldName) {
81 this.fieldName = fieldName;
84 @JsonProperty("pathToField")
85 public String getPathToField() {
89 public void setPathToField(String pathToField) {
90 this.pathToField = pathToField;
94 public String toString() {
95 return "UiFilterDataSourceConfig [indexName=" + indexName + ", docType=" + docType
96 + ", fieldName=" + fieldName + ", pathToField=" + pathToField + "]";