org.tanukisoftware.wrapper.security

Class WECollection

final class WECollection extends PermissionCollection

Constructor Summary
WECollection()
Creates an empty WECollection.
Method Summary
voidadd(Permission permission)
Adds a permission to the FilePermissions.
Enumerationelements()
Returns an enumeration of all the WrapperEventPermission objects in the container.
booleanimplies(Permission permission)
Check and see if this set of permissions implies the permissions expressed in "permission".

Constructor Detail

WECollection

public WECollection()
Creates an empty WECollection.

Method Detail

add

public void add(Permission permission)
Adds a permission to the FilePermissions. The key for the hash is permission.path.

Parameters: permission the Permission object to add.

Throws: IllegalArgumentException - if the permission is not a FilePermission SecurityException - if this FilePermissionCollection object has been marked readonly

elements

public Enumeration elements()
Returns an enumeration of all the WrapperEventPermission objects in the container.

Returns: An enumeration of all the WrapperEventPermission objects.

implies

public boolean implies(Permission permission)
Check and see if this set of permissions implies the permissions expressed in "permission".

Parameters: permission the Permission object to compare

Returns: true if "permission" is a proper subset of a permission in the set, false if not.