Record Class InternalUserResource
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.authentication.resources.InternalUserResource
public record InternalUserResource(String uuid, String username, String firstName, String lastName, String schedule, String language, String description, String password, Date passwordDate, List<String> passwordHistory, String badge, Date createdDate, Date lastModifiedDate, List<String> roles, List<InternalUserExtraPropsResource> extraProps, List<InternalScheduleAdjustmentResource> scheduleAdjustments, List<InternalContactInfoResource> contactInfos)
extends Record
Represents a user in the internal user source.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInternalUserResource(String uuid, String username, String firstName, String lastName, String schedule, String language, String description, String password, Date passwordDate, List<String> passwordHistory, String badge, Date createdDate, Date lastModifiedDate, List<String> roles, List<InternalUserExtraPropsResource> extraProps, List<InternalScheduleAdjustmentResource> scheduleAdjustments, List<InternalContactInfoResource> contactInfos) Constructor for theInternalUserResourceclass. -
Method Summary
Modifier and TypeMethodDescriptionbadge()Returns the value of thebadgerecord component.booleancheckPassword(String password) Check the password for this object against the given password.static booleancheckPassword(String password, String hashedPass) Checks if the given password matches the hashed password.Returns the value of thecontactInfosrecord component.Returns the value of thecreatedDaterecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextraPropsrecord component.Returns the value of thefirstNamerecord component.final inthashCode()Returns a hash code value for this object.booleanCheck if the user has the given role.language()Returns the value of thelanguagerecord component.Returns the value of thelastModifiedDaterecord component.lastName()Returns the value of thelastNamerecord component.password()Returns the value of thepasswordrecord component.Returns the value of thepasswordDaterecord component.Returns the value of thepasswordHistoryrecord component.roles()Returns the value of therolesrecord component.schedule()Returns the value of theschedulerecord component.Returns the value of thescheduleAdjustmentsrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
InternalUserResource
public InternalUserResource(String uuid, String username, String firstName, String lastName, String schedule, String language, String description, String password, Date passwordDate, List<String> passwordHistory, String badge, Date createdDate, Date lastModifiedDate, List<String> roles, List<InternalUserExtraPropsResource> extraProps, List<InternalScheduleAdjustmentResource> scheduleAdjustments, List<InternalContactInfoResource> contactInfos) Constructor for theInternalUserResourceclass. It is recommended you use theInternalUserResource.InternalUserBuilderclass to create instances of this class instead of this constructor.- Parameters:
uuid- The UUID of the user.username- The username of the user.firstName- The first name of the user.lastName- The last name of the user.schedule- The schedule of the user.language- The language of the user.description- The description of the user.password- The password of the user.passwordDate- The date the password was hashed.passwordHistory- The password history.badge- The badge of the user.createdDate- The date the user was created.lastModifiedDate- The date the user was last modified.roles- The roles of the user (UUIDs).extraProps- The extra properties of the user.scheduleAdjustments- The schedule adjustments of the user.contactInfos- The contact information of the user.
-
-
Method Details
-
checkPassword
Checks if the given password matches the hashed password.- Parameters:
password- The password to check.hashedPass- The hashed password to check against.- Returns:
- True if the password matches the hashed password, false otherwise.
-
checkPassword
Check the password for this object against the given password.- Parameters:
password- The password to check.- Returns:
- True if the password matches the stored password, false otherwise.
-
hasRole
Check if the user has the given role.- Parameters:
role- The role to check for.- Returns:
- True if the user has the role, false otherwise.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
firstName
Returns the value of thefirstNamerecord component.- Returns:
- the value of the
firstNamerecord component
-
lastName
Returns the value of thelastNamerecord component.- Returns:
- the value of the
lastNamerecord component
-
schedule
Returns the value of theschedulerecord component.- Returns:
- the value of the
schedulerecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
passwordDate
Returns the value of thepasswordDaterecord component.- Returns:
- the value of the
passwordDaterecord component
-
passwordHistory
Returns the value of thepasswordHistoryrecord component.- Returns:
- the value of the
passwordHistoryrecord component
-
badge
Returns the value of thebadgerecord component.- Returns:
- the value of the
badgerecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
lastModifiedDate
Returns the value of thelastModifiedDaterecord component.- Returns:
- the value of the
lastModifiedDaterecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-
extraProps
Returns the value of theextraPropsrecord component.- Returns:
- the value of the
extraPropsrecord component
-
scheduleAdjustments
Returns the value of thescheduleAdjustmentsrecord component.- Returns:
- the value of the
scheduleAdjustmentsrecord component
-
contactInfos
Returns the value of thecontactInfosrecord component.- Returns:
- the value of the
contactInfosrecord component
-