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
ConstructorsConstructorDescriptionUser(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 aUserrecord class. -
Method Summary
Modifier and TypeMethodDescriptionemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefamilyNamerecord component.Returns the value of thegivenNamerecord component.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theloginNamerecord component.mobile()Returns the value of themobilerecord component.prefs()Returns the value of theprefsrecord component.profiles()Returns the value of theprofilesrecord component.roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.userKey()Returns the value of theuserKeyrecord 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 aUserrecord class.- Parameters:
loginName- the value for theloginNamerecord componentuserKey- the value for theuserKeyrecord componentgivenName- the value for thegivenNamerecord componentfamilyName- the value for thefamilyNamerecord componentemail- the value for theemailrecord componentmobile- the value for themobilerecord componentgroups- the value for thegroupsrecord componentprefs- the value for theprefsrecord componentprofiles- the value for theprofilesrecord componentroles- the value for therolesrecord 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 theloginNamerecord component.- Returns:
- the value of the
loginNamerecord component
-
userKey
Returns the value of theuserKeyrecord component.- Returns:
- the value of the
userKeyrecord component
-
givenName
Returns the value of thegivenNamerecord component.- Returns:
- the value of the
givenNamerecord component
-
familyName
Returns the value of thefamilyNamerecord component.- Returns:
- the value of the
familyNamerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
mobile
Returns the value of themobilerecord component.- Returns:
- the value of the
mobilerecord component
-
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-
prefs
Returns the value of theprefsrecord component.- Returns:
- the value of the
prefsrecord component
-
profiles
Returns the value of theprofilesrecord component.- Returns:
- the value of the
profilesrecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-