Class RoleChange.AddSecurableObject
java.lang.Object
org.apache.gravitino.authorization.RoleChange.AddSecurableObject
- All Implemented Interfaces:
RoleChange
- Enclosing interface:
- RoleChange
A AddSecurableObject to add a securable object to a role.
-
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 AddSecurableObject instance with another object for equality.Returns the role name to be added.Returns the securable object to be added.int
hashCode()
Generates a hash code for this AddSecurableObject instance.toString()
Returns a string representation of the AddSecurableObject instance.
-
Method Details
-
getRoleName
Returns the role name to be added.- Returns:
- return a role name.
-
getSecurableObject
Returns the securable object to be added.- Returns:
- return a securable object.
-
equals
Compares this AddSecurableObject instance with another object for equality. The comparison is based on the added securable object to a role. -
hashCode
public int hashCode()Generates a hash code for this AddSecurableObject instance. The hash code is based on the add securable object. -
toString
Returns a string representation of the AddSecurableObject instance. This string format includes the class name followed by the add securable object operation.
-