Amit Ghosh | c9ac1e5 | 2017-07-28 12:31:18 +0100 | [diff] [blame] | 1 | /* |
| 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 Scandolo | cf847b8 | 2019-04-26 15:00:00 -0700 | [diff] [blame] | 17 | package org.opencord.aaa.impl; |
Amit Ghosh | c9ac1e5 | 2017-07-28 12:31:18 +0100 | [diff] [blame] | 18 | |
| 19 | import org.onosproject.net.device.DeviceService; |
Gamze Abaka | 1cfdb19 | 2018-10-25 11:39:19 +0000 | [diff] [blame] | 20 | import org.opencord.sadis.BaseInformationService; |
| 21 | import org.opencord.sadis.SubscriberAndDeviceInformation; |
Amit Ghosh | c9ac1e5 | 2017-07-28 12:31:18 +0100 | [diff] [blame] | 22 | |
| 23 | /** |
| 24 | * Info required to do customization to packets. |
| 25 | */ |
| 26 | public class CustomizationInfo { |
| 27 | |
| 28 | private DeviceService devService; |
| 29 | |
Gamze Abaka | 1cfdb19 | 2018-10-25 11:39:19 +0000 | [diff] [blame] | 30 | private BaseInformationService<SubscriberAndDeviceInformation> subscriberService; |
Amit Ghosh | c9ac1e5 | 2017-07-28 12:31:18 +0100 | [diff] [blame] | 31 | |
Gamze Abaka | 1cfdb19 | 2018-10-25 11:39:19 +0000 | [diff] [blame] | 32 | public CustomizationInfo(BaseInformationService<SubscriberAndDeviceInformation> subsService, |
| 33 | DeviceService devService) { |
Amit Ghosh | c9ac1e5 | 2017-07-28 12:31:18 +0100 | [diff] [blame] | 34 | this.subscriberService = subsService; |
| 35 | this.devService = devService; |
| 36 | } |
| 37 | |
| 38 | public DeviceService deviceService() { |
| 39 | return devService; |
| 40 | } |
| 41 | |
Gamze Abaka | 1cfdb19 | 2018-10-25 11:39:19 +0000 | [diff] [blame] | 42 | public BaseInformationService<SubscriberAndDeviceInformation> subscriberService() { |
Amit Ghosh | c9ac1e5 | 2017-07-28 12:31:18 +0100 | [diff] [blame] | 43 | return subscriberService; |
| 44 | } |
| 45 | } |