@ThreadSafe public interface PermissionOwner
The granting of permissions does not necessarily reflect an immediate action, rather it is a condition variable which is invoked by the handler for that particular permission.
Modifier and Type | Method and Description |
---|---|
void |
grantPermission(String perm)
Offers the permission holder a permission which they can hold
|
boolean |
opped()
Checks if the permission holder has operator status
|
boolean |
ownsPermission(String perm)
Observes the holder to see if it holds the specified permission
|
void |
revokePermission(String perm)
Removes the permission tag from the holder such that the next invocation of
ownsPermission(String)
returns false |
void grantPermission(String perm)
This has no effect if the holder already has the given permission
perm
- the new permission the holder should holdvoid revokePermission(String perm)
ownsPermission(String)
returns false
perm
- the permission to removeboolean ownsPermission(String perm)
perm
- the permission to check if heldtrue
if the permission is held, false
if it is notboolean opped()
true
to indicate that the holder is an operatorCopyright © 2016. All rights reserved.