Richard S. Hall | 930fecc | 2005-08-16 18:33:34 +0000 | [diff] [blame] | 1 | /* |
| 2 | * $Header: /cvshome/build/org.osgi.service.condpermadmin/src/org/osgi/service/condpermadmin/ConditionalPermissionInfo.java,v 1.7 2005/07/14 10:47:13 pkriens Exp $ |
| 3 | * |
| 4 | * Copyright (c) OSGi Alliance (2004, 2005). All Rights Reserved. |
| 5 | * |
| 6 | * This program and the accompanying materials are made available under the |
| 7 | * terms of the Eclipse Public License v1.0 which accompanies this |
| 8 | * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. |
| 9 | */ |
| 10 | |
| 11 | package org.osgi.service.condpermadmin; |
| 12 | |
| 13 | import org.osgi.service.permissionadmin.PermissionInfo; |
| 14 | |
| 15 | /** |
| 16 | * This interface describes a binding of a set of Conditions to a set of |
| 17 | * Permissions. Instances of this interface are obtained from the |
| 18 | * ConditionalPermissionAdmin service. This interface is also used to remove |
| 19 | * ConditionalPermissionCollections from ConditionPermissionAdmin. |
| 20 | */ |
| 21 | public interface ConditionalPermissionInfo { |
| 22 | /** |
| 23 | * Returns the ConditionInfos for the Conditions that must be satisfied to |
| 24 | * enable this ConditionalPermissionCollection. |
| 25 | */ |
| 26 | ConditionInfo[] getConditionInfos(); |
| 27 | |
| 28 | /** |
| 29 | * Returns the PermissionInfos for the Permission in this |
| 30 | * ConditionalPermissionCollection. |
| 31 | */ |
| 32 | PermissionInfo[] getPermissionInfos(); |
| 33 | |
| 34 | /** |
| 35 | * Removes the ConditionalPermissionCollection from the |
| 36 | * ConditionalPermissionAdmin. |
| 37 | */ |
| 38 | void delete(); |
| 39 | |
| 40 | /** |
| 41 | * Return the name of this Conditional Permission Info object. |
| 42 | * |
| 43 | */ |
| 44 | String getName(); |
| 45 | } |