Package io.datarouter.auth.model.dto
Record Class UserRoleMetadata.UserRoleMetadataJsDto
java.lang.Object
java.lang.Record
io.datarouter.auth.model.dto.UserRoleMetadata.UserRoleMetadataJsDto
- Enclosing class:
UserRoleMetadata
public static record UserRoleMetadata.UserRoleMetadataJsDto(String roleName, String roleDescription, String roleRiskFactor, String roleRiskFactorDescription, boolean hasRole, Map<String,RoleApprovalRequirementStatus> requirementStatusByApprovalType, String editorPrioritizedApprovalType, Boolean editorCanRevoke, List<String> groupsHasWithRole)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUserRoleMetadataJsDto(String roleName, String roleDescription, String roleRiskFactor, String roleRiskFactorDescription, boolean hasRole, Map<String, RoleApprovalRequirementStatus> requirementStatusByApprovalType, String editorPrioritizedApprovalType, Boolean editorCanRevoke, List<String> groupsHasWithRole) Creates an instance of aUserRoleMetadataJsDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theeditorCanRevokerecord component.Returns the value of theeditorPrioritizedApprovalTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupsHasWithRolerecord component.final inthashCode()Returns a hash code value for this object.booleanhasRole()Returns the value of thehasRolerecord component.Returns the value of therequirementStatusByApprovalTyperecord component.Returns the value of theroleDescriptionrecord component.roleName()Returns the value of theroleNamerecord component.Returns the value of theroleRiskFactorrecord component.Returns the value of theroleRiskFactorDescriptionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserRoleMetadataJsDto
public UserRoleMetadataJsDto(String roleName, String roleDescription, String roleRiskFactor, String roleRiskFactorDescription, boolean hasRole, Map<String, RoleApprovalRequirementStatus> requirementStatusByApprovalType, String editorPrioritizedApprovalType, Boolean editorCanRevoke, List<String> groupsHasWithRole) Creates an instance of aUserRoleMetadataJsDtorecord class.- Parameters:
roleName- the value for theroleNamerecord componentroleDescription- the value for theroleDescriptionrecord componentroleRiskFactor- the value for theroleRiskFactorrecord componentroleRiskFactorDescription- the value for theroleRiskFactorDescriptionrecord componenthasRole- the value for thehasRolerecord componentrequirementStatusByApprovalType- the value for therequirementStatusByApprovalTyperecord componenteditorPrioritizedApprovalType- the value for theeditorPrioritizedApprovalTyperecord componenteditorCanRevoke- the value for theeditorCanRevokerecord componentgroupsHasWithRole- the value for thegroupsHasWithRolerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
roleName
Returns the value of theroleNamerecord component.- Returns:
- the value of the
roleNamerecord component
-
roleDescription
Returns the value of theroleDescriptionrecord component.- Returns:
- the value of the
roleDescriptionrecord component
-
roleRiskFactor
Returns the value of theroleRiskFactorrecord component.- Returns:
- the value of the
roleRiskFactorrecord component
-
roleRiskFactorDescription
Returns the value of theroleRiskFactorDescriptionrecord component.- Returns:
- the value of the
roleRiskFactorDescriptionrecord component
-
hasRole
public boolean hasRole()Returns the value of thehasRolerecord component.- Returns:
- the value of the
hasRolerecord component
-
requirementStatusByApprovalType
Returns the value of therequirementStatusByApprovalTyperecord component.- Returns:
- the value of the
requirementStatusByApprovalTyperecord component
-
editorPrioritizedApprovalType
Returns the value of theeditorPrioritizedApprovalTyperecord component.- Returns:
- the value of the
editorPrioritizedApprovalTyperecord component
-
editorCanRevoke
Returns the value of theeditorCanRevokerecord component.- Returns:
- the value of the
editorCanRevokerecord component
-
groupsHasWithRole
Returns the value of thegroupsHasWithRolerecord component.- Returns:
- the value of the
groupsHasWithRolerecord component
-