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.subscription.config;
27 import java.util.Collection;
31 * The Class SubscriptionConfig.
33 public class SubscriptionConfig {
35 private static final String EMPTY_TARGET = "";
36 private static final String EMPTY_ORIGIN = "";
37 private static final String EMPTY_MESSAGE_TYPE = "";
38 private static final String EMPTY_TOPIC = "";
41 private String subscriptionTarget = EMPTY_TARGET;
42 private String subscriptionOrigin = EMPTY_ORIGIN;
43 private String subscriptionMessageType = EMPTY_MESSAGE_TYPE;
44 private String subscriptionTopic = EMPTY_TOPIC;
46 private String launchOITarget = EMPTY_TARGET;
47 private String launchOIOrigin = EMPTY_ORIGIN;
48 private String launchOIMessageType = EMPTY_MESSAGE_TYPE;
49 private String launchOITopic = EMPTY_TOPIC;
51 private Boolean isLaunchOIEnabled = false;
53 private Collection<String> annEntitiyTypes;
56 * Instantiates a new Subscription config.
58 public SubscriptionConfig() {}
60 public String getSubscriptionTarget() {
61 return subscriptionTarget;
64 public void setSubscriptionTarget(String target) {
65 this.subscriptionTarget = target;
68 public String getSubscriptionOrigin() {
69 return subscriptionOrigin;
72 public void setSubscriptionOrigin(String origin) {
73 this.subscriptionOrigin = origin;
76 public String getSubscriptionMessageType() {
77 return subscriptionMessageType;
80 public void setSubscriptionMessageType(String messageType) {
81 this.subscriptionMessageType = messageType;
84 public String getSubscriptionTopic() {
85 return subscriptionTopic;
88 public void setSubscriptionTopic(String topic) {
89 this.subscriptionTopic = topic;
92 public String getLaunchOITarget() {
93 return launchOITarget;
96 public void setLaunchOITarget(String launchOITarget) {
97 this.launchOITarget = launchOITarget;
100 public String getLaunchOIOrigin() {
101 return launchOIOrigin;
104 public void setLaunchOIOrigin(String launchOIOrigin) {
105 this.launchOIOrigin = launchOIOrigin;
108 public String getLaunchOIMessageType() {
109 return launchOIMessageType;
112 public void setLaunchOIMessageType(String launchOIMessageType) {
113 this.launchOIMessageType = launchOIMessageType;
116 public String getLaunchOITopic() {
117 return launchOITopic;
120 public void setLaunchOITopic(String launchOITopic) {
121 this.launchOITopic = launchOITopic;
124 public Collection<String> getAnnEntitiyTypes() {
125 return annEntitiyTypes;
128 public void setAnnEntitiyTypes(Collection<String> annEntitiyTypes) {
129 this.annEntitiyTypes = annEntitiyTypes;
132 public Boolean getIsLaunchOIEnabled() {
133 return isLaunchOIEnabled;
136 public void setIsLaunchOIEnabled(Boolean isLaunchOIEnabled) {
137 this.isLaunchOIEnabled = isLaunchOIEnabled;