public interface WGACLCore
| Modifier and Type | Method and Description |
|---|---|
WGACLEntry |
createEntry(java.lang.String name,
int type,
int accessLevel)
Create a new ACL entry.
|
java.util.List<? extends WGACLEntry> |
getAllEntries()
Returns a list of all entries of this ACL (of type WGACLEntry)
|
WGACLEntry |
getEntry(java.lang.String name)
Returns an ACL entry of the given user/group/role name
|
void |
remove(WGACLEntry entry)
Removes an ACL entry
|
void |
save(WGACLEntry entry)
Saves/updates an ACL entry
|
java.util.List<? extends WGACLEntry> getAllEntries() throws WGAPIException
WGBackendExceptionWGAPIExceptionWGACLEntry getEntry(java.lang.String name) throws WGAPIException
name - The user/group/role to retrieve an ACL entry forWGBackendExceptionWGAPIExceptionWGACLEntry createEntry(java.lang.String name, int type, int accessLevel) throws WGAPIException
name - Name of usertype - Name of entry type, use constants WGACL.TYPE_...accessLevel - WGCreationExceptionWGAPIExceptionvoid remove(WGACLEntry entry) throws WGAPIException
entry - The entry to removeWGBackendExceptionWGAPIExceptionvoid save(WGACLEntry entry) throws WGAPIException
entry - The entry to saveWGBackendExceptionWGAPIException