blob: d876a67d201a9b3f0c48a00579ebbdc558bdcba9 [file] [log] [blame]
Thomas Vachuska02aeb032015-01-06 22:36:30 -08001/*
2 * Copyright 2015 Open Networking Laboratory
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 */
16package org.onosproject.core;
17
18import java.net.URI;
19import java.util.Optional;
20import java.util.Set;
21
22/**
23 * Abstraction of a network control/management application.
24 */
25public interface Application {
26
27 /**
28 * Returns the application name id.
29 *
30 * @return application identifier
31 */
32 ApplicationId id();
33
34 /**
35 * Returns the application version.
36 *
37 * @return application version
38 */
39 Version version();
40
41 /**
42 * Returns description of the application.
43 *
44 * @return application description text
45 */
46 String description();
47
48 /**
49 * Returns the name of the application origin, group or company.
50 *
51 * @return application origin
52 */
53 String origin();
54
55 /**
56 * Returns the permissions requested by the application.
57 *
58 * @return requested permissions
59 */
60 Set<Permission> permissions();
61
62 /**
63 * Returns the feature repository URI. Null value signifies that the
64 * application did not provide its own features repository.
65 *
66 * @return optional feature repo URL
67 */
68 Optional<URI> featuresRepo();
69
70 /**
71 * Returns the set of features comprising the application. At least one
72 * feature must be given.
73 *
74 * @return application features
75 */
76 Set<String> features();
77}