KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > osgi > service > condpermadmin > ConditionalPermissionInfo


1 /*
2  * $Header: /cvshome/build/org.osgi.service.condpermadmin/src/org/osgi/service/condpermadmin/ConditionalPermissionInfo.java,v 1.11 2006/06/16 16:31:37 hargrave Exp $
3  *
4  * Copyright (c) OSGi Alliance (2004, 2006). All Rights Reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 package org.osgi.service.condpermadmin;
20
21 import org.osgi.service.permissionadmin.PermissionInfo;
22
23 /**
24  * A binding of a set of Conditions to a set of Permissions. Instances of this
25  * interface are obtained from the Conditional Permission Admin service.
26  *
27  * @version $Revision: 1.11 $
28  */

29 public interface ConditionalPermissionInfo {
30     /**
31      * Returns the Condition Infos for the Conditions that must be satisfied to
32      * enable the Permissions.
33      *
34      * @return The Condition Infos for the Conditions in this Conditional
35      * Permission Info.
36      */

37     public ConditionInfo[] getConditionInfos();
38
39     /**
40      * Returns the Permission Infos for the Permission in this Conditional
41      * Permission Info.
42      *
43      * @return The Permission Infos for the Permission in this Conditional
44      * Permission Info.
45      */

46     public PermissionInfo[] getPermissionInfos();
47
48     /**
49      * Removes this Conditional Permission Info from the Conditional Permission
50      * Admin.
51      *
52      * @throws SecurityException If the caller does not have
53      * <code>AllPermission</code>.
54      */

55     public void delete();
56
57     /**
58      * Returns the name of this Conditional Permission Info.
59      *
60      * @return The name of this Conditional Permission Info.
61      */

62     public String JavaDoc getName();
63 }
64
Popular Tags