Interface IPluginSessionReplacer
-
- All Superinterfaces:
IFCPlugin
,INamedUiElement
,INameProviding
,ITransferable
,Serializable
public interface IPluginSessionReplacer extends IFCPlugin
Interface for a system replacer plugin. This plugin can add support for additional system placeholders. A system placeholder is a placeholder with a pattern as definedCmnConst.PH_PATTERN_SYSTEM
:[%$PLACEHOLDER_NAME%]
Please note these placeholder plugins are run before the built-in session placeholder replacer. As such, when a sesssion placeholder was already processed and replaced by a plugin, the built-in placeholder will not be applied anymore. Also, when multiple session placeholder replacer plugins are installed, there are not guarantees made regarding the order in which the replacer plugins are applied.- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
CONFIG_FILENAME
-
Fields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAME
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IPluginSessionReplacerRetVal
replace(IPluginSessionReplacerParams params)
This is the main method of this plugin that should perform the placeholder replacement.-
Methods inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
getDescription, getDescription, getDisplayName, getName, initialize, initPlugin, install, shutdown, shutdown, uninstall, validateConfigurationData
-
-
-
-
Method Detail
-
replace
IPluginSessionReplacerRetVal replace(IPluginSessionReplacerParams params) throws FCPluginException
This is the main method of this plugin that should perform the placeholder replacement. This method is once for each encountered placeholder and passed the name of that placeholder. This plugin does not have to handle each placeholder. Return the name of the placeholder to indicate that this plugin cannot handle that placeholder.When any exception other than
FCPluginException
is thrown, the current process is aborted. For example, when the form is submitted and the workflow is run, this would result in an internal server error and a generic error HTML reponse page.- Parameters:
params
- The parameters this plugin may make use of, such as the placeholder to be replaced and the current workflow context.- Returns:
- The value to be used as the replacement for the given placeholder. In case you do not wish to replace the
given placeholder (and let it be handled by another placeholder plugin or the default replacer), return
null
orreplacementFailure
. - Throws:
FCPluginException
- May be thrown when this plugin cannot perform the replacement. When an error is thrown, the placeholder is not replaced and may be replaced by another plugin.
-
-