Record Class OauthUsersService.AuthorizedUser
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.OauthUsersService.AuthorizedUser
- Enclosing class:
OauthUsersService
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorizedUser(String name, String emailPrimary, String profilePicUrl, String userId, String tenantId, Map<String, OauthUsersService.Resource> resources, boolean hasAdminMenu) Creates an instance of aAuthorizedUserrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theemailPrimaryrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasAdminMenurecord component.final inthashCode()Returns a hash code value for this object.booleanname()Returns the value of thenamerecord component.Returns the value of theprofilePicUrlrecord component.Returns the value of theresourcesrecord component.tenantId()Returns the value of thetenantIdrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
AuthorizedUser
public AuthorizedUser(String name, String emailPrimary, String profilePicUrl, String userId, String tenantId, Map<String, OauthUsersService.Resource> resources, boolean hasAdminMenu) Creates an instance of aAuthorizedUserrecord class.- Parameters:
name- the value for thenamerecord componentemailPrimary- the value for theemailPrimaryrecord componentprofilePicUrl- the value for theprofilePicUrlrecord componentuserId- the value for theuserIdrecord componenttenantId- the value for thetenantIdrecord componentresources- the value for theresourcesrecord componenthasAdminMenu- the value for thehasAdminMenurecord component
-
-
Method Details
-
isMenuAdmin
public boolean isMenuAdmin() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
emailPrimary
Returns the value of theemailPrimaryrecord component.- Returns:
- the value of the
emailPrimaryrecord component
-
profilePicUrl
Returns the value of theprofilePicUrlrecord component.- Returns:
- the value of the
profilePicUrlrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
tenantId
Returns the value of thetenantIdrecord component.- Returns:
- the value of the
tenantIdrecord component
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-
hasAdminMenu
public boolean hasAdminMenu()Returns the value of thehasAdminMenurecord component.- Returns:
- the value of the
hasAdminMenurecord component
-