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 enumEnumeration of all Privileges. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the specified privilege is enabled.voidEnables all NOT deprecated privileges.voidsetPrivilege(UserPrivileges.Privilege priv, boolean value) Sets or clears a privilege.protected voidvoidDisables all privileges.
-
Constructor Details
-
UserPrivileges
protected UserPrivileges(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
store
-
isPrivilegeSet
Returnstrueif the specified privilege is enabled.- Parameters:
priv- Privilege- Returns:
trueif enabled,falseotherwise
-
setPrivilege
Sets or clears a privilege.- Parameters:
priv- Enum constantvalue-trueto enable the privilege,falseto disable it
-
selectAll
public void selectAll()Enables all NOT deprecated privileges. -
unselectAll
public void unselectAll()Disables all privileges.
-