public class UserState extends Object implements Serializable
| Constructor and Description |
|---|
UserState(KcPerson person,
List<Role> roles)
Constructs a UserState.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAssignments()
Clear the assignments.
|
KcPerson |
getPerson() |
List<RoleState> |
getRoleStates() |
boolean |
hasAnyRole()
Is the user assigned to any role?
|
boolean |
isRoleAssigned(String roleName)
Is the user assigned to the given role?
|
void |
setAssigned(String roleName,
boolean assigned)
Set the assigned value of a given role.
|
void |
setSaved(String roleName,
boolean saved)
Set the saved state for a role.
|
public KcPerson getPerson()
public void setSaved(String roleName, boolean saved)
roleName - the name of the rolesaved - the new saved statepublic void setAssigned(String roleName, boolean assigned)
roleName - the name of the roleassigned - the new assigned valuepublic boolean isRoleAssigned(String roleName)
roleName - the name of the rolepublic void clearAssignments()
public boolean hasAnyRole()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.