public class RestAPIAdminImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
ApiClient |
apiAdminClient |
ApplicationPolicyCollectionApi |
applicationPolicyCollectionApi |
static String |
appName |
static String |
appOwner |
static String |
callBackURL |
static String |
grantType |
static String |
password |
String |
tenantDomain |
static String |
tokenScope |
static String |
username |
WorkflowCollectionApi |
workflowCollectionApi |
WorkflowsIndividualApi |
workflowsIndividualApi |
| Constructor and Description |
|---|
RestAPIAdminImpl(String username,
String password,
String tenantDomain,
String adminURl) |
| Modifier and Type | Method and Description |
|---|---|
ApiResponse<AdvancedThrottlePolicyDTO> |
addAdvancedThrottlingPolicy(AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO)
This method is used to create an advanced throttling policy.
|
ApiResponse<ApplicationThrottlePolicyDTO> |
addApplicationThrottlingPolicy(ApplicationThrottlePolicyDTO applicationThrottlePolicyDTO)
This method is used to create an application throttling policy.
|
ApiResponse<CustomRuleDTO> |
addCustomThrottlingPolicy(CustomRuleDTO customRuleDTO)
This method is used to create an custom throttling policy.
|
ApiResponse<KeyManagerDTO> |
addKeyManager(KeyManagerDTO keyManagerDTO) |
ApiResponse<LabelDTO> |
addLabel(LabelDTO labelDTO)
This method is used to add a label.
|
ApiResponse<SubscriptionThrottlePolicyDTO> |
addSubscriptionThrottlingPolicy(SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO)
This method is used to create a subscription throttling policy.
|
ApiResponse<Void> |
changeApplicationOwner(String newOwner,
String applicationId)
This method is used to change the owner of an application.
|
ApiResponse<Void> |
deleteAdvancedThrottlingPolicy(String policyId)
This method is used to delete an advanced throttling policy.
|
ApiResponse<Void> |
deleteApplicationThrottlingPolicy(String policyId)
This method is used to delete an application throttling policy.
|
ApiResponse<Void> |
deleteCustomThrottlingPolicy(String policyId)
This method is used to delete a custom throttling policy.
|
void |
deleteKeyManager(String uuid) |
ApiResponse<Void> |
deleteLabel(String labelId)
This method is used to delete a label.
|
ApiResponse<Void> |
deleteSubscriptionThrottlingPolicy(String policyId)
This method is used to delete a subscription throttling policy.
|
ApiResponse<AdvancedThrottlePolicyDTO> |
getAdvancedThrottlingPolicy(String policyId)
This method is used to retrieve an advanced throttling policy.
|
ApiResponse<ApplicationListDTO> |
getApplications(String user,
Integer limit,
Integer offset,
String appTenantDomain)
This method is used to retrieve applications.
|
ApiResponse<ApplicationThrottlePolicyDTO> |
getApplicationThrottlingPolicy(String policyId)
This method is used to retrieve an application throttling policy.
|
ApiResponse<CustomRuleDTO> |
getCustomThrottlingPolicy(String policyId)
This method is used to retrieve a custom throttling policy.
|
KeyManagerDTO |
getKeyManager(String uuid) |
KeyManagerListDTO |
getKeyManagers() |
ApiResponse<LabelListDTO> |
getLabels()
This method is used to retrieve all labels.
|
SettingsDTO |
getSettings() |
ApiResponse<SubscriptionThrottlePolicyDTO> |
getSubscriptionThrottlingPolicy(String policyId)
This method is used to retrieve a subscription throttling policy.
|
HttpResponse |
getWorkflowByExternalWorkflowReference(String externalWorkflowRef) |
HttpResponse |
getWorkflows(String workflowType) |
ApiResponse<AdvancedThrottlePolicyDTO> |
updateAdvancedThrottlingPolicy(String policyId,
AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO)
This method is used to update an advanced throttling policy.
|
ApiResponse<ApplicationThrottlePolicyDTO> |
updateApplicationThrottlingPolicy(String policyId,
ApplicationThrottlePolicyDTO applicationThrottlePolicyDTO)
This method is used to update an application throttling policy.
|
ApiResponse<CustomRuleDTO> |
updateCustomThrottlingPolicy(String policyId,
CustomRuleDTO customRuleDTO)
This method is used to update a custom throttling policy.
|
KeyManagerDTO |
updateKeyManager(String uuid,
KeyManagerDTO keyManagerDTO) |
ApiResponse<LabelDTO> |
updateLabel(String labelId,
LabelDTO labelDTO)
This method is used to update a label.
|
ApiResponse<SubscriptionThrottlePolicyDTO> |
updateSubscriptionThrottlingPolicy(String policyId,
SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO)
This method is used to update a subscription throttling policy.
|
HttpResponse |
updateWorkflowStatus(String workflowReferenceId) |
public ApiClient apiAdminClient
public WorkflowCollectionApi workflowCollectionApi
public WorkflowsIndividualApi workflowsIndividualApi
public ApplicationPolicyCollectionApi applicationPolicyCollectionApi
public static final String appName
public static final String callBackURL
public static final String tokenScope
public static final String appOwner
public static final String grantType
public static final String username
public static final String password
public String tenantDomain
public ApiResponse<KeyManagerDTO> addKeyManager(KeyManagerDTO keyManagerDTO) throws ApiException
ApiExceptionpublic KeyManagerListDTO getKeyManagers() throws ApiException
ApiExceptionpublic KeyManagerDTO getKeyManager(String uuid) throws ApiException
ApiExceptionpublic KeyManagerDTO updateKeyManager(String uuid, KeyManagerDTO keyManagerDTO) throws ApiException
ApiExceptionpublic void deleteKeyManager(String uuid) throws ApiException
ApiExceptionpublic SettingsDTO getSettings() throws ApiException
ApiExceptionpublic ApiResponse<ApplicationThrottlePolicyDTO> addApplicationThrottlingPolicy(ApplicationThrottlePolicyDTO applicationThrottlePolicyDTO) throws ApiException
applicationThrottlePolicyDTO - Application throttling policy DTO to be added.ApiException - if an error occurs while creating the application throttling policy.public ApiResponse<ApplicationThrottlePolicyDTO> getApplicationThrottlingPolicy(String policyId) throws ApiException
ApiException - if an error occurs while retrieving the application throttling policy.public ApiResponse<ApplicationThrottlePolicyDTO> updateApplicationThrottlingPolicy(String policyId, ApplicationThrottlePolicyDTO applicationThrottlePolicyDTO) throws ApiException
policyId - Policy Id of the application throttling policy to be updated.applicationThrottlePolicyDTO - Application throttling policy DTO which contains the update content.ApiException - if an error occurs while updating the application throttling policy.public ApiResponse<Void> deleteApplicationThrottlingPolicy(String policyId) throws ApiException
policyId - Policy Id of the application throttling policy to be deleted.ApiException - if an error occurs while deleting the application throttling policy.public ApiResponse<SubscriptionThrottlePolicyDTO> addSubscriptionThrottlingPolicy(SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO) throws ApiException
subscriptionThrottlePolicyDTO - Subscription throttling policy DTO to be added.ApiException - Throws if an error occurred while creating the new subscription throttling policy.public ApiResponse<SubscriptionThrottlePolicyDTO> getSubscriptionThrottlingPolicy(String policyId) throws ApiException
ApiException - if an error occurs while retrieving the subscription throttling policy.public ApiResponse<SubscriptionThrottlePolicyDTO> updateSubscriptionThrottlingPolicy(String policyId, SubscriptionThrottlePolicyDTO subscriptionThrottlePolicyDTO) throws ApiException
policyId - Policy Id of the subscription throttling policy to be updated.subscriptionThrottlePolicyDTO - Subscription throttling policy DTO which contains the updated content.ApiException - if an error occurs while updating the subscription throttling policy.public ApiResponse<Void> deleteSubscriptionThrottlingPolicy(String policyId) throws ApiException
policyId - Subscription throttling policy Id.ApiException - Throws if an error occurred while deleting the subscription throttling policy.public ApiResponse<CustomRuleDTO> addCustomThrottlingPolicy(CustomRuleDTO customRuleDTO) throws ApiException
customRuleDTO - Custom throttling policy DTO to be added.ApiException - if an error occurs while creating the custom throttling policy.public ApiResponse<CustomRuleDTO> getCustomThrottlingPolicy(String policyId) throws ApiException
ApiException - if an error occurs while retrieving the custom throttling policy.public ApiResponse<CustomRuleDTO> updateCustomThrottlingPolicy(String policyId, CustomRuleDTO customRuleDTO) throws ApiException
policyId - Policy Id of the custom throttling policy to be updated.customRuleDTO - Custom throttling policy DTO which contains the updated content.ApiException - if an error occurs while updating the custom throttling policy.public ApiResponse<Void> deleteCustomThrottlingPolicy(String policyId) throws ApiException
policyId - Policy Id of the custom throttling policy to be deleted.ApiException - if an error occurs while deleting the custom throttling policy.public ApiResponse<AdvancedThrottlePolicyDTO> addAdvancedThrottlingPolicy(AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO) throws ApiException
advancedThrottlePolicyDTO - Advanced throttling policy DTO to be added.ApiException - Throws if an error occurred while creating the new advanced policy.public ApiResponse<AdvancedThrottlePolicyDTO> getAdvancedThrottlingPolicy(String policyId) throws ApiException
ApiException - if an error occurs while retrieving the advanced throttling policy.public ApiResponse<AdvancedThrottlePolicyDTO> updateAdvancedThrottlingPolicy(String policyId, AdvancedThrottlePolicyDTO advancedThrottlePolicyDTO) throws ApiException
policyId - Policy Id of the advanced throttling policy to be updated.advancedThrottlePolicyDTO - Advanced throttling policy DTO which contains the updated content.ApiException - if an error occurs while updating the advanced throttling policy.public ApiResponse<Void> deleteAdvancedThrottlingPolicy(String policyId) throws ApiException
policyId - Policy Id of the advanced throttling policy to be deleted.ApiException - if an error occurs while deleting the advanced throttling policy.public ApiResponse<LabelDTO> addLabel(LabelDTO labelDTO) throws ApiException
labelDTO - Label DTO to be added.ApiException - Throws if an error occurred while adding the new label.public ApiResponse<LabelListDTO> getLabels() throws ApiException
ApiException - Throws if an error occurred while retrieving all labels.public ApiResponse<LabelDTO> updateLabel(String labelId, LabelDTO labelDTO) throws ApiException
labelId - Label Id of the label to be updated.labelDTO - Label DTO which contains the updated content.ApiException - if an error occurs while updating the label.public ApiResponse<Void> deleteLabel(String labelId) throws ApiException
labelId - Label Id of the label to be updated.ApiException - if an error occurs while deleting the label.public ApiResponse<ApplicationListDTO> getApplications(String user, Integer limit, Integer offset, String appTenantDomain) throws ApiException
user - Username of the application creator.limit - Maximum number of applications to return.offset - Starting point within the complete list of applications qualified.appTenantDomain - Tenant domain of the applications to get.ApiException - if an error occurs while retrieving applications.public ApiResponse<Void> changeApplicationOwner(String newOwner, String applicationId) throws ApiException
newOwner - New owner of the application.applicationId - Application ID of the application.ApiException - if an error occurs while changing the owner of an application.public HttpResponse getWorkflowByExternalWorkflowReference(String externalWorkflowRef) throws ApiException
ApiExceptionpublic HttpResponse getWorkflows(String workflowType) throws ApiException
ApiExceptionpublic HttpResponse updateWorkflowStatus(String workflowReferenceId) throws ApiException
ApiExceptionCopyright © 2020 WSO2 Inc. All rights reserved.