2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.ccsdk.sli.plugins.restconfdiscovery;
24 * Holder to store information of subscription.
26 public class SubscriptionInfo {
27 private String subscriptionId;
28 private String subscriberId;
29 private SvcLogicGraphInfo callbackDG;
30 private String yangFilePath;
31 private String filterUrl;
34 * Returns callback DG.
38 public SvcLogicGraphInfo callBackDG() {
45 * @param callbackDg callback DG
47 public void callBackDG(SvcLogicGraphInfo callbackDg) {
48 this.callbackDG = callbackDg;
52 * Returns YANG file path.
54 * @return YANG file path
56 public String yangFilePath() {
61 * Sets YANG file path.
63 * @param yangFilePath yang file path
65 public void yangFilePath(String yangFilePath) {
66 this.yangFilePath = yangFilePath;
74 public String filterUrl() {
81 * @param filterUrl filter URL
83 public void filterUrl(String filterUrl) {
84 this.filterUrl = filterUrl;
88 * Returns subscription Id.
90 * @return subscription Id
92 public String subscriptionId() {
93 return subscriptionId;
97 * Sets subscription id.
99 * @param subscriptionId subscription id
101 public void subscriptionId(String subscriptionId) {
102 this.subscriptionId = subscriptionId;
106 * Returns subscription Id.
108 * @return subscription Id
110 public String subscriberId() {
115 * Sets subscriber id.
117 * @param subscriberId subscriber id
119 public void subscriberId(String subscriberId) {
120 this.subscriberId = subscriberId;