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.String CLIENT_CONFIG_ITEMS_URI  
    static java.lang.String DATA_PRODUCT_CONFIG_ITEMS_URI  
    static java.lang.String DOMAIN_CONFIG_ITEMS_URI  
    static java.lang.String PROJECT_CONFIG_ITEMS_URI  
    static java.lang.String PROJECT_GROUP_CONFIG_ITEMS_URI  
    static java.lang.String SEGMENT_CONFIG_ITEMS_URI  
  • Constructor Summary

    Constructors 
    Constructor Description
    ConfigItems​(java.util.List<ConfigItem> items)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getValue​(java.lang.String configName)
    Returns value if config item exists, otherwise returns null.
    boolean isEnabled​(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.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

  • Constructor Details

  • Method Details

    • iterator

      public java.util.Iterator<ConfigItem> iterator()
      Specified by:
      iterator in interface java.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:
      toString in class java.lang.Object