Package ch.aaap.harvestclient.impl
Class RolesApiImpl
Object
ch.aaap.harvestclient.impl.RolesApiImpl
- All Implemented Interfaces:
 RolesApi
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionAdd a role to a userCreate a new RolevoidDelete 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:RolesApiReturn an existing Role. - 
create
Description copied from interface:RolesApiCreate a new Role - 
update
Description copied from interface:RolesApiUpdates the specific role by setting the values of the parameters passed. Any parameters not provided will be left unchanged - 
addUser
Description copied from interface:RolesApiAdd a role to a user - 
removeUser
Description copied from interface:RolesApiRemoves the given role from the given user- Specified by:
 removeUserin interfaceRolesApi- Parameters:
 roleReference- the role to be removeduserReference- the user that will lose the role- Returns:
 - the updated Role
 
 - 
delete
Description copied from interface:RolesApiDelete an existing Role. Will unlink it from any users assigned to it. 
 -