|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthorizationPermissions
Interface AuthorizationPermissions.
This interface represents a collection of AuthorizationPermission
s.
Method Summary | |
---|---|
boolean |
add(AuthorizationPermission permission)
Adds a permission object to this object by adding it to the AuthorizationPermissionCollection for the class the AuthorizationPermission belongs to. |
boolean |
add(AuthorizationPermissions permissions)
Convenience method to add AuthorizationPermissionsImpl to this object by adding each
one to the AuthorizationPermissionCollection for the class that AuthorizationPermission instance belongs to. |
boolean |
add(java.util.Set permissions)
Convenience method to add a Set of permission objects to this object by adding each
one to the AuthorizationPermissionCollection for the class that AuthorizationPermission instance belongs to. |
void |
clear()
Remove from this collection the entire set of existing permissions. |
boolean |
implies(AuthorizationPermission permission)
Checks to see if the AuthorizationPermissionCollection in this object that corresponds to the specified permission's type contains permissions that imply access to the resouces in the permission object. |
boolean |
isReadOnly()
Determine whether this AuthorizationPermissionCollection object is "readonly". |
java.util.Iterator |
iterator()
Obtain an iterator over the AuthorizationPermission instances in this collection. |
boolean |
remove(AuthorizationPermission permission)
Remove from this collection's set of existing permissions the specified permission. |
boolean |
removeAll(AuthorizationPermissions permissions)
Remove from this collection's set of existing permissions all of the set of specified permissions. |
boolean |
removeAll(java.util.Set permissions)
Remove from this collection's set of existing permissions all of the set of specified permissions. |
void |
setReadOnly()
Marks this AuthorizationPermissionCollection object as "readonly". |
int |
size()
Determine the number of AuthorizationPermission instances represented by this object. |
Method Detail |
---|
void setReadOnly()
add(com.metamatrix.platform.security.api.AuthorizationPermission)
method.
boolean isReadOnly()
add(com.metamatrix.platform.security.api.AuthorizationPermission)
method.
boolean add(AuthorizationPermission permission)
permission
- the AuthorizationPermission object to add.
java.lang.SecurityException
- if this AuthorizationPermission object is marked as readonly.isReadOnly()
,
add(AuthorizationPermissions)
,
add(Set)
boolean add(AuthorizationPermissions permissions)
AuthorizationPermissionsImpl
to this object by adding each
one to the AuthorizationPermissionCollection for the class that AuthorizationPermission instance belongs to.
This method creates new AuthorizationPermissionCollection object as required.
permissions
- the set of AuthorizationPermission objects to add.
java.lang.SecurityException
- if this AuthorizationPermission object is marked as readonly.isReadOnly()
,
add(AuthorizationPermission)
,
add(Set)
boolean add(java.util.Set permissions)
Set
of permission objects to this object by adding each
one to the AuthorizationPermissionCollection for the class that AuthorizationPermission instance belongs to.
This method creates new AuthorizationPermissionCollection object as required.
permissions
- the set of AuthorizationPermission objects to add.
java.lang.SecurityException
- if this AuthorizationPermission object is marked as readonly.isReadOnly()
,
add(AuthorizationPermission)
,
add(AuthorizationPermissions)
boolean remove(AuthorizationPermission permission)
permission
- the permission that is to be removed from this policy.boolean removeAll(java.util.Set permissions)
permissions
- the set of permissions that are to be removed from this policy.boolean removeAll(AuthorizationPermissions permissions)
permissions
- The AuthorizationPermissionsImpl that are to be removed from this policy.void clear()
java.util.Iterator iterator()
boolean implies(AuthorizationPermission permission)
permission
- the AuthorizationPermission object to check.
int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |