@Entity public class UserEntity extends Object implements org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>
| Constructor and Description |
|---|
UserEntity()
Create an empty User object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(GroupEntity inGroup) |
void |
addRole(RoleEntity inRole) |
boolean |
equals(Object obj) |
List<GroupEntity> |
getGroups() |
Long |
getId()
Get the user's unique identifier.
|
List<RoleEntity> |
getRoles()
Get all the roles assigned to the user.
|
String |
getUsername()
Get the user's email address.
|
int |
hashCode() |
void |
removeGroup(GroupEntity inGroup) |
void |
removeRole(RoleEntity inRole) |
void |
setGroups(List<GroupEntity> inGroups) |
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 inUsername)
Set the user's email address.
|
String |
toString() |
public Long getId()
getId in interface org.eurekaclinical.standardapis.entity.EntitygetId 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.EntitysetId 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 inUsername)
setUsername in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>inUsername - A String containing the user's email address.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 list of roles to be assigned to the user.public void addRole(RoleEntity inRole)
addRole in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>public void removeRole(RoleEntity inRole)
removeRole in interface org.eurekaclinical.standardapis.entity.UserEntity<RoleEntity>public List<GroupEntity> getGroups()
public void setGroups(List<GroupEntity> inGroups)
public void addGroup(GroupEntity inGroup)
public void removeGroup(GroupEntity inGroup)
Copyright © 2015–2016 Emory University. All rights reserved.