@Entity public class UserEntity extends Object implements org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>, UserEntityVisitable
| Constructor and Description |
|---|
UserEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(UserEntityVisitor userEntityVisitor)
Performs some processing on a user entity.
|
void |
addRole(RoleEntity role) |
Long |
getId()
Get the user's unique identifier.
|
List<RoleEntity> |
getRoles() |
String |
getUsername() |
void |
removeRole(RoleEntity role) |
void |
setId(Long inId)
Set the user's unique identifier.
|
void |
setRoles(List<RoleEntity> inRoles)
Set the roles assigned to the current user.
|
void |
setUsername(String username) |
String |
toString() |
public Long getId()
getId in interface org.eurekaclinical.standardapis.entity.Entity<Long>getId in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>Long representing the user's unique identifier.public void setId(Long inId)
setId in interface org.eurekaclinical.standardapis.entity.Entity<Long>setId in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>inId - A Long representing the user's unique identifier.public String getUsername()
getUsername in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>public void setUsername(String username)
setUsername in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>public List<RoleEntity> getRoles()
getRoles in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>public void setRoles(List<RoleEntity> inRoles)
setRoles in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>inRoles - A Set of roles to be assigned to the user.public void accept(UserEntityVisitor userEntityVisitor)
UserEntityVisitableaccept in interface UserEntityVisitableuserEntityVisitor - a UserEntityVisitor.public void addRole(RoleEntity role)
addRole in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>public void removeRole(RoleEntity role)
removeRole in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>Copyright © 2012–2018 Emory University. All rights reserved.