|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AclEntry
Represents one entry in an Access Control List (ACL).
An ACL can be thought of as a data structure with multiple ACL entry objects. Each ACL entry object contains a set of positive page permissions associated with a particular principal. (A principal represents an entity such as an individual user, group, or role). Each principal can have at most one ACL entry; that is, multiple ACL entries are not allowed for any principal.
This interface is functionally equivalent to the java.security.acl.AclEntry interface, minus negative permissions.
Acl
Method Summary | |
---|---|
boolean |
addPermission(Permission permission)
Adds the specified permission to this ACL entry. |
boolean |
checkPermission(Permission permission)
Checks if the specified permission is part of the permission set in this entry. |
Object |
clone()
Returns a string representation of the contents of this ACL entry. |
Principal |
getPrincipal()
Returns the principal for which permissions are granted or denied by this ACL entry. |
Enumeration |
permissions()
Returns an enumeration of the permissions in this ACL entry. |
boolean |
removePermission(Permission permission)
Removes the specified permission from this ACL entry. |
boolean |
setPrincipal(Principal user)
Specifies the principal for which permissions are granted or denied by this ACL entry. |
String |
toString()
Clones this ACL entry. |
Method Detail |
---|
boolean addPermission(Permission permission)
PagePermission
. Note: An entry
can have multiple permissions.
permission
- the permission to be associated with the principal in
this entry
boolean checkPermission(Permission permission)
permission
- the permission to be checked for.
Object clone()
Principal getPrincipal()
Enumeration permissions()
boolean removePermission(Permission permission)
permission
- the permission to be removed from this entry.
boolean setPrincipal(Principal user)
user
- the principal to be set for this entry
String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |