Class FeatureApi

java.lang.Object
com.okta.sdk.resource.api.FeatureApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T08:35:59.300824-05:00[America/Chicago]", comments="Generator version: 7.8.0") public class FeatureApi extends Object
  • Constructor Details

    • FeatureApi

      public FeatureApi()
    • FeatureApi

      public FeatureApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getFeature

      public Feature getFeature(String featureId) throws ApiException
      Retrieve a Feature Retrieves a feature by ID
      Parameters:
      featureId - `id` of the feature (required)
      Returns:
      Feature
      Throws:
      ApiException - if fails to make API call
    • getFeature

      public Feature getFeature(String featureId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a Feature Retrieves a feature by ID
      Parameters:
      featureId - `id` of the feature (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Feature
      Throws:
      ApiException - if fails to make API call
    • listFeatureDependencies

      public List<Feature> listFeatureDependencies(String featureId) throws ApiException
      List all dependencies Lists all feature dependencies for a specified feature. A feature's dependencies are the features that it requires to be enabled in order for itself to be enabled.
      Parameters:
      featureId - `id` of the feature (required)
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeatureDependencies

      public List<Feature> listFeatureDependencies(String featureId, Map<String,String> additionalHeaders) throws ApiException
      List all dependencies Lists all feature dependencies for a specified feature. A feature's dependencies are the features that it requires to be enabled in order for itself to be enabled.
      Parameters:
      featureId - `id` of the feature (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeatureDependents

      public List<Feature> listFeatureDependents(String featureId) throws ApiException
      List all dependents Lists all feature dependents for the specified feature. A feature's dependents are the features that need to be disabled in order for the feature itself to be disabled.
      Parameters:
      featureId - `id` of the feature (required)
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeatureDependents

      public List<Feature> listFeatureDependents(String featureId, Map<String,String> additionalHeaders) throws ApiException
      List all dependents Lists all feature dependents for the specified feature. A feature's dependents are the features that need to be disabled in order for the feature itself to be disabled.
      Parameters:
      featureId - `id` of the feature (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeatures

      public List<Feature> listFeatures() throws ApiException
      List all Features Lists all self-service features for your org
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • listFeatures

      public List<Feature> listFeatures(Map<String,String> additionalHeaders) throws ApiException
      List all Features Lists all self-service features for your org
      Parameters:
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Feature>
      Throws:
      ApiException - if fails to make API call
    • updateFeatureLifecycle

      public Feature updateFeatureLifecycle(String featureId, FeatureLifecycle lifecycle, String mode) throws ApiException
      Update a Feature lifecycle Updates a feature's lifecycle status. Use this endpoint to enable or disable a feature for your org. Use the `mode=force` parameter to override dependency restrictions for a particular feature. Normally, you can't enable a feature if it has one or more dependencies that aren't enabled. When you use the `mode=force` parameter while enabling a feature, Okta first tries to enable any disabled features that this feature may have as dependencies. If you don't pass the `mode=force` parameter and the feature has dependencies that need to be enabled before the feature is enabled, a 400 error is returned. When you use the `mode=force` parameter while disabling a feature, Okta first tries to disable any enabled features that this feature may have as dependents. If you don't pass the `mode=force` parameter and the feature has dependents that need to be disabled before the feature is disabled, a 400 error is returned. The following chart shows the different state transitions for a feature. ![State transitions of a feature](../../../../../images/features/update-ssfeat-flowchart.png '#width=500px;')
      Parameters:
      featureId - `id` of the feature (required)
      lifecycle - Whether to `ENABLE` or `DISABLE` the feature (required)
      mode - Indicates if you want to force enable or disable a feature. Supported value is `force`. (optional)
      Returns:
      Feature
      Throws:
      ApiException - if fails to make API call
    • updateFeatureLifecycle

      public Feature updateFeatureLifecycle(String featureId, FeatureLifecycle lifecycle, String mode, Map<String,String> additionalHeaders) throws ApiException
      Update a Feature lifecycle Updates a feature's lifecycle status. Use this endpoint to enable or disable a feature for your org. Use the `mode=force` parameter to override dependency restrictions for a particular feature. Normally, you can't enable a feature if it has one or more dependencies that aren't enabled. When you use the `mode=force` parameter while enabling a feature, Okta first tries to enable any disabled features that this feature may have as dependencies. If you don't pass the `mode=force` parameter and the feature has dependencies that need to be enabled before the feature is enabled, a 400 error is returned. When you use the `mode=force` parameter while disabling a feature, Okta first tries to disable any enabled features that this feature may have as dependents. If you don't pass the `mode=force` parameter and the feature has dependents that need to be disabled before the feature is disabled, a 400 error is returned. The following chart shows the different state transitions for a feature. ![State transitions of a feature](../../../../../images/features/update-ssfeat-flowchart.png '#width=500px;')
      Parameters:
      featureId - `id` of the feature (required)
      lifecycle - Whether to `ENABLE` or `DISABLE` the feature (required)
      mode - Indicates if you want to force enable or disable a feature. Supported value is `force`. (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Feature
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()