blob: ef07e6529cb1c5aa884c45c035dfdd8b3b58a3ca [file] [log] [blame]
Amit Ghoshc9ac1e52017-07-28 12:31:18 +01001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
Matteo Scandolocf847b82019-04-26 15:00:00 -070017package org.opencord.aaa.impl;
Amit Ghoshc9ac1e52017-07-28 12:31:18 +010018
19import org.onosproject.net.device.DeviceService;
Gamze Abaka1cfdb192018-10-25 11:39:19 +000020import org.opencord.sadis.BaseInformationService;
21import org.opencord.sadis.SubscriberAndDeviceInformation;
Amit Ghoshc9ac1e52017-07-28 12:31:18 +010022
23/**
24 * Info required to do customization to packets.
25 */
26public class CustomizationInfo {
27
28 private DeviceService devService;
29
Gamze Abaka1cfdb192018-10-25 11:39:19 +000030 private BaseInformationService<SubscriberAndDeviceInformation> subscriberService;
Amit Ghoshc9ac1e52017-07-28 12:31:18 +010031
Gamze Abaka1cfdb192018-10-25 11:39:19 +000032 public CustomizationInfo(BaseInformationService<SubscriberAndDeviceInformation> subsService,
33 DeviceService devService) {
Amit Ghoshc9ac1e52017-07-28 12:31:18 +010034 this.subscriberService = subsService;
35 this.devService = devService;
36 }
37
Ilayda Ozdemir9fdeee72021-02-26 12:24:27 +000038 public void updateSubscriberService(BaseInformationService<SubscriberAndDeviceInformation> subscriberService) {
39 this.subscriberService = subscriberService;
40 }
41
Amit Ghoshc9ac1e52017-07-28 12:31:18 +010042 public DeviceService deviceService() {
43 return devService;
44 }
45
Gamze Abaka1cfdb192018-10-25 11:39:19 +000046 public BaseInformationService<SubscriberAndDeviceInformation> subscriberService() {
Amit Ghoshc9ac1e52017-07-28 12:31:18 +010047 return subscriberService;
48 }
49}