public class BasicUser extends BasicPropertySet implements User
BasicPropertySet.Builder
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ContactInfo> |
contactInfo |
protected java.io.Serializable |
id |
protected java.lang.String |
profileName |
protected java.util.Collection<java.lang.String> |
roles |
protected java.util.List<ScheduleAdjustment> |
scheduleAdjustments |
FirstName, Language, LastName, Notes, Password, Schedule, Username, USERNAME_PATTERN
EMPTY
Constructor and Description |
---|
BasicUser(java.lang.String profileName,
java.io.Serializable id,
java.util.Collection<java.lang.String> roles) |
BasicUser(java.lang.String profileName,
java.io.Serializable id,
java.util.Collection<java.lang.String> roles,
java.util.List<ContactInfo> contactInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<ContactInfo> |
getContactInfo()
Returns all of the contact information for the user
|
java.io.Serializable |
getId()
An opaque identifier that can be used to identify this user.
|
QualifiedPath |
getPath()
Generate an path that unambiguously references this user
|
java.lang.String |
getProfileName()
The name of the user management profile this user was retrieved from.
|
java.util.Collection<java.lang.String> |
getRoles()
Returns all of the roles this user is a has.
|
java.util.List<ScheduleAdjustment> |
getScheduleAdjustments()
Returns all of this user's upcoming schedule adjustments
|
int |
hashCode() |
BasicUser |
setContactInfo(java.util.List<ContactInfo> contactInfo) |
BasicUser |
setScheduleAdjustments(java.util.List<ScheduleAdjustment> scheduleAdjustments) |
addPropertyChangeListener, addPropertyChangeListener, change, coerceValue, contains, firePropertyChange, get, getCount, getExtension, getOrDefault, getOrElse, getProperties, getRaw, getRawValueMap, getValues, isExtended, isInherited, iterator, of, remove, removePropertyChangeListener, removePropertyChangeListener, set, set, setDirect, setImpl, setRawValueMap, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
builder, extend, getExtension, isExtended, isInherited, newDefaultInstance, newExtension
merge, remove, set, set
contains, get, getOrDefault, getOrElse, getProperties, getValues
protected java.lang.String profileName
protected java.io.Serializable id
protected java.util.Collection<java.lang.String> roles
protected java.util.List<ContactInfo> contactInfo
protected java.util.List<ScheduleAdjustment> scheduleAdjustments
public BasicUser(java.lang.String profileName, java.io.Serializable id, java.util.Collection<java.lang.String> roles)
public BasicUser(java.lang.String profileName, java.io.Serializable id, java.util.Collection<java.lang.String> roles, java.util.List<ContactInfo> contactInfo)
public BasicUser setContactInfo(java.util.List<ContactInfo> contactInfo)
public BasicUser setScheduleAdjustments(java.util.List<ScheduleAdjustment> scheduleAdjustments)
public boolean equals(java.lang.Object obj)
equals
in class BasicPropertySet
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getProfileName()
User
getProfileName
in interface User
public java.io.Serializable getId()
User
public java.util.Collection<java.lang.String> getRoles()
User
public java.util.List<ContactInfo> getContactInfo()
User
getContactInfo
in interface User
public java.util.List<ScheduleAdjustment> getScheduleAdjustments()
User
getScheduleAdjustments
in interface User
public QualifiedPath getPath()
User