|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.PermissionCollection
org.norther.tammi.core.security.ExtendedPermissions
public class ExtendedPermissions
An extension to permissions providing an implies method for checking partial matches of resource permissions.
| Constructor Summary | |
|---|---|
ExtendedPermissions()
Constructs a new resource permissions. |
|
| Method Summary | |
|---|---|
void |
add(Permission permission)
Adds a permission object to the permission collection. |
Enumeration |
elements()
Returns an enumeration of all permission objects. |
boolean |
implies(Permission permission)
Checks if permissions of this object imply the specified permission. |
boolean |
isReadOnly()
Checks the readonly flag. |
void |
setReadOnly()
Sets the readonly flag. |
String |
toString()
Returns a string presentation of all permissions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedPermissions()
| Method Detail |
|---|
public void add(Permission permission)
add in class PermissionCollectionpermission - the permission object to add.
SecurityException - if permissions is marked as read-only.public boolean implies(Permission permission)
implies in class PermissionCollectionpermission - the permission to check against.
public Enumeration elements()
elements in class PermissionCollectionpublic boolean isReadOnly()
isReadOnly in class PermissionCollectionpublic void setReadOnly()
setReadOnly in class PermissionCollectionpublic String toString()
toString in class PermissionCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||