Class Dictionary

All Implemented Interfaces:
ConfigurationItem, IDictionary, IEncryptedDictionary, Serializable, Comparable<BaseConfigurationItem>
Direct Known Subclasses:
EncryptedDictionary

@Metadata(root=ENVIRONMENTS, description="A Dictionary contains key-value pairs that can be replaced") @TypeIcon("icons/types/udm.Dictionary.svg") public class Dictionary extends AbstractDictionary implements IEncryptedDictionary
A Dictionary is a CI that contains Environment-specific entries for placeholder resolution. A dictionary value can refer to another dictionary entry. This is accomplished by using the {{..}} placeholder syntax. For example: MESSAGE Welcome to {{APP_NAME}}!
See Also:
  • Constructor Details

    • Dictionary

      public Dictionary()
  • Method Details

    • setEntries

      public void setEntries(Map<String,String> dict)
      Parameters:
      dict - The dictionary entries.
    • getEntries

      public Map<String,String> getEntries()
      Specified by:
      getEntries in interface IDictionary
      Returns:
      The dictionary entries.
    • getEncryptedEntries

      public Map<String,String> getEncryptedEntries()
      Specified by:
      getEncryptedEntries in interface IEncryptedDictionary
      Returns:
      The encrypted dictionary entries
    • setEncryptedEntries

      public void setEncryptedEntries(Map<String,String> encryptedEntries)
      Parameters:
      encryptedEntries - The encrypted dictionary entries
    • getValue

      public String getValue(String key)
      Specified by:
      getValue in interface IDictionary
      Parameters:
      key - The key of a dictionary entry.
      Returns:
      The value associated with the given key.
    • hasValue

      public boolean hasValue(String key)
      Parameters:
      key - The key of a dictionary entry.
      Returns:
      Whether the dictionary contains the given key.
    • getRestrictToDistributions

      public Set<Application> getRestrictToDistributions()
      Returns:
      The set of Applications only for which the dictionary is applied.