2 * ============LICENSE_START=======================================================
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
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 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.onap.aai.sparky.subscription.config;
25 import java.util.Collection;
29 * The Class SubscriptionConfig.
31 public class SubscriptionConfig {
33 private static final String EMPTY_TARGET = "";
34 private static final String EMPTY_ORIGIN = "";
35 private static final String EMPTY_MESSAGE_TYPE = "";
36 private static final String EMPTY_TOPIC = "";
39 private String subscriptionTarget = EMPTY_TARGET;
40 private String subscriptionOrigin = EMPTY_ORIGIN;
41 private String subscriptionMessageType = EMPTY_MESSAGE_TYPE;
42 private String subscriptionTopic = EMPTY_TOPIC;
44 private String launchOITarget = EMPTY_TARGET;
45 private String launchOIOrigin = EMPTY_ORIGIN;
46 private String launchOIMessageType = EMPTY_MESSAGE_TYPE;
47 private String launchOITopic = EMPTY_TOPIC;
49 private Boolean isLaunchOIEnabled = false;
51 private Collection<String> annEntitiyTypes;
54 * Instantiates a new Subscription config.
56 public SubscriptionConfig() {}
58 public String getSubscriptionTarget() {
59 return subscriptionTarget;
62 public void setSubscriptionTarget(String target) {
63 this.subscriptionTarget = target;
66 public String getSubscriptionOrigin() {
67 return subscriptionOrigin;
70 public void setSubscriptionOrigin(String origin) {
71 this.subscriptionOrigin = origin;
74 public String getSubscriptionMessageType() {
75 return subscriptionMessageType;
78 public void setSubscriptionMessageType(String messageType) {
79 this.subscriptionMessageType = messageType;
82 public String getSubscriptionTopic() {
83 return subscriptionTopic;
86 public void setSubscriptionTopic(String topic) {
87 this.subscriptionTopic = topic;
90 public String getLaunchOITarget() {
91 return launchOITarget;
94 public void setLaunchOITarget(String launchOITarget) {
95 this.launchOITarget = launchOITarget;
98 public String getLaunchOIOrigin() {
99 return launchOIOrigin;
102 public void setLaunchOIOrigin(String launchOIOrigin) {
103 this.launchOIOrigin = launchOIOrigin;
106 public String getLaunchOIMessageType() {
107 return launchOIMessageType;
110 public void setLaunchOIMessageType(String launchOIMessageType) {
111 this.launchOIMessageType = launchOIMessageType;
114 public String getLaunchOITopic() {
115 return launchOITopic;
118 public void setLaunchOITopic(String launchOITopic) {
119 this.launchOITopic = launchOITopic;
122 public Collection<String> getAnnEntitiyTypes() {
123 return annEntitiyTypes;
126 public void setAnnEntitiyTypes(Collection<String> annEntitiyTypes) {
127 this.annEntitiyTypes = annEntitiyTypes;
130 public Boolean getIsLaunchOIEnabled() {
131 return isLaunchOIEnabled;
134 public void setIsLaunchOIEnabled(Boolean isLaunchOIEnabled) {
135 this.isLaunchOIEnabled = isLaunchOIEnabled;