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
WGBackendException
WGAPIException
WGACLEntry getEntry(java.lang.String name) throws WGAPIException
name
- The user/group/role to retrieve an ACL entry forWGBackendException
WGAPIException
WGACLEntry createEntry(java.lang.String name, int type, int accessLevel) throws WGAPIException
name
- Name of usertype
- Name of entry type, use constants WGACL.TYPE_...accessLevel
- WGCreationException
WGAPIException
void remove(WGACLEntry entry) throws WGAPIException
entry
- The entry to removeWGBackendException
WGAPIException
void save(WGACLEntry entry) throws WGAPIException
entry
- The entry to saveWGBackendException
WGAPIException