2 * Copyright © 2016-2018 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.onap.config.type;
19 import org.onap.config.Constants;
21 public class ConfigurationQuery {
23 private String tenant = Constants.DEFAULT_TENANT;
24 private String namespace = Constants.DEFAULT_NAMESPACE;
26 private boolean fallback;
27 private boolean externalLookup;
28 private boolean latest;
29 private boolean nodeSpecific;
31 public ConfigurationQuery fallback(boolean fallback) {
32 this.fallback = fallback;
36 public ConfigurationQuery latest(boolean val) {
41 public ConfigurationQuery nodeSpecific(boolean val) {
42 this.nodeSpecific = val;
46 public ConfigurationQuery externalLookup(boolean val) {
47 this.externalLookup = val;
51 public ConfigurationQuery tenant(String id) {
59 public ConfigurationQuery namespace(String id) {
66 public ConfigurationQuery key(String id) {
71 public String getTenant() {
72 return tenant.toUpperCase();
75 public String getNamespace() {
76 return namespace.toUpperCase();
79 public String getKey() {
83 public boolean isFallback() {
87 public boolean isNodeSpecific() {
91 public boolean isExternalLookup() {
92 return externalLookup;
95 public boolean isLatest() {