Class ExtendedPluginContextHelper
- java.lang.Object
-
- com.identityworksllc.iiq.common.plugin.ExtendedPluginContextHelper
-
- All Implemented Interfaces:
CommonExtendedPluginContext
public class ExtendedPluginContextHelper extends Object implements CommonExtendedPluginContext
A helper class intended to be used by anybody implementing CommonExtendedPluginConfig.It will retrieve values first from the configured
Configurationobject, then from the plugin settings.You should construct a new instance of this class for each retrieval. Do not cache them or your SailPointContext will go stale.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceExtendedPluginContextHelper.ConfigurationNameProvider
-
Constructor Summary
Constructors Constructor Description ExtendedPluginContextHelper(String pluginName, sailpoint.api.SailPointContext context, sailpoint.plugin.PluginContext pluginContext, ExtendedPluginContextHelper.ConfigurationNameProvider nameProvider)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetConfigurationBool(String settingName)Gets the configuration setting from the default plugin Configuration object or else from the plugin settingsintgetConfigurationInt(String settingName)Gets the configuration setting from the default plugin Configuration object or else from the plugin settings<T> TgetConfigurationObject(String settingName)Gets the given configuration setting as an ObjectStringgetConfigurationString(String settingName)Gets the configuration setting from the default plugin Configuration object or else from the plugin settings
-
-
-
Constructor Detail
-
ExtendedPluginContextHelper
public ExtendedPluginContextHelper(String pluginName, sailpoint.api.SailPointContext context, sailpoint.plugin.PluginContext pluginContext, ExtendedPluginContextHelper.ConfigurationNameProvider nameProvider)
Constructor- Parameters:
pluginName- The plugin namecontext- The Sailpoint contextpluginContext- The plugin context class
-
-
Method Detail
-
getConfigurationBool
public boolean getConfigurationBool(String settingName)
Description copied from interface:CommonExtendedPluginContextGets the configuration setting from the default plugin Configuration object or else from the plugin settings- Specified by:
getConfigurationBoolin interfaceCommonExtendedPluginContext- Parameters:
settingName- The setting to retrieve- Returns:
- The setting value
-
getConfigurationInt
public int getConfigurationInt(String settingName)
Description copied from interface:CommonExtendedPluginContextGets the configuration setting from the default plugin Configuration object or else from the plugin settings- Specified by:
getConfigurationIntin interfaceCommonExtendedPluginContext- Parameters:
settingName- The setting to retrieve- Returns:
- The setting value
-
getConfigurationObject
public <T> T getConfigurationObject(String settingName)
Description copied from interface:CommonExtendedPluginContextGets the given configuration setting as an Object- Specified by:
getConfigurationObjectin interfaceCommonExtendedPluginContext- Parameters:
settingName- The setting to retrieve as an Object- Returns:
- The object
-
getConfigurationString
public String getConfigurationString(String settingName)
Description copied from interface:CommonExtendedPluginContextGets the configuration setting from the default plugin Configuration object or else from the plugin settings- Specified by:
getConfigurationStringin interfaceCommonExtendedPluginContext- Parameters:
settingName- The setting to retrieve- Returns:
- The setting value
-
-