Class ConfigItems
java.lang.Object
com.gooddata.sdk.model.hierarchicalconfig.ConfigItems
- All Implemented Interfaces:
java.lang.Iterable<ConfigItem>
public class ConfigItems extends java.lang.Object implements java.lang.Iterable<ConfigItem>
Contains collection of config items aka feature flags aka hierarchical config.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLIENT_CONFIG_ITEMS_URIstatic java.lang.StringDATA_PRODUCT_CONFIG_ITEMS_URIstatic java.lang.StringDOMAIN_CONFIG_ITEMS_URIstatic java.lang.StringPROJECT_CONFIG_ITEMS_URIstatic java.lang.StringPROJECT_GROUP_CONFIG_ITEMS_URIstatic java.lang.StringSEGMENT_CONFIG_ITEMS_URI -
Constructor Summary
Constructors Constructor Description ConfigItems(java.util.List<ConfigItem> items) -
Method Summary
Modifier and Type Method Description java.lang.StringgetValue(java.lang.String configName)Returns value if config item exists, otherwise returns null.booleanisEnabled(java.lang.String configName)Returns true if the config item with given name/key exists and is enabled, false otherwise.java.util.Iterator<ConfigItem>iterator()java.lang.StringtoString()
-
Field Details
-
CLIENT_CONFIG_ITEMS_URI
public static final java.lang.String CLIENT_CONFIG_ITEMS_URI -
DATA_PRODUCT_CONFIG_ITEMS_URI
public static final java.lang.String DATA_PRODUCT_CONFIG_ITEMS_URI -
SEGMENT_CONFIG_ITEMS_URI
public static final java.lang.String SEGMENT_CONFIG_ITEMS_URI -
DOMAIN_CONFIG_ITEMS_URI
public static final java.lang.String DOMAIN_CONFIG_ITEMS_URI -
PROJECT_CONFIG_ITEMS_URI
public static final java.lang.String PROJECT_CONFIG_ITEMS_URI -
PROJECT_GROUP_CONFIG_ITEMS_URI
public static final java.lang.String PROJECT_GROUP_CONFIG_ITEMS_URI
-
-
Constructor Details
-
Method Details
-
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<ConfigItem>
-
getValue
public java.lang.String getValue(java.lang.String configName)Returns value if config item exists, otherwise returns null.- Parameters:
configName- the name/key of the config item- Returns:
- value if config item with given name/key exists, null otherwise
-
isEnabled
public boolean isEnabled(java.lang.String configName)Returns true if the config item with given name/key exists and is enabled, false otherwise.- Parameters:
configName- the name/key of config item- Returns:
- true if the config item with given name/key exists and is enabled, false otherwise
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-