Record Class UsersJsonResource
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.authentication.resources.UsersJsonResource
- Record Components:
users- A list of users available for this profile.roles- A list of roles available for this profile.
public record UsersJsonResource(List<InternalUserResource> users, List<InternalRoleResource> roles)
extends Record
Represents the data that gets stored in the users.json file for each internal user source
profile.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUsersJsonResource(List<InternalUserResource> users, List<InternalRoleResource> roles) Create a new instance ofUsersJsonResource -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.users()Returns the value of theusersrecord component.
-
Field Details
-
USERS_JSON
-
-
Constructor Details
-
UsersJsonResource
Create a new instance ofUsersJsonResource- Parameters:
users- theListofInternalUserResourceroles- theListofInternalRoleResource- Throws:
UsersJsonResourceException- if duplicate users sharing the same username / user ID or duplicate roles sharing the same role name / role ID are detected, or if a user has a role ID that does not exist in the list of roles
-
-
Method Details
-
toString
-
hashCode
-
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). -
users
-
roles
-