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>contactInfoprotected java.io.Serializableidprotected java.lang.StringprofileNameprotected java.util.Collection<java.lang.String>rolesprotected 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 booleanequals(java.lang.Object obj)java.util.List<ContactInfo>getContactInfo()Returns all of the contact information for the userjava.io.SerializablegetId()An opaque identifier that can be used to identify this user.QualifiedPathgetPath()Generate an path that unambiguously references this userjava.lang.StringgetProfileName()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 adjustmentsinthashCode()BasicUsersetContactInfo(java.util.List<ContactInfo> contactInfo)BasicUsersetRoles(java.util.Collection<java.lang.String> roles)BasicUsersetScheduleAdjustments(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:
equalsin classBasicPropertySet
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getProfileName
public java.lang.String getProfileName()
Description copied from interface:UserThe name of the user management profile this user was retrieved from.- Specified by:
getProfileNamein interfaceUser
-
getId
public java.io.Serializable getId()
Description copied from interface:UserAn 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:UserReturns all of the roles this user is a has. Not null.
-
getContactInfo
@Nonnull public java.util.List<ContactInfo> getContactInfo()
Description copied from interface:UserReturns all of the contact information for the user- Specified by:
getContactInfoin interfaceUser
-
getScheduleAdjustments
@Nonnull public java.util.List<ScheduleAdjustment> getScheduleAdjustments()
Description copied from interface:UserReturns all of this user's upcoming schedule adjustments- Specified by:
getScheduleAdjustmentsin interfaceUser
-
getPath
public QualifiedPath getPath()
Description copied from interface:UserGenerate an path that unambiguously references this user
-
-