PSA Core

appirio_core.ConfigManager

global without sharing class ConfigManager

Methods

getValue

global static String getValue(String groupKey, String optionName)

Returns the value for the given option or null if the option is not found.

getValue

global static String getValue(String groupKey, String optionName, String defaultValue)

Returns the value for the given option or the default value if the option is not found.

getValue

global static String getValue(String groupKey, String optionName, String defaultValue, Boolean noCache)

Returns the value for the given option or the default value if the option is not found.

Input Parameters

Name Type Description
noCache Boolean Whether to load and cache all options within the group if this option is not found in the cache.

getBooleanValue

global static Boolean getBooleanValue(String groupKey, String optionName, Boolean defaultValue, Boolean noCache)

getBooleanValue

global static Boolean getBooleanValue(String groupKey, String optionName, Boolean defaultValue)

getIntValue

global static Integer getIntValue(String groupKey, String optionName)

getIntValue

global static Integer getIntValue(String groupKey, String optionName, Integer defaultValue)

getIntValue

global static Integer getIntValue(String groupKey, String optionName, Integer defaultValue, Boolean noCache)

getDecimalValue

global static Decimal getDecimalValue(String groupKey, String optionName)

getDecimalValue

global static Decimal getDecimalValue(String groupKey, String optionName, Decimal defaultValue)

getDecimalValue

global static Decimal getDecimalValue(String groupKey, String optionName, Decimal defaultValue, Boolean noCache)

getMultiValues

global static List<String> getMultiValues(String groupKey, String optionName)

getMultiValues

global static List<String> getMultiValues(String groupKey, String optionName, List<String> defaultValues)

getMultiValues

global static List<String> getMultiValues(String groupKey, String optionName, List<String> defaultValues, Boolean noCache)

Returns the values for the given option or the default values if the option is not found.

getMultiValuesAsMap

global static Map<String, String> getMultiValuesAsMap(String groupKey, String optionName)

getMultiValuesAsMap

global static Map<String, String> getMultiValuesAsMap(String groupKey, String optionName, Boolean noCache)

Returns a map of key-value pairs in a multi-valued config option. The format of the values is <key>=<value>. This method will retrieve all the values and parse the keys and values into a map. If there is no entry for the config option, the return object is null.

clearCache

global static void clearCache(String groupKey, String optionName)


clearCache

global static void clearCache()


isTriggerEnabled

global static Boolean isTriggerEnabled(String triggerOptionName)


areTriggersEnabled

global static Boolean areTriggersEnabled()


importConfigs

global static void importConfigs(Boolean replaceAll, Boolean unmanagedOrg)

importConfigs

global static void importConfigs(Boolean replaceAll, String nameSpace)

© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.