Top Description Fields Constructors Methods
org.osgi.service.dmt.security

pack-priv final Class DmtAlertPermissionCollection

Located in compilation unit of org.osgi.service.dmt.security.AlertPermission.

extends PermissionCollection
Class Inheritance

Represents a homogeneous collection of AlertPermission objects.

Field Summary

Modifier and TypeField and Description
private ArrayList<Permission>
private static final long

Constructor Summary

AccessConstructor and Description
public
DmtAlertPermissionCollection()

Create an empty DmtAlertPermissionCollection object.

Method Summary

Modifier and TypeMethod and Description
public void
add(Permission
the Permission object to add
permission
)

Implements abstract java.security.PermissionCollection.add.

Adds a permission to the DmtAlertPermissionCollection.

public Enumeration<Permission>

Returns:

an enumeration of all the AlertPermission objects
elements
()

Implements abstract java.security.PermissionCollection.elements.

Returns an enumeration of all the AlertPermission objects in the container.

public boolean

Returns:

true if the parameter permission is a proper subset of the permissions in the collection, false otherwise
implies
(Permission
the Permission object to compare
permission
)

Implements abstract java.security.PermissionCollection.implies.

Check whether this set of permissions implies the permission specified in the parameter.

Inherited from java.security.PermissionCollection:
elementsAsStreamisReadOnlysetReadOnlytoString

Field Detail

permsback to summary
private ArrayList<Permission> perms
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.PermissionCollection.serialVersionUID.

Constructor Detail

DmtAlertPermissionCollectionback to summary
public DmtAlertPermissionCollection()

Create an empty DmtAlertPermissionCollection object.

Method Detail

addback to summary
public void add(Permission permission)

Implements abstract java.security.PermissionCollection.add.

Adds a permission to the DmtAlertPermissionCollection.

Parameters
permission:Permission

the Permission object to add

Annotations
@Override
Exceptions
IllegalArgumentException:
if the permission is not a AlertPermission
SecurityException:
if this DmtAlertPermissionCollection object has been marked readonly
elementsback to summary
public Enumeration<Permission> elements()

Implements abstract java.security.PermissionCollection.elements.

Returns an enumeration of all the AlertPermission objects in the container. The returned value cannot be null.

Returns:Enumeration<Permission>

an enumeration of all the AlertPermission objects

Annotations
@Override
impliesback to summary
public boolean implies(Permission permission)

Implements abstract java.security.PermissionCollection.implies.

Check whether this set of permissions implies the permission specified in the parameter.

Parameters
permission:Permission

the Permission object to compare

Returns:boolean

true if the parameter permission is a proper subset of the permissions in the collection, false otherwise

Annotations
@Override