Package com.okta.sdk.helper
Class PolicyApiHelper<T extends Policy>
java.lang.Object
org.openapitools.client.api.PolicyApi
com.okta.sdk.helper.PolicyApiHelper<T>
Helper class that enables working with sub-typed
Policy
references.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Policy>
TcreatePolicyOfType
(Class<T> classType, Policy policy, Boolean activate) <T extends PolicyRule>
TcreatePolicyRuleOfType
(Class<T> classType, String policyId, PolicyRule policyRule) Retrieve a Policy Retrieves a policylistPolicies
(String type, String status, String expand) List all Policies Lists all policies with the specified typeMethods inherited from class org.openapitools.client.api.PolicyApi
activatePolicy, activatePolicy, activatePolicyRule, activatePolicyRule, clonePolicy, clonePolicy, createPolicy, createPolicy, createPolicyRule, createPolicyRule, deactivatePolicy, deactivatePolicy, deactivatePolicyRule, deactivatePolicyRule, deletePolicy, deletePolicy, deletePolicyResourceMapping, deletePolicyResourceMapping, deletePolicyRule, deletePolicyRule, getApiClient, getObjectMapper, getPolicy, getPolicyMapping, getPolicyMapping, getPolicyRule, getPolicyRule, listPolicies, listPolicyApps, listPolicyApps, listPolicyMappings, listPolicyMappings, listPolicyRules, listPolicyRules, mapResourceToPolicy, mapResourceToPolicy, replacePolicy, replacePolicy, replacePolicyRule, replacePolicyRule, setApiClient
-
Constructor Details
-
PolicyApiHelper
-
PolicyApiHelper
-
-
Method Details
-
createPolicyOfType
public <T extends Policy> T createPolicyOfType(Class<T> classType, Policy policy, Boolean activate) throws ApiException - Throws:
ApiException
-
getPolicy
Description copied from class:PolicyApi
Retrieve a Policy Retrieves a policy- Overrides:
getPolicy
in classPolicyApi
- Parameters:
policyId
- `id` of the Policy (required)expand
- (optional, default to )- Returns:
- Policy
- Throws:
ApiException
- if fails to make API call
-
listPolicies
Description copied from class:PolicyApi
List all Policies Lists all policies with the specified type- Overrides:
listPolicies
in classPolicyApi
- Parameters:
type
- (required)status
- (optional)expand
- (optional, default to )- Returns:
- List<Policy>
- Throws:
ApiException
- if fails to make API call
-
createPolicyRuleOfType
public <T extends PolicyRule> T createPolicyRuleOfType(Class<T> classType, String policyId, PolicyRule policyRule) throws ApiException - Throws:
ApiException
-