Thomas Vachuska | 02aeb03 | 2015-01-06 22:36:30 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Foundation |
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 | import org.onosproject.store.AbstractStore; |
| 22 | |
| 23 | import java.io.InputStream; |
| 24 | import java.util.Set; |
| 25 | |
| 26 | /** |
| 27 | * Adapter for application testing against application store. |
| 28 | */ |
| 29 | public class ApplicationStoreAdapter |
| 30 | extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> |
| 31 | implements ApplicationStore { |
| 32 | @Override |
| 33 | public Set<Application> getApplications() { |
| 34 | return null; |
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public ApplicationId getId(String name) { |
| 39 | return null; |
| 40 | } |
| 41 | |
| 42 | @Override |
| 43 | public Application getApplication(ApplicationId appId) { |
| 44 | return null; |
| 45 | } |
| 46 | |
| 47 | @Override |
| 48 | public ApplicationState getState(ApplicationId appId) { |
| 49 | return null; |
| 50 | } |
| 51 | |
| 52 | @Override |
| 53 | public Application create(InputStream appDescStream) { |
| 54 | return null; |
| 55 | } |
| 56 | |
| 57 | @Override |
| 58 | public void remove(ApplicationId appId) { |
| 59 | } |
| 60 | |
| 61 | @Override |
| 62 | public void activate(ApplicationId appId) { |
| 63 | } |
| 64 | |
| 65 | @Override |
| 66 | public void deactivate(ApplicationId appId) { |
| 67 | } |
| 68 | |
| 69 | @Override |
| 70 | public Set<Permission> getPermissions(ApplicationId appId) { |
| 71 | return null; |
| 72 | } |
| 73 | |
| 74 | @Override |
| 75 | public void setPermissions(ApplicationId appId, Set<Permission> permissions) { |
| 76 | } |
| 77 | |
| 78 | } |