public class UserPrivileges
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UserPrivileges.Privilege
Enumeration of all Privileges.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isPrivilegeSet(UserPrivileges.Privilege priv)
Returns
true if the specified privilege is enabled. |
void |
selectAll()
Enables all privileges.
|
void |
setPrivilege(UserPrivileges.Privilege priv,
boolean value)
Sets or clears a privilege.
|
void |
unselectAll()
Disables all privileges.
|
public boolean isPrivilegeSet(UserPrivileges.Privilege priv)
true
if the specified privilege is enabled.priv
- Privilegetrue
if enabled, false
otherwisepublic void setPrivilege(UserPrivileges.Privilege priv, boolean value)
priv
- Enum constantvalue
- true
to enable the privilege, false
to disable itpublic void selectAll()
public void unselectAll()