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 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 a RolePermission record class.
      Parameters:
      permissionId - the value for the permissionId record component
      permissionName - the value for the permissionName record component
      code - the value for the code record component
      url - the value for the url record component
      resourceType - the value for the resourceType record component
      actionType - the value for the actionType record component
      parentId - the value for the parentId record component
      isMenu - the value for the isMenu record component
      visibleForGuest - the value for the visibleForGuest record component
      visibleForDeveloper - the value for the visibleForDeveloper record component
      visibleForAdmin - the value for the visibleForAdmin record component
      visibleForResearcher - the value for the visibleForResearcher record component
      visibleForSuperAdmin - the value for the visibleForSuperAdmin record component
      isVisible - the value for the isVisible record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • permissionId

      public String permissionId()
      Returns the value of the permissionId record component.
      Returns:
      the value of the permissionId record component
    • permissionName

      public String permissionName()
      Returns the value of the permissionName record component.
      Returns:
      the value of the permissionName record component
    • code

      public String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • resourceType

      public String resourceType()
      Returns the value of the resourceType record component.
      Returns:
      the value of the resourceType record component
    • actionType

      public String actionType()
      Returns the value of the actionType record component.
      Returns:
      the value of the actionType record component
    • parentId

      public String parentId()
      Returns the value of the parentId record component.
      Returns:
      the value of the parentId record component
    • isMenu

      public Boolean isMenu()
      Returns the value of the isMenu record component.
      Returns:
      the value of the isMenu record component
    • visibleForGuest

      public Boolean visibleForGuest()
      Returns the value of the visibleForGuest record component.
      Returns:
      the value of the visibleForGuest record component
    • visibleForDeveloper

      public Boolean visibleForDeveloper()
      Returns the value of the visibleForDeveloper record component.
      Returns:
      the value of the visibleForDeveloper record component
    • visibleForAdmin

      public Boolean visibleForAdmin()
      Returns the value of the visibleForAdmin record component.
      Returns:
      the value of the visibleForAdmin record component
    • visibleForResearcher

      public Boolean visibleForResearcher()
      Returns the value of the visibleForResearcher record component.
      Returns:
      the value of the visibleForResearcher record component
    • visibleForSuperAdmin

      public Boolean visibleForSuperAdmin()
      Returns the value of the visibleForSuperAdmin record component.
      Returns:
      the value of the visibleForSuperAdmin record component
    • isVisible

      public Boolean isVisible()
      Returns the value of the isVisible record component.
      Returns:
      the value of the isVisible record component