public class ISPermissionCollection extends PermissionCollection
ISPermission
objects.
It extends from PermissionCollection
providing implementation
of abstract methods like add
, implies
elements. The rest of the required methods are used from the parent
class.
With any PermissionCollection, you can:
add
method.
implies
method.
elements
method.
When it is desirable to group together a number of Permission objects of
the same type, the newPermissionCollection
method on that
particular type of Permission object should first be called. The default
behavior of the ISPermission class is to simply return a new instance of
ISPermissionCollection()
.
The caller of newPermissionCollection
would need to store
permissions of the ISPermission in ISPermissionCollection returned.
The ISPermissionCollection returned by the
Permission.newPermissionCollection
method is a homogeneous collection, which stores only ISPermission objects.
Permission
,
PermissionCollection
,
,
Serialized FormConstructor and Description |
---|
ISPermissionCollection() |
Modifier and Type | Method and Description |
---|---|
void |
add(Permission perm)
Adds a permission object to the current collection of
ISPermission objects.
|
Enumeration |
elements()
This method returns an Enumeration of permissions in this collection,
which is ISPermission in our case.
|
boolean |
implies(Permission perm)
Checks to see if the specified permission is implied by
the collection of ISPermission objects held in this
ISPermissionCollection.
|
isReadOnly, setReadOnly, toString
public void add(Permission perm)
add
in class PermissionCollection
perm
- the ISPermission object to add.SecurityException
- if this PermissionCollection object
has been marked readonly
exception IllegalArgumentException if the passed permission is not of
ISPermission instance.public Enumeration elements()
elements
in class PermissionCollection
public boolean implies(Permission perm)
implies>
to
evaluate the result.implies
in class PermissionCollection
perm
- the Permission object to compare.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.