public class RolesApi extends Object
| Constructor and Description |
|---|
RolesApi() |
RolesApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
void |
validateSystemRole(String roleId)
Check given role name is already exist
Using this operation, user can check a given role name exists or not.
|
com.squareup.okhttp.Call |
validateSystemRoleAsync(String roleId,
ApiCallback<Void> callback)
Check given role name is already exist (asynchronously)
Using this operation, user can check a given role name exists or not.
|
com.squareup.okhttp.Call |
validateSystemRoleCall(String roleId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for validateSystemRole
|
ApiResponse<Void> |
validateSystemRoleWithHttpInfo(String roleId)
Check given role name is already exist
Using this operation, user can check a given role name exists or not.
|
void |
validateUserRole(String roleId)
Validate whether the logged-in user has the given role
Using this operation, logged-in user can check whether he has given role.
|
com.squareup.okhttp.Call |
validateUserRoleAsync(String roleId,
ApiCallback<Void> callback)
Validate whether the logged-in user has the given role (asynchronously)
Using this operation, logged-in user can check whether he has given role.
|
com.squareup.okhttp.Call |
validateUserRoleCall(String roleId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for validateUserRole
|
ApiResponse<Void> |
validateUserRoleWithHttpInfo(String roleId)
Validate whether the logged-in user has the given role
Using this operation, logged-in user can check whether he has given role.
|
public RolesApi()
public RolesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call validateSystemRoleCall(String roleId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
roleId - The Base 64 URL encoded role name with domain. If the given role is in secondary user-store, role ID should be derived as Base64URLEncode({user-store-name}/{role-name}). If the given role is in PRIMARY user-store, role ID can be derived as Base64URLEncode(role-name) (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void validateSystemRole(String roleId) throws ApiException
roleId - The Base 64 URL encoded role name with domain. If the given role is in secondary user-store, role ID should be derived as Base64URLEncode({user-store-name}/{role-name}). If the given role is in PRIMARY user-store, role ID can be derived as Base64URLEncode(role-name) (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> validateSystemRoleWithHttpInfo(String roleId) throws ApiException
roleId - The Base 64 URL encoded role name with domain. If the given role is in secondary user-store, role ID should be derived as Base64URLEncode({user-store-name}/{role-name}). If the given role is in PRIMARY user-store, role ID can be derived as Base64URLEncode(role-name) (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call validateSystemRoleAsync(String roleId, ApiCallback<Void> callback) throws ApiException
roleId - The Base 64 URL encoded role name with domain. If the given role is in secondary user-store, role ID should be derived as Base64URLEncode({user-store-name}/{role-name}). If the given role is in PRIMARY user-store, role ID can be derived as Base64URLEncode(role-name) (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call validateUserRoleCall(String roleId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
roleId - The Base 64 URL encoded role name with domain. If the given role is in secondary user-store, role ID should be derived as Base64URLEncode({user-store-name}/{role-name}). If the given role is in PRIMARY user-store, role ID can be derived as Base64URLEncode(role-name) (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void validateUserRole(String roleId) throws ApiException
roleId - The Base 64 URL encoded role name with domain. If the given role is in secondary user-store, role ID should be derived as Base64URLEncode({user-store-name}/{role-name}). If the given role is in PRIMARY user-store, role ID can be derived as Base64URLEncode(role-name) (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> validateUserRoleWithHttpInfo(String roleId) throws ApiException
roleId - The Base 64 URL encoded role name with domain. If the given role is in secondary user-store, role ID should be derived as Base64URLEncode({user-store-name}/{role-name}). If the given role is in PRIMARY user-store, role ID can be derived as Base64URLEncode(role-name) (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call validateUserRoleAsync(String roleId, ApiCallback<Void> callback) throws ApiException
roleId - The Base 64 URL encoded role name with domain. If the given role is in secondary user-store, role ID should be derived as Base64URLEncode({user-store-name}/{role-name}). If the given role is in PRIMARY user-store, role ID can be derived as Base64URLEncode(role-name) (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2020 WSO2 Inc. All rights reserved.