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 aRolePermissionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionTyperecord component.code()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.isMenu()Returns the value of theisMenurecord component.Returns the value of theisVisiblerecord component.parentId()Returns the value of theparentIdrecord component.Returns the value of thepermissionIdrecord component.Returns the value of thepermissionNamerecord component.Returns the value of theresourceTyperecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.Returns the value of thevisibleForAdminrecord component.Returns the value of thevisibleForDeveloperrecord component.Returns the value of thevisibleForGuestrecord component.Returns the value of thevisibleForResearcherrecord component.Returns the value of thevisibleForSuperAdminrecord 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 aRolePermissionrecord class.- Parameters:
permissionId- the value for thepermissionIdrecord componentpermissionName- the value for thepermissionNamerecord componentcode- the value for thecoderecord componenturl- the value for theurlrecord componentresourceType- the value for theresourceTyperecord componentactionType- the value for theactionTyperecord componentparentId- the value for theparentIdrecord componentisMenu- the value for theisMenurecord componentvisibleForGuest- the value for thevisibleForGuestrecord componentvisibleForDeveloper- the value for thevisibleForDeveloperrecord componentvisibleForAdmin- the value for thevisibleForAdminrecord componentvisibleForResearcher- the value for thevisibleForResearcherrecord componentvisibleForSuperAdmin- the value for thevisibleForSuperAdminrecord componentisVisible- the value for theisVisiblerecord 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 thepermissionIdrecord component.- Returns:
- the value of the
permissionIdrecord component
-
permissionName
Returns the value of thepermissionNamerecord component.- Returns:
- the value of the
permissionNamerecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
resourceType
Returns the value of theresourceTyperecord component.- Returns:
- the value of the
resourceTyperecord component
-
actionType
Returns the value of theactionTyperecord component.- Returns:
- the value of the
actionTyperecord component
-
parentId
Returns the value of theparentIdrecord component.- Returns:
- the value of the
parentIdrecord component
-
isMenu
Returns the value of theisMenurecord component.- Returns:
- the value of the
isMenurecord component
-
visibleForGuest
Returns the value of thevisibleForGuestrecord component.- Returns:
- the value of the
visibleForGuestrecord component
-
visibleForDeveloper
Returns the value of thevisibleForDeveloperrecord component.- Returns:
- the value of the
visibleForDeveloperrecord component
-
visibleForAdmin
Returns the value of thevisibleForAdminrecord component.- Returns:
- the value of the
visibleForAdminrecord component
-
visibleForResearcher
Returns the value of thevisibleForResearcherrecord component.- Returns:
- the value of the
visibleForResearcherrecord component
-
visibleForSuperAdmin
Returns the value of thevisibleForSuperAdminrecord component.- Returns:
- the value of the
visibleForSuperAdminrecord component
-
isVisible
Returns the value of theisVisiblerecord component.- Returns:
- the value of the
isVisiblerecord component
-