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