Class RoleChange.UpdateSecurableObject
java.lang.Object
org.apache.gravitino.authorization.RoleChange.UpdateSecurableObject
- All Implemented Interfaces:
RoleChange
- Enclosing interface:
- 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.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.authorization.RoleChange
RoleChange.AddSecurableObject, RoleChange.RemoveSecurableObject, RoleChange.UpdateSecurableObject
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this UpdateSecurableObject instance with another object for equality.Returns the new securable object.Returns the role name.Returns the securable object to be updated.int
hashCode()
Generates a hash code for this UpdateSecurableObject instance.toString()
Returns a string representation of the UpdateSecurableObject instance.
-
Method Details
-
getRoleName
Returns the role name.- Returns:
- return a role name.
-
getSecurableObject
Returns the securable object to be updated.- Returns:
- return a securable object.
-
getNewSecurableObject
Returns the new securable object.- Returns:
- return a securable object.
-
equals
Compares this UpdateSecurableObject instance with another object for equality. The comparison is based on the old securable object and new securable object. -
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. -
toString
Returns a string representation of the UpdateSecurableObject instance. This string format includes the class name followed by the add securable object operation.
-