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 theInternalUserResource
class. -
Method Summary
Modifier and TypeMethodDescriptionbadge()
Returns the value of thebadge
record component.boolean
checkPassword
(String password) Check the password for this object against the given password.static boolean
checkPassword
(String password, String hashedPass) Checks if the given password matches the hashed password.Returns the value of thecontactInfos
record component.Returns the value of thecreatedDate
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theextraProps
record component.Returns the value of thefirstName
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Check if the user has the given role.language()
Returns the value of thelanguage
record component.Returns the value of thelastModifiedDate
record component.lastName()
Returns the value of thelastName
record component.password()
Returns the value of thepassword
record component.Returns the value of thepasswordDate
record component.Returns the value of thepasswordHistory
record component.roles()
Returns the value of theroles
record component.schedule()
Returns the value of theschedule
record component.Returns the value of thescheduleAdjustments
record component.final String
toString()
Returns a string representation of this record class.username()
Returns the value of theusername
record component.uuid()
Returns the value of theuuid
record 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 theInternalUserResource
class. It is recommended you use theInternalUserResource.InternalUserBuilder
class 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 theuuid
record component.- Returns:
- the value of the
uuid
record component
-
username
Returns the value of theusername
record component.- Returns:
- the value of the
username
record component
-
firstName
Returns the value of thefirstName
record component.- Returns:
- the value of the
firstName
record component
-
lastName
Returns the value of thelastName
record component.- Returns:
- the value of the
lastName
record component
-
schedule
Returns the value of theschedule
record component.- Returns:
- the value of the
schedule
record component
-
language
Returns the value of thelanguage
record component.- Returns:
- the value of the
language
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
password
Returns the value of thepassword
record component.- Returns:
- the value of the
password
record component
-
passwordDate
Returns the value of thepasswordDate
record component.- Returns:
- the value of the
passwordDate
record component
-
passwordHistory
Returns the value of thepasswordHistory
record component.- Returns:
- the value of the
passwordHistory
record component
-
badge
Returns the value of thebadge
record component.- Returns:
- the value of the
badge
record component
-
createdDate
Returns the value of thecreatedDate
record component.- Returns:
- the value of the
createdDate
record component
-
lastModifiedDate
Returns the value of thelastModifiedDate
record component.- Returns:
- the value of the
lastModifiedDate
record component
-
roles
Returns the value of theroles
record component.- Returns:
- the value of the
roles
record component
-
extraProps
Returns the value of theextraProps
record component.- Returns:
- the value of the
extraProps
record component
-
scheduleAdjustments
Returns the value of thescheduleAdjustments
record component.- Returns:
- the value of the
scheduleAdjustments
record component
-
contactInfos
Returns the value of thecontactInfos
record component.- Returns:
- the value of the
contactInfos
record component
-