public class UserPrivileges
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UserPrivileges.Privilege
Enumeration of all Privileges.
|
Modifier | Constructor and Description |
---|---|
protected |
UserPrivileges(com.uc4.util.XMLDocument doc) |
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.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement) |
void |
unselectAll()
Disables all privileges.
|
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
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()