Package com.uc4.api.objects
Class UserPrivileges
java.lang.Object
com.uc4.api.objects.UserPrivileges
This class represents the privileges of a user.
It serves to allow or to deny the User access to system functions.
Privileges are an integral part of the Authorization System.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumeration of all Privileges. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the specified privilege is enabled.void
Enables all NOT deprecated privileges.void
setPrivilege
(UserPrivileges.Privilege priv, boolean value) Sets or clears a privilege.protected void
void
Disables all privileges.
-
Constructor Details
-
UserPrivileges
protected UserPrivileges(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
store
-
isPrivilegeSet
Returnstrue
if the specified privilege is enabled.- Parameters:
priv
- Privilege- Returns:
true
if enabled,false
otherwise
-
setPrivilege
Sets or clears a privilege.- Parameters:
priv
- Enum constantvalue
-true
to enable the privilege,false
to disable it
-
selectAll
public void selectAll()Enables all NOT deprecated privileges. -
unselectAll
public void unselectAll()Disables all privileges.
-