Package ch.aaap.harvestclient.impl
Class RolesApiImpl
Object
ch.aaap.harvestclient.impl.RolesApiImpl
- All Implemented Interfaces:
RolesApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd a role to a userCreate a new Rolevoid
Delete an existing Role.Return an existing Role.list()
list
(int page, int perPage) removeUser
(Reference<Role> roleReference, Reference<User> userReference) Removes the given role from the given userUpdates the specific role by setting the values of the parameters passed.
-
Constructor Details
-
RolesApiImpl
-
-
Method Details
-
list
-
list
-
get
Description copied from interface:RolesApi
Return an existing Role. -
create
Description copied from interface:RolesApi
Create a new Role -
update
Description copied from interface:RolesApi
Updates the specific role by setting the values of the parameters passed. Any parameters not provided will be left unchanged -
addUser
Description copied from interface:RolesApi
Add a role to a user -
removeUser
Description copied from interface:RolesApi
Removes the given role from the given user- Specified by:
removeUser
in interfaceRolesApi
- Parameters:
roleReference
- the role to be removeduserReference
- the user that will lose the role- Returns:
- the updated Role
-
delete
Description copied from interface:RolesApi
Delete an existing Role. Will unlink it from any users assigned to it.
-