public class UserSpaceRoleService extends Object
| Constructor and Description |
|---|
UserSpaceRoleService(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
UserSpaceRole |
addRole(Long userId,
Long spaceId,
Long roleId)
Add Role
This operation grants the given role to the user in the given space.
|
UserSpaceRole |
addRole(Long userId,
Long spaceId,
Long roleId,
Map<String,Object> params)
Add Role
This operation grants the given role to the user in the given space.
|
com.google.api.client.http.HttpResponse |
addRoleForHttpResponse(Long userId,
Long spaceId,
Long roleId) |
com.google.api.client.http.HttpResponse |
addRoleForHttpResponse(Long userId,
Long spaceId,
Long roleId,
Map<String,Object> params) |
ApiClient |
getApiClient() |
List<UserSpaceRole> |
list(Long userId,
Long spaceId)
List Roles
List all the roles that are assigned to the given user in the given space.
|
List<UserSpaceRole> |
list(Long userId,
Long spaceId,
Map<String,Object> params)
List Roles
List all the roles that are assigned to the given user in the given space.
|
com.google.api.client.http.HttpResponse |
listForHttpResponse(Long userId,
Long spaceId) |
com.google.api.client.http.HttpResponse |
listForHttpResponse(Long userId,
Long spaceId,
Map<String,Object> params) |
void |
removeRole(Long id)
Remove Role
This operation removes the specified user space role.
|
void |
removeRole(Long id,
Map<String,Object> params)
Remove Role
This operation removes the specified user space role.
|
com.google.api.client.http.HttpResponse |
removeRoleForHttpResponse(Long id) |
com.google.api.client.http.HttpResponse |
removeRoleForHttpResponse(Long id,
Map<String,Object> params) |
void |
setApiClient(ApiClient apiClient) |
public UserSpaceRoleService(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public UserSpaceRole addRole(Long userId, Long spaceId, Long roleId) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
userId - The id of the user to whom the role is assigned.spaceId - The space to which the role is mapped.roleId - The role which is mapped to the user and space.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public UserSpaceRole addRole(Long userId, Long spaceId, Long roleId, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
userId - The id of the user to whom the role is assigned.spaceId - The space to which the role is mapped.roleId - The role which is mapped to the user and space.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse addRoleForHttpResponse(Long userId, Long spaceId, Long roleId) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse addRoleForHttpResponse(Long userId, Long spaceId, Long roleId, Map<String,Object> params) throws IOException
IOExceptionpublic List<UserSpaceRole> list(Long userId, Long spaceId) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
userId - The id of the user to whom the role is assigned.spaceId - The space to which the role is mapped.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public List<UserSpaceRole> list(Long userId, Long spaceId, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
userId - The id of the user to whom the role is assigned.spaceId - The space to which the role is mapped.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse listForHttpResponse(Long userId, Long spaceId) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse listForHttpResponse(Long userId, Long spaceId, Map<String,Object> params) throws IOException
IOExceptionpublic void removeRole(Long id) throws IOException
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
id - The id of user space role which should be removedIOException - if an error occurs while attempting to invoke the API
For more information visit this link.public void removeRole(Long id, Map<String,Object> params) throws IOException
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
id - The id of user space role which should be removedparams - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse removeRoleForHttpResponse(Long id) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse removeRoleForHttpResponse(Long id, Map<String,Object> params) throws IOException
IOExceptionCopyright © 2021. All rights reserved.