Package com.avoka.tm.vo.v1
Record Class User
java.lang.Object
java.lang.Record
com.avoka.tm.vo.v1.User
public record User(String loginName, String userKey, String givenName, String familyName, String email, String mobile, List<String> groups, Map<String,Object> prefs, Map<String,Object> profiles, List<Map<String,Object>> roles)
extends Record
User Object Model
- Since:
- 24.10.0
-
Constructor Summary
ConstructorDescriptionUser
(com.avoka.fc.core.entity.UserAccount userAccount, com.avoka.fc.core.entity.Portal portal) User
(String loginName, String userKey, String givenName, String familyName, String email, String mobile, List<String> groups, Map<String, Object> prefs, Map<String, Object> profiles, List<Map<String, Object>> roles) Creates an instance of aUser
record class. -
Method Summary
Modifier and TypeMethodDescriptionemail()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefamilyName
record component.Returns the value of thegivenName
record component.groups()
Returns the value of thegroups
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theloginName
record component.mobile()
Returns the value of themobile
record component.prefs()
Returns the value of theprefs
record component.profiles()
Returns the value of theprofiles
record component.roles()
Returns the value of theroles
record component.final String
toString()
Returns a string representation of this record class.userKey()
Returns the value of theuserKey
record component.
-
Constructor Details
-
User
public User(com.avoka.fc.core.entity.UserAccount userAccount, com.avoka.fc.core.entity.Portal portal) -
User
public User(String loginName, String userKey, String givenName, String familyName, String email, String mobile, List<String> groups, Map<String, Object> prefs, Map<String, Object> profiles, List<Map<String, Object>> roles) Creates an instance of aUser
record class.- Parameters:
loginName
- the value for theloginName
record componentuserKey
- the value for theuserKey
record componentgivenName
- the value for thegivenName
record componentfamilyName
- the value for thefamilyName
record componentemail
- the value for theemail
record componentmobile
- the value for themobile
record componentgroups
- the value for thegroups
record componentprefs
- the value for theprefs
record componentprofiles
- the value for theprofiles
record componentroles
- the value for theroles
record component
-
-
Method Details
-
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)
. -
loginName
Returns the value of theloginName
record component.- Returns:
- the value of the
loginName
record component
-
userKey
Returns the value of theuserKey
record component.- Returns:
- the value of the
userKey
record component
-
givenName
Returns the value of thegivenName
record component.- Returns:
- the value of the
givenName
record component
-
familyName
Returns the value of thefamilyName
record component.- Returns:
- the value of the
familyName
record component
-
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
mobile
Returns the value of themobile
record component.- Returns:
- the value of the
mobile
record component
-
groups
Returns the value of thegroups
record component.- Returns:
- the value of the
groups
record component
-
prefs
Returns the value of theprefs
record component.- Returns:
- the value of the
prefs
record component
-
profiles
Returns the value of theprofiles
record component.- Returns:
- the value of the
profiles
record component
-
roles
Returns the value of theroles
record component.- Returns:
- the value of the
roles
record component
-