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 class
A AddSecurableObject to add a securable object to a role.static final class
A RemoveSecurableObject to remove a securable object from a role.static final class
A UpdateSecurableObject is to update securable object's privilege from a role. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic RoleChange
addSecurableObject
(String roleName, SecurableObject securableObject) Create a RoleChange to add a securable object into a role.static RoleChange
removeSecurableObject
(String roleName, SecurableObject securableObject) Create a RoleChange to remove a securable object from a role.static RoleChange
updateSecurableObject
(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.
-