public class User extends BaseManager
AuthenticationManager.getUser(String)
,
AuthenticationManager.createUser(String)
or AuthenticationManager.duplicateUser(String,
String)
.Modifier and Type | Class and Description |
---|---|
static class |
User.RoleNames
Manages the roles a user is assigned to.
|
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
void |
addRole(Role role)
Adds this user to the specified role.
|
int |
getDepartmentID()
Returns the ID of the department of this user.
|
FieldValues |
getFieldValues()
Returns the container representing all field values of this user.
|
java.lang.String |
getName()
Returns the User name.
|
User.RoleNames |
getRoleNames()
Returns the names of roles this user is assigned to.
|
boolean |
isActive()
Return whether this user is able to log in.
|
void |
removeRole(java.lang.String roleName)
Removes a role from the roles assigned to this user.
|
void |
save()
Saves the changes for this user.
|
void |
setDepartmentID(int id)
Configures the ID of the department of this user.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, toString, writeAsXML
public java.lang.String getName()
public int getDepartmentID()
public void setDepartmentID(int id)
id
- ID of the department of this userpublic boolean isActive()
public FieldValues getFieldValues()
public User.RoleNames getRoleNames()
public void addRole(Role role)
role
- the role to add this user to.public void removeRole(java.lang.String roleName)
roleName
- the role namepublic void save()
save
in class BaseManager
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.