2 * ============LICENSE_START=======================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.aai.sparky.subscription.config;
23 import java.util.Collection;
27 * The Class SubscriptionConfig.
29 public class SubscriptionConfig {
31 private static final String EMPTY_TARGET = "";
32 private static final String EMPTY_ORIGIN = "";
33 private static final String EMPTY_MESSAGE_TYPE = "";
34 private static final String EMPTY_TOPIC = "";
37 private String subscriptionTarget = EMPTY_TARGET;
38 private String subscriptionOrigin = EMPTY_ORIGIN;
39 private String subscriptionMessageType = EMPTY_MESSAGE_TYPE;
40 private String subscriptionTopic = EMPTY_TOPIC;
42 private String launchOITarget = EMPTY_TARGET;
43 private String launchOIOrigin = EMPTY_ORIGIN;
44 private String launchOIMessageType = EMPTY_MESSAGE_TYPE;
45 private String launchOITopic = EMPTY_TOPIC;
47 private Boolean isLaunchOIEnabled = false;
49 private Collection<String> annEntitiyTypes;
52 * Instantiates a new Subscription config.
54 public SubscriptionConfig() {}
56 public String getSubscriptionTarget() {
57 return subscriptionTarget;
60 public void setSubscriptionTarget(String target) {
61 this.subscriptionTarget = target;
64 public String getSubscriptionOrigin() {
65 return subscriptionOrigin;
68 public void setSubscriptionOrigin(String origin) {
69 this.subscriptionOrigin = origin;
72 public String getSubscriptionMessageType() {
73 return subscriptionMessageType;
76 public void setSubscriptionMessageType(String messageType) {
77 this.subscriptionMessageType = messageType;
80 public String getSubscriptionTopic() {
81 return subscriptionTopic;
84 public void setSubscriptionTopic(String topic) {
85 this.subscriptionTopic = topic;
88 public String getLaunchOITarget() {
89 return launchOITarget;
92 public void setLaunchOITarget(String launchOITarget) {
93 this.launchOITarget = launchOITarget;
96 public String getLaunchOIOrigin() {
97 return launchOIOrigin;
100 public void setLaunchOIOrigin(String launchOIOrigin) {
101 this.launchOIOrigin = launchOIOrigin;
104 public String getLaunchOIMessageType() {
105 return launchOIMessageType;
108 public void setLaunchOIMessageType(String launchOIMessageType) {
109 this.launchOIMessageType = launchOIMessageType;
112 public String getLaunchOITopic() {
113 return launchOITopic;
116 public void setLaunchOITopic(String launchOITopic) {
117 this.launchOITopic = launchOITopic;
120 public Collection<String> getAnnEntitiyTypes() {
121 return annEntitiyTypes;
124 public void setAnnEntitiyTypes(Collection<String> annEntitiyTypes) {
125 this.annEntitiyTypes = annEntitiyTypes;
128 public Boolean getIsLaunchOIEnabled() {
129 return isLaunchOIEnabled;
132 public void setIsLaunchOIEnabled(Boolean isLaunchOIEnabled) {
133 this.isLaunchOIEnabled = isLaunchOIEnabled;