public class Person
extends java.lang.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(java.lang.String role)
Adds a given role.
|
void |
assignSecurityRoles(java.lang.String... roles)
Assign security roles.
|
boolean |
equals(java.lang.Object obj) |
boolean |
exists()
Checks if the person exists.
|
java.lang.String |
getId()
Returns the person id.
|
java.lang.String |
getLoginName()
Returns person login name.
|
LspsRemote |
getRemote()
Returns the associated remote.
|
java.util.Set<RoleUnitName> |
getRoleUnitNames()
Returns a set of assigned role unit names.
|
java.util.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(java.lang.String role)
Removes a given role.
|
void |
setPassword(java.lang.String password)
Update persons password.
|
void |
setRoleUnitNames(java.util.Collection<RoleUnitName> roles)
Sets roles to this person.
|
void |
setSubstitutes(Person substitute)
Sets one substitute to the person.
|
java.lang.String |
toString() |
public LspsRemote getRemote()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getId()
public java.lang.String getLoginName()
public java.util.List<Todo> getTodoList()
public boolean exists()
true
if the person exists, false
otherwisepublic java.util.Set<RoleUnitName> getRoleUnitNames()
public void setRoleUnitNames(java.util.Collection<RoleUnitName> roles)
roles
- public void addRole(java.lang.String role)
role
- public void addRole(RoleUnitName roleUnit)
roleUnit
- public void removeRole(java.lang.String role)
role
- public void removeRole(RoleUnitName roleUnit)
roleUnit
- public void removeAllRoles()
public void setSubstitutes(Person substitute)
substitute
- public void removeAllSubstitutes()
public java.lang.String toString()
toString
in class java.lang.Object
public void setPassword(java.lang.String password)
password
- public void assignSecurityRoles(java.lang.String... roles)
roles
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.