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 aAuthorizedUser
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theemailPrimary
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thehasAdminMenu
record component.final int
hashCode()
Returns a hash code value for this object.boolean
name()
Returns the value of thename
record component.Returns the value of theprofilePicUrl
record component.Returns the value of theresources
record component.tenantId()
Returns the value of thetenantId
record component.final String
toString()
Returns a string representation of this record class.userId()
Returns the value of theuserId
record 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 aAuthorizedUser
record class.- Parameters:
name
- the value for thename
record componentemailPrimary
- the value for theemailPrimary
record componentprofilePicUrl
- the value for theprofilePicUrl
record componentuserId
- the value for theuserId
record componenttenantId
- the value for thetenantId
record componentresources
- the value for theresources
record componenthasAdminMenu
- the value for thehasAdminMenu
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
emailPrimary
Returns the value of theemailPrimary
record component.- Returns:
- the value of the
emailPrimary
record component
-
profilePicUrl
Returns the value of theprofilePicUrl
record component.- Returns:
- the value of the
profilePicUrl
record component
-
userId
Returns the value of theuserId
record component.- Returns:
- the value of the
userId
record component
-
tenantId
Returns the value of thetenantId
record component.- Returns:
- the value of the
tenantId
record component
-
resources
Returns the value of theresources
record component.- Returns:
- the value of the
resources
record component
-
hasAdminMenu
public boolean hasAdminMenu()Returns the value of thehasAdminMenu
record component.- Returns:
- the value of the
hasAdminMenu
record component
-