Interface RoleChange
- All Known Implementing Classes:
RoleChange.AddSecurableObject,RoleChange.RemoveSecurableObject,RoleChange.UpdateSecurableObject
The RoleChange interface defines the public API for managing roles in an authorization.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA AddSecurableObject to add a securable object to a role.static final classA RemoveSecurableObject to remove a securable object from a role.static final classA UpdateSecurableObject is to update securable object's privilege from a role. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic RoleChangeaddSecurableObject(String roleName, SecurableObject securableObject) Create a RoleChange to add a securable object into a role.static RoleChangeremoveSecurableObject(String roleName, SecurableObject securableObject) Create a RoleChange to remove a securable object from a role.static RoleChangeupdateSecurableObject(String roleName, SecurableObject securableObject, SecurableObject newSecurableObject) Update a securable object RoleChange.
-
Method Details
-
addSecurableObject
Create a RoleChange to add a securable object into a role.- Parameters:
roleName- The role name.securableObject- The securable object.- Returns:
- return a RoleChange for the added securable object.
-
removeSecurableObject
Create a RoleChange to remove a securable object from a role.- Parameters:
roleName- The role name.securableObject- The securable object.- Returns:
- return a RoleChange for the added securable object.
-
updateSecurableObject
static RoleChange updateSecurableObject(String roleName, SecurableObject securableObject, SecurableObject newSecurableObject) Update a securable object RoleChange.- Parameters:
roleName- The role name.securableObject- The securable object.newSecurableObject- The new securable object.- Returns:
- return a RoleChange for the update securable object.
-