Simon Hunt | b438177 | 2017-10-31 11:07:39 -0700 | [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 | package org.opencord.aaa.impl; |
| 17 | |
| 18 | import org.onosproject.net.device.DeviceService; |
| 19 | import org.opencord.sadis.SubscriberAndDeviceInformationService; |
| 20 | |
| 21 | /** |
| 22 | * Bindings to Device service and Subscriber and Device Information service |
| 23 | * (SADIS), required for RADIUS packet customization. |
| 24 | */ |
| 25 | public class CustomizationInfo { |
| 26 | |
| 27 | private final SubscriberAndDeviceInformationService subsService; |
| 28 | private final DeviceService devService; |
| 29 | |
| 30 | /** |
| 31 | * Creates a customization info instance, with bindings for the given |
| 32 | * service instances. |
| 33 | * |
| 34 | * @param subsService subscriber service |
| 35 | * @param devService device service |
| 36 | */ |
| 37 | public CustomizationInfo(SubscriberAndDeviceInformationService subsService, |
| 38 | DeviceService devService) { |
| 39 | this.subsService = subsService; |
| 40 | this.devService = devService; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Returns the reference to the subscriber service. |
| 45 | * |
| 46 | * @return the subscriber service |
| 47 | */ |
| 48 | public SubscriberAndDeviceInformationService subscriberService() { |
| 49 | return subsService; |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Returns the reference to the device service. |
| 54 | * |
| 55 | * @return the device service |
| 56 | */ |
| 57 | public DeviceService deviceService() { |
| 58 | return devService; |
| 59 | } |
| 60 | } |