public class Person extends Object
LspsRemote.findOrCreatePerson(String)
to obtain an instance of Person
.Modifier and Type | Method and Description |
---|---|
void |
addRole(RoleUnitName roleUnit)
Adds a given role.
|
void |
addRole(String role)
Adds a given role.
|
void |
assignSecurityRoles(String... roles)
Assign security roles.
|
boolean |
equals(Object obj) |
boolean |
exists()
Checks if the person exists.
|
String |
getId()
Returns the person id.
|
String |
getLoginName()
Returns person login name.
|
LspsRemote |
getRemote()
Returns the associated remote.
|
Set<RoleUnitName> |
getRoleUnitNames()
Returns a set of assigned role unit names.
|
List<Todo> |
getTodoList()
Returns the current to-do list of this person.
|
int |
hashCode() |
void |
removeAllRoles()
Removes all roles.
|
void |
removeAllSubstitutes()
Removes all substitutes.
|
void |
removeRole(RoleUnitName roleUnit)
Removes a given role.
|
void |
removeRole(String role)
Removes a given role.
|
void |
setPassword(String password)
Update persons password.
|
void |
setRoleUnitNames(Collection<RoleUnitName> roles)
Sets roles to this person.
|
void |
setSubstitutes(Person substitute)
Sets one substitute to the person.
|
String |
toString() |
public LspsRemote getRemote()
public String getId()
public String getLoginName()
public List<Todo> getTodoList()
public boolean exists()
true
if the person exists, false
otherwisepublic Set<RoleUnitName> getRoleUnitNames()
public void setRoleUnitNames(Collection<RoleUnitName> roles)
roles
- public void addRole(String role)
role
- public void addRole(RoleUnitName roleUnit)
roleUnit
- public void removeRole(String role)
role
- public void removeRole(RoleUnitName roleUnit)
roleUnit
- public void removeAllRoles()
public void setSubstitutes(Person substitute)
substitute
- public void removeAllSubstitutes()
public void setPassword(String password)
password
- public void assignSecurityRoles(String... roles)
roles
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.