|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents an Access Control List (ACL) that specifies which groups and users can access this object.
Note: Adding a non-existent user or group ID will succeed until the ACL has been applied via the
| Method Summary | |
IACLEntry |
addUserEntry(int userID,
AccessLevel accessLevel)
Adds a user entry to this ACL. |
IACLEntry |
addUserGroupEntry(int groupID,
AccessLevel accessLevel)
Adds a group entry to this ACL. |
boolean |
contains(IACLEntry entry)
Determines whether a specific ACLEntry is contained in this ACL. |
IACLEntry[] |
entries()
All ACLEntry's contained within this ACL. |
IACLEntry |
getUserEntry(int userID)
Gets a user entry contained in this ACL. |
IACLEntry |
getUserGroupEntry(int groupID)
Gets a group entry contained in this ACL. |
IACLEntry |
removeEntry(IACLEntry aclEntry)
Removes an entry from the ACL, if present. |
IACLEntry |
removeUserEntry(int userID)
Removes a user entry from the ACL (ignored if no entry is present). |
IACLEntry |
removeUserGroupEntry(int groupID)
Removes a user entry from the ACL (ignored if no entry is present). |
| Method Detail |
public IACLEntry[] entries()
public IACLEntry addUserEntry(int userID,
AccessLevel accessLevel)
userID - the user ID of the user to addaccessLevel - the access level to grant
ACLEntryReadOnlyException - if the user already has a read-only entry set
java.lang.IllegalArgumentException - if an invalid user ID was passed
public IACLEntry addUserGroupEntry(int groupID,
AccessLevel accessLevel)
groupID - the group ID of the group to addaccessLevel - the access level to grant
ACLEntryReadOnlyException - if the group already has a read-only entry set
java.lang.IllegalArgumentException - if an invalid group ID was passedpublic IACLEntry removeEntry(IACLEntry aclEntry)
aclEntry - the entry to remove
ACLEntryReadOnlyException - if the entry contained is read-onlypublic IACLEntry removeUserEntry(int userID)
userID - the user ID of the user to remove
ACLEntryReadOnlyException - if the entry is present and read-only
java.lang.IllegalArgumentException - if an invalid user ID was passedpublic IACLEntry removeUserGroupEntry(int groupID)
groupID - the group ID of the group to remove
ACLEntryReadOnlyException - if the entry is present and read-only
java.lang.IllegalArgumentException - if an invalid group ID was passedpublic IACLEntry getUserEntry(int userID)
userID - the user ID of the user whose ACLEntry should be retrieved
java.lang.IllegalArgumentException - if an invalid user ID was passedpublic IACLEntry getUserGroupEntry(int groupID)
groupID - the group ID of the group whose ACLEntry should be retrieved
java.lang.IllegalArgumentException - if an invalid group ID was passedpublic boolean contains(IACLEntry entry)
entry - the ACLEntry to query for; cannot be null
java.lang.NullPointerException - if an a null ACLEntry was passed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©2008 Oracle® Corporation. All Rights Reserved.