Interface RoleApi
public interface RoleApi
Contains all api operations for handling roles.
-
Method Summary
Modifier and TypeMethodDescriptionaddRole
(AddRoleRequest addRoleRequest) Adds a new role.changeRole
(ChangeRoleRequest changeRoleRequest) Changes the role with the information that is present in the request.boolean
Returns true if a role with given ID exists.findRoles
(FindRolesRequest request) Returns the roles matching the given criteriaGet the role with the given id.void
removeRole
(UUID roleId) Removes a role identified by given ID.
-
Method Details
-
addRole
Adds a new role.- Parameters:
addRoleRequest
- the properties of the role to be added- Returns:
- the newly added role
-
changeRole
Changes the role with the information that is present in the request.- Parameters:
changeRoleRequest
- changes that to be performed on the role- Returns:
- the changed role
-
getRole
Get the role with the given id.- Parameters:
roleId
- the id of the role- Returns:
- the found role
-
exists
Returns true if a role with given ID exists.- Parameters:
roleId
- the ID of the role- Returns:
- true if a role with given ID exists,
false
otherwise
-
removeRole
Removes a role identified by given ID.- Parameters:
roleId
- theid
of the role to remove
-
findRoles
@SecurityAuditMethod(resultFormatter=com.collibra.dgc.core.api.internal.security.audit.formatter.PagedResponseFormatter.class) PagedResponse<Role> findRoles(FindRolesRequest request) Returns the roles matching the given criteria- Parameters:
request
- the search criteria- Returns:
- a paged response of roles
-