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 StringField
Badge
static StringField
Description
static StringField
FirstName
static StringField
Language
static StringField
LastName
static RecordMeta<InternalUserRecord>
META
static StringField
Password
static LongField
PasswordDate
static StringField
PasswordHistory
static ReferenceField<UserSourceProfileRecord>
Profile
static LongField
ProfileId
static StringField
Schedule
static IdentityField
UserId
static StringField
Username
-
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 boolean
checkPassword(java.lang.String password)
static boolean
checkPassword(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()
long
getUserId()
java.lang.String
getUsername()
void
setPasswordSha256(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:SRecordInstance
This 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
meta
variable is thus not Serialized, but it would not be anyway as it is usually static.- Specified by:
getMeta
in 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)
-
-