Class RoleChange.UpdateSecurableObject

java.lang.Object
org.apache.gravitino.authorization.RoleChange.UpdateSecurableObject
All Implemented Interfaces:
RoleChange
Enclosing interface:
RoleChange

public static final class RoleChange.UpdateSecurableObject extends Object implements RoleChange
A UpdateSecurableObject is to update securable object's privilege from a role.
The securable object's metadata entity must be the same as new securable object's metadata entity.
The securable object's privilege must be different from new securable object's privilege.
  • Method Details

    • getRoleName

      public String getRoleName()
      Returns the role name.
      Returns:
      return a role name.
    • getSecurableObject

      public SecurableObject getSecurableObject()
      Returns the securable object to be updated.
      Returns:
      return a securable object.
    • getNewSecurableObject

      public SecurableObject getNewSecurableObject()
      Returns the new securable object.
      Returns:
      return a securable object.
    • equals

      public boolean equals(Object o)
      Compares this UpdateSecurableObject instance with another object for equality. The comparison is based on the old securable object and new securable object.
      Overrides:
      equals in class Object
      Parameters:
      o - The object to compare with this instance.
      Returns:
      true if the given object represents the same update securable object; false otherwise.
    • hashCode

      public int hashCode()
      Generates a hash code for this UpdateSecurableObject instance. The hash code is based on the old securable object and new securable object.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this update securable object operation.
    • toString

      public String toString()
      Returns a string representation of the UpdateSecurableObject instance. This string format includes the class name followed by the add securable object operation.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the RemoveSecurableObject instance.