Record Class RolePermission
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.pg.request.RolePermission
public record RolePermission(String permissionId, String permissionName, String code, String url, String resourceType, String actionType, String parentId, Boolean isMenu, Boolean visibleForGuest, Boolean visibleForDeveloper, Boolean visibleForAdmin, Boolean visibleForResearcher, Boolean visibleForSuperAdmin, Boolean isVisible)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRolePermission
(String permissionId, String permissionName, String code, String url, String resourceType, String actionType, String parentId, Boolean isMenu, Boolean visibleForGuest, Boolean visibleForDeveloper, Boolean visibleForAdmin, Boolean visibleForResearcher, Boolean visibleForSuperAdmin, Boolean isVisible) Creates an instance of aRolePermission
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionType
record component.code()
Returns the value of thecode
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.isMenu()
Returns the value of theisMenu
record component.Returns the value of theisVisible
record component.parentId()
Returns the value of theparentId
record component.Returns the value of thepermissionId
record component.Returns the value of thepermissionName
record component.Returns the value of theresourceType
record component.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.Returns the value of thevisibleForAdmin
record component.Returns the value of thevisibleForDeveloper
record component.Returns the value of thevisibleForGuest
record component.Returns the value of thevisibleForResearcher
record component.Returns the value of thevisibleForSuperAdmin
record component.
-
Constructor Details
-
RolePermission
public RolePermission(String permissionId, String permissionName, String code, String url, String resourceType, String actionType, String parentId, Boolean isMenu, Boolean visibleForGuest, Boolean visibleForDeveloper, Boolean visibleForAdmin, Boolean visibleForResearcher, Boolean visibleForSuperAdmin, Boolean isVisible) Creates an instance of aRolePermission
record class.- Parameters:
permissionId
- the value for thepermissionId
record componentpermissionName
- the value for thepermissionName
record componentcode
- the value for thecode
record componenturl
- the value for theurl
record componentresourceType
- the value for theresourceType
record componentactionType
- the value for theactionType
record componentparentId
- the value for theparentId
record componentisMenu
- the value for theisMenu
record componentvisibleForGuest
- the value for thevisibleForGuest
record componentvisibleForDeveloper
- the value for thevisibleForDeveloper
record componentvisibleForAdmin
- the value for thevisibleForAdmin
record componentvisibleForResearcher
- the value for thevisibleForResearcher
record componentvisibleForSuperAdmin
- the value for thevisibleForSuperAdmin
record componentisVisible
- the value for theisVisible
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)
. -
permissionId
Returns the value of thepermissionId
record component.- Returns:
- the value of the
permissionId
record component
-
permissionName
Returns the value of thepermissionName
record component.- Returns:
- the value of the
permissionName
record component
-
code
Returns the value of thecode
record component.- Returns:
- the value of the
code
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-
resourceType
Returns the value of theresourceType
record component.- Returns:
- the value of the
resourceType
record component
-
actionType
Returns the value of theactionType
record component.- Returns:
- the value of the
actionType
record component
-
parentId
Returns the value of theparentId
record component.- Returns:
- the value of the
parentId
record component
-
isMenu
Returns the value of theisMenu
record component.- Returns:
- the value of the
isMenu
record component
-
visibleForGuest
Returns the value of thevisibleForGuest
record component.- Returns:
- the value of the
visibleForGuest
record component
-
visibleForDeveloper
Returns the value of thevisibleForDeveloper
record component.- Returns:
- the value of the
visibleForDeveloper
record component
-
visibleForAdmin
Returns the value of thevisibleForAdmin
record component.- Returns:
- the value of the
visibleForAdmin
record component
-
visibleForResearcher
Returns the value of thevisibleForResearcher
record component.- Returns:
- the value of the
visibleForResearcher
record component
-
visibleForSuperAdmin
Returns the value of thevisibleForSuperAdmin
record component.- Returns:
- the value of the
visibleForSuperAdmin
record component
-
isVisible
Returns the value of theisVisible
record component.- Returns:
- the value of the
isVisible
record component
-