Class HierarchicalConfigService

java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.hierarchicalconfig.HierarchicalConfigService

public class HierarchicalConfigService extends AbstractService
Provides hierarchical configuration management a.k.a. platform settings a.k.a. feature flags. For more detailed description, see this documentation ...
  • Field Details

    • PROJECT_CONFIG_ITEMS_TEMPLATE

      public static final org.springframework.web.util.UriTemplate PROJECT_CONFIG_ITEMS_TEMPLATE
    • PROJECT_CONFIG_ITEM_TEMPLATE

      public static final org.springframework.web.util.UriTemplate PROJECT_CONFIG_ITEM_TEMPLATE
  • Constructor Details

    • HierarchicalConfigService

      public HierarchicalConfigService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)
  • Method Details

    • listProjectConfigItems

      public ConfigItems listProjectConfigItems(Project project)
      Returns all config items for given project (including inherited ones from its hierarchy).
      Parameters:
      project - project, cannot be null
      Returns:
      config item for given project
    • getProjectConfigItem

      public ConfigItem getProjectConfigItem(Project project, String configName)
      Returns config item for given project (even if it's inherited from its hierarchy).
      Parameters:
      project - project, cannot be null
      configName - unique name (key) of config item, cannot be empty
      Returns:
      config item for given project with given name (key)
    • setProjectConfigItem

      public ConfigItem setProjectConfigItem(Project project, ConfigItem configItem)
      Creates or updates config item for given project.
      Parameters:
      project - project for which the config item should be created/updated, cannot be null
      configItem - config item to be created/updated, cannot be null
      Returns:
      created/updated project config item
    • removeProjectConfigItem

      public void removeProjectConfigItem(ConfigItem configItem)
      Removes existing project config item.
      Parameters:
      configItem - existing project config item with links set properly, cannot be null