Class BasicUser
- java.lang.Object
-
- com.inductiveautomation.ignition.common.config.BasicPropertySet
-
- com.inductiveautomation.ignition.common.user.BasicUser
-
- All Implemented Interfaces:
Countable
,Extendable<PropertySet>
,Mergable<PropertySet>
,MutablePropertyValueSource
,ObservablePropertySet
,PropertySet
,PropertyValueSource
,User
,java.io.Serializable
,java.lang.Iterable<PropertyValue>
- Direct Known Subclasses:
BasicAuthenticatedUser
public class BasicUser extends BasicPropertySet implements User
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
BasicPropertySet.Builder
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<ContactInfo>
getContactInfo()
Returns all of the contact information for the userjava.io.Serializable
getId()
An opaque identifier that can be used to identify this user.QualifiedPath
getPath()
Generate an path that unambiguously references this userjava.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 adjustmentsint
hashCode()
BasicUser
setContactInfo(java.util.List<ContactInfo> contactInfo)
BasicUser
setRoles(java.util.Collection<java.lang.String> roles)
BasicUser
setScheduleAdjustments(java.util.List<ScheduleAdjustment> scheduleAdjustments)
-
Methods inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSource
merge, remove, set, set
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
extend, getExtension, isExtended, isInherited, newDefaultInstance, newExtension
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
contains, get, getNonNull, getNonNull, getOrDefault, getOrElse, getProperties, getValues
-
-
-
-
Field Detail
-
profileName
protected java.lang.String profileName
-
id
protected java.io.Serializable id
-
roles
protected java.util.Collection<java.lang.String> roles
-
contactInfo
protected java.util.List<ContactInfo> contactInfo
-
scheduleAdjustments
protected java.util.List<ScheduleAdjustment> scheduleAdjustments
-
-
Constructor Detail
-
BasicUser
public BasicUser(java.lang.String profileName, java.io.Serializable id, java.util.Collection<java.lang.String> roles)
-
BasicUser
public BasicUser(java.lang.String profileName, java.io.Serializable id, java.util.Collection<java.lang.String> roles, java.util.List<ContactInfo> contactInfo)
-
-
Method Detail
-
setRoles
public BasicUser setRoles(java.util.Collection<java.lang.String> roles)
-
setContactInfo
public BasicUser setContactInfo(java.util.List<ContactInfo> contactInfo)
-
setScheduleAdjustments
public BasicUser setScheduleAdjustments(java.util.List<ScheduleAdjustment> scheduleAdjustments)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classBasicPropertySet
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getProfileName
public java.lang.String getProfileName()
Description copied from interface:User
The name of the user management profile this user was retrieved from.- Specified by:
getProfileName
in interfaceUser
-
getId
public java.io.Serializable getId()
Description copied from interface:User
An opaque identifier that can be used to identify this user. Only valid (unique) within the context of the originating user profile
-
getRoles
@Nonnull public java.util.Collection<java.lang.String> getRoles()
Description copied from interface:User
Returns all of the roles this user is a has. Not null.
-
getContactInfo
@Nonnull public java.util.List<ContactInfo> getContactInfo()
Description copied from interface:User
Returns all of the contact information for the user- Specified by:
getContactInfo
in interfaceUser
-
getScheduleAdjustments
@Nonnull public java.util.List<ScheduleAdjustment> getScheduleAdjustments()
Description copied from interface:User
Returns all of this user's upcoming schedule adjustments- Specified by:
getScheduleAdjustments
in interfaceUser
-
getPath
public QualifiedPath getPath()
Description copied from interface:User
Generate an path that unambiguously references this user
-
-