OSGi™ Service Platform
Release 4

org.osgi.service.condpermadmin
Interface ConditionalPermissionInfo


public interface ConditionalPermissionInfo

A binding of a set of Conditions to a set of Permissions. Instances of this interface are obtained from the Conditional Permission Admin service.


Method Summary
 void delete()
          Removes this Conditional Permission Info from the Conditional Permission Admin.
 ConditionInfo[] getConditionInfos()
          Returns the Condition Infos for the Conditions that must be satisfied to enable the Permissions.
 java.lang.String getName()
          Returns the name of this Conditional Permission Info.
 PermissionInfo[] getPermissionInfos()
          Returns the Permission Infos for the Permission in this Conditional Permission Info.
 

Method Detail

getConditionInfos

public ConditionInfo[] getConditionInfos()
Returns the Condition Infos for the Conditions that must be satisfied to enable the Permissions.

Returns:
The Condition Infos for the Conditions in this Conditional Permission Info.

getPermissionInfos

public PermissionInfo[] getPermissionInfos()
Returns the Permission Infos for the Permission in this Conditional Permission Info.

Returns:
The Permission Infos for the Permission in this Conditional Permission Info.

delete

public void delete()
Removes this Conditional Permission Info from the Conditional Permission Admin.

Throws:
java.lang.SecurityException - If the caller does not have AllPermission.

getName

public java.lang.String getName()
Returns the name of this Conditional Permission Info.

Returns:
The name of this Conditional Permission Info.

OSGi™ Service Platform
Release 4

Copyright © OSGi Alliance (2000, 2006). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0