Thomas Vachuska | 02aeb03 | 2015-01-06 22:36:30 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
Thomas Vachuska | 02aeb03 | 2015-01-06 22:36:30 -0800 | [diff] [blame] | 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.onosproject.app; |
| 17 | |
| 18 | import org.onosproject.core.Application; |
| 19 | import org.onosproject.core.ApplicationId; |
Changhoon Yoon | b856b81 | 2015-08-10 03:47:19 +0900 | [diff] [blame] | 20 | import org.onosproject.security.Permission; |
Thomas Vachuska | 02aeb03 | 2015-01-06 22:36:30 -0800 | [diff] [blame] | 21 | |
| 22 | import java.io.InputStream; |
| 23 | import java.util.Set; |
| 24 | |
| 25 | /** |
| 26 | * Adapter for testing against application admin service. |
| 27 | */ |
| 28 | public class ApplicationAdminServiceAdapter extends ApplicationServiceAdapter |
| 29 | implements ApplicationAdminService { |
| 30 | @Override |
| 31 | public Set<Application> getApplications() { |
| 32 | return null; |
| 33 | } |
| 34 | |
| 35 | @Override |
| 36 | public Application getApplication(ApplicationId appId) { |
| 37 | return null; |
| 38 | } |
| 39 | |
| 40 | @Override |
| 41 | public ApplicationState getState(ApplicationId appId) { |
| 42 | return null; |
| 43 | } |
| 44 | |
| 45 | @Override |
| 46 | public Set<Permission> getPermissions(ApplicationId appId) { |
| 47 | return null; |
| 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public void addListener(ApplicationListener listener) { |
| 52 | } |
| 53 | |
| 54 | @Override |
| 55 | public void removeListener(ApplicationListener listener) { |
| 56 | } |
| 57 | |
| 58 | @Override |
| 59 | public Application install(InputStream appDescStream) { |
| 60 | return null; |
| 61 | } |
| 62 | |
| 63 | @Override |
| 64 | public void uninstall(ApplicationId appId) { |
| 65 | } |
| 66 | |
| 67 | @Override |
| 68 | public void activate(ApplicationId appId) { |
| 69 | } |
| 70 | |
| 71 | @Override |
| 72 | public void deactivate(ApplicationId appId) { |
| 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public void setPermissions(ApplicationId appId, Set<Permission> permissions) { |
| 77 | } |
| 78 | } |