|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents an Access Control List that specifies which groups and users can access this object. Note that adding a non-existent user or group ID will succeed until the ACL has been applied via the ObjectManager/DocumentManager update(int, IACL) method, whereby the IACL instance will have all its contained entries refreshed.
| 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 passed an invalid user ID
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 passed an invalid group IDpublic 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 passed an invalid user IDpublic 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 passed an invalid group IDpublic IACLEntry getUserEntry(int userID)
userID - the user ID of the user of which to retrieve the entry for
java.lang.IllegalArgumentException - if passed an invalid user IDpublic IACLEntry getUserGroupEntry(int groupID)
groupID - the group ID of the group of which to retrieve the entry for
java.lang.IllegalArgumentException - if passed an invalid group IDpublic boolean contains(IACLEntry entry)
entry - the entry to query for; cannot be null.
java.lang.NullPointerException - if passed a null ACLEntry.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©2007 BEA Systems, Inc. All Rights Reserved.