public class UserInfo extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_USER_NAME
Name of property used to store the admin username.
|
static UserInfo |
ROOT
The admin user.
|
Constructor and Description |
---|
UserInfo()
The default constructor.
|
UserInfo(String id,
String firstName,
String lastName,
String email,
String orgId,
Set<Property> properties,
String password)
Creates a new UserInfo with the given information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addProperty(Property e) |
boolean |
equals(Object obj) |
String |
getEmail() |
String |
getFirstName() |
String |
getLastName() |
String |
getOrganizationId() |
String |
getPassword() |
Set<Property> |
getProperties() |
Property |
getProperty(String key) |
String |
getUid() |
int |
hashCode() |
boolean |
removeProperty(Object o) |
void |
setEmail(String email) |
void |
setFirstName(String firstName) |
void |
setLastName(String lastName) |
void |
setOrganizationId(String organizationId) |
void |
setPassword(String password) |
void |
setProperties(Set<Property> properties) |
void |
setUid(String id) |
String |
toString() |
public static final String ADMIN_USER_NAME
public static final UserInfo ROOT
public UserInfo()
public UserInfo(String id, String firstName, String lastName, String email, String orgId, Set<Property> properties, String password)
id
- The unique id.firstName
- The user's name.lastName
- The user's last name.email
- The user's email address.orgId
- The id of the organization this user belongs to.properties
- The additional properties for the user.password
- the user's password.public boolean addProperty(Property e)
e
- The Property to add.List.add(java.lang.Object)
public String getEmail()
public String getFirstName()
public String getLastName()
public String getOrganizationId()
public String getPassword()
public Property getProperty(String key)
key
- The key.public String getUid()
public boolean removeProperty(Object o)
o
- The Property to remove.List.remove(java.lang.Object)
public void setEmail(String email)
email
- the email to setpublic void setFirstName(String firstName)
firstName
- the firstName to setpublic void setLastName(String lastName)
lastName
- the lastName to setpublic void setOrganizationId(String organizationId)
organizationId
- the organizationId to setpublic void setPassword(String password)
password
- the password to setpublic void setProperties(Set<Property> properties)
properties
- the properties to setpublic void setUid(String id)
id
- the id to setCopyright © 2015 Collaborative Software Development Laboratory. All rights reserved.