public class PyUser extends java.lang.Object implements User
FirstName, Language, LastName, Notes, Password, Schedule, Username, USERNAME_PATTERNEMPTY| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Property<?> prop) |
<T> T |
get(Property<T> prop)
Retrieves the value of the property, or null if this set doesn't contain that property.
|
java.lang.Object |
get(java.lang.String propertyName) |
java.util.List<ContactInfo> |
getContactInfo()
Returns all of the contact information for the user
|
int |
getCount() |
java.io.Serializable |
getId()
An opaque identifier that can be used to identify this user.
|
<T> T |
getOrDefault(Property<T> prop) |
<T> T |
getOrElse(Property<T> property,
T value)
Get the value for a given
Property, or else fall back to value if it's not present. |
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<Property<?>> |
getProperties() |
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
|
java.util.List<PropertyValue> |
getValues() |
boolean |
isExtended(Property<?> prop)
Returns whether this property set contains a value for the prop, and the prop was actually inherited.
|
boolean |
isInherited(Property<?> prop)
Indicates whether the property was inherited from a parent type.
|
java.util.Iterator<PropertyValue> |
iterator() |
void |
merge(PropertySet other,
boolean localOnly)
Merges the values from other collection into this one.
|
void |
remove(Property<?> prop) |
<T> void |
set(Property<T> prop,
T value) |
void |
set(PropertyValue propValue) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuilder, extend, getExtension, newDefaultInstance, newExtensionpublic PyUser(User user)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object get(java.lang.String propertyName)
public boolean contains(Property<?> prop)
contains in interface PropertyValueSourcepublic <T> T getOrDefault(Property<T> prop)
getOrDefault in interface PropertyValueSourceProperty.getDefaultValue() if not present.public <T> T get(Property<T> prop)
PropertyValueSourceget in interface PropertyValueSourcepublic java.util.Iterator<PropertyValue> iterator()
iterator in interface java.lang.Iterable<PropertyValue>public <T> void set(Property<T> prop, T value)
set in interface MutablePropertyValueSourcepublic <T> T getOrElse(Property<T> property, T value)
PropertyValueSourceProperty, or else fall back to value if it's not present.getOrElse in interface PropertyValueSourceproperty - The Property for which a value is to be retrieved.value - The value to default to if property isn't present.public void set(PropertyValue propValue)
set in interface MutablePropertyValueSourcepublic void remove(Property<?> prop)
remove in interface MutablePropertyValueSourcepublic java.util.Collection<Property<?>> getProperties()
getProperties in interface PropertyValueSourcepublic java.util.List<PropertyValue> getValues()
getValues in interface PropertyValueSourcepublic boolean isExtended(Property<?> prop)
PropertySetisExtended in interface PropertySetpublic boolean isInherited(Property<?> prop)
PropertySetisInherited in interface PropertySetpublic void merge(PropertySet other, boolean localOnly)
Mergablemerge in interface Mergable<PropertySet>merge in interface MutablePropertyValueSourcepublic java.lang.String getProfileName()
UsergetProfileName in interface Userpublic java.io.Serializable getId()
Userpublic java.util.Collection<java.lang.String> getRoles()
Userpublic java.util.List<ContactInfo> getContactInfo()
UsergetContactInfo in interface Userpublic java.util.List<ScheduleAdjustment> getScheduleAdjustments()
UsergetScheduleAdjustments in interface Userpublic QualifiedPath getPath()
User