Class InternalUserRecord
- java.lang.Object
-
- simpleorm.dataset.SRecordInstance
-
- com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
-
- com.inductiveautomation.ignition.gateway.authentication.records.InternalUserRecord
-
- All Implemented Interfaces:
java.io.Serializable
public class InternalUserRecord extends PersistentRecord
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class simpleorm.dataset.SRecordInstance
SRecordInstance.BrokenOptimisticLockException
-
-
Field Summary
Fields Modifier and Type Field Description static StringFieldBadgestatic StringFieldDescriptionstatic StringFieldFirstNamestatic StringFieldLanguagestatic StringFieldLastNamestatic RecordMeta<InternalUserRecord>METAstatic StringFieldPasswordstatic LongFieldPasswordDatestatic StringFieldPasswordHistorystatic ReferenceField<UserSourceProfileRecord>Profilestatic LongFieldProfileIdstatic StringFieldSchedulestatic IdentityFieldUserIdstatic StringFieldUsername-
Fields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
-
-
Constructor Summary
Constructors Constructor Description InternalUserRecord()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckPassword(java.lang.String password)static booleancheckPassword(java.lang.String password, java.lang.String hashedPass)RecordMeta<?>getMeta()This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance.java.util.LinkedList<java.lang.String>getPasswordHistory()longgetUserId()java.lang.StringgetUsername()voidsetPasswordSha256(java.lang.String password, int maxHistory)-
Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
getBoolean, getDoubleObj, getIntObj, getLongObj, getString, installDefaultValues
-
Methods inherited from class simpleorm.dataset.SRecordInstance
allFields, assertNewRow, assertNotNewRow, defineInitialValue, deleteRecord, doQueryRecord, doValidateRecord, equals, findReference, findReference, findReference, findReference, getBigDecimal, getBytes, getDataSet, getDate, getDouble, getEnum, getInitialValue, getInt, getLogger, getLong, getObject, getRawArrayValue, getReferenceNoQuery, getTime, getTimestamp, hashCode, isAttached, isDeleted, isDirty, isDirty, isEmpty, isNewRow, isNotDestroyed, isNull, isReadOnly, isValid, onQueryRecord, onValidateField, onValidateRecord, setBigDecimal, setBoolean, setBytes, setDate, setDirty, setDouble, setEmpty, setEnum, setInt, setLong, setNewRow, setNull, setObject, setObject, setRawArrayValue, setReadOnly, setReference, setString, setTime, setTimestamp, toString, validatePrimaryKeys, wasInCache
-
-
-
-
Field Detail
-
META
public static final RecordMeta<InternalUserRecord> META
-
UserId
public static final IdentityField UserId
-
ProfileId
public static final LongField ProfileId
-
Profile
public static final ReferenceField<UserSourceProfileRecord> Profile
-
Username
public static final StringField Username
-
FirstName
public static final StringField FirstName
-
LastName
public static final StringField LastName
-
Schedule
public static final StringField Schedule
-
Language
public static final StringField Language
-
Password
public static final StringField Password
-
PasswordDate
public static final LongField PasswordDate
-
PasswordHistory
public static final StringField PasswordHistory
-
Description
public static final StringField Description
-
Badge
public static final StringField Badge
-
-
Method Detail
-
getMeta
public RecordMeta<?> getMeta()
Description copied from class:SRecordInstanceThis must be defined in every user record's definition to access the SRecord which provides the meta data for this instance. It is normally defined as:-SRecord getMeta() { return meta; };The actual
metavariable is thus not Serialized, but it would not be anyway as it is usually static.- Specified by:
getMetain classPersistentRecord
-
getUserId
public long getUserId()
-
getUsername
public java.lang.String getUsername()
-
setPasswordSha256
public void setPasswordSha256(java.lang.String password, int maxHistory)
-
getPasswordHistory
public java.util.LinkedList<java.lang.String> getPasswordHistory()
-
checkPassword
public boolean checkPassword(java.lang.String password)
-
checkPassword
public static boolean checkPassword(java.lang.String password, java.lang.String hashedPass)
-
-