Class HierarchicalConfigService
java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.hierarchicalconfig.HierarchicalConfigService
Provides hierarchical configuration management a.k.a. platform settings a.k.a. feature flags.
For more detailed description, see this documentation ...
-
Nested Class Summary
Nested classes/interfaces inherited from class com.gooddata.sdk.service.AbstractService
AbstractService.OutputStreamResponseExtractor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.web.util.UriTemplatestatic final org.springframework.web.util.UriTemplateFields inherited from class com.gooddata.sdk.service.AbstractService
mapper, restTemplate -
Constructor Summary
ConstructorsConstructorDescriptionHierarchicalConfigService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings) -
Method Summary
Modifier and TypeMethodDescriptiongetProjectConfigItem(Project project, String configName) Returns config item for given project (even if it's inherited from its hierarchy).listProjectConfigItems(Project project) Returns all config items for given project (including inherited ones from its hierarchy).voidremoveProjectConfigItem(ConfigItem configItem) Removes existing project config item.setProjectConfigItem(Project project, ConfigItem configItem) Creates or updates config item for given project.Methods inherited from class com.gooddata.sdk.service.AbstractService
extractData
-
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
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
Returns config item for given project (even if it's inherited from its hierarchy).- Parameters:
project- project, cannot be nullconfigName- unique name (key) of config item, cannot be empty- Returns:
- config item for given project with given name (key)
-
setProjectConfigItem
Creates or updates config item for given project.- Parameters:
project- project for which the config item should be created/updated, cannot be nullconfigItem- config item to be created/updated, cannot be null- Returns:
- created/updated project config item
-
removeProjectConfigItem
Removes existing project config item.- Parameters:
configItem- existing project config item with links set properly, cannot be null
-