Interface IPluginSessionReplacer
Uses
The session placeholder replacer is a special form of the system placeholder replacer, which is applied when a template is delivered to the browser. It is executed after all other placeholder replacements and is used to insert values that should only be valid within a form session, e.g. time-limited links.
The placeholder substitution searches for the following pattern and replaces it with the corresponding value:
[%$<placeholder name>%] |
When using multiple SessionReplacer implementations, the order in which they are executed is not fixed. Therefore, the order may be different each time.
The SessionReplacer implementations are basically executed with each template delivery in the respective application area (system or client plug-in) in which they were installed. It is therefore recommended to first check within the implementation logic whether the SessionReplacer should be executed for the current process processing. This can be made configurable, for example, by using Plugin-Properties.
Method signatures
The plugin interface IPluginSessionReplacer references all methods provided by the base interface IFCPlugin.
and additionally the following plugin-specific method signatures:
IPluginSessionReplacerRetVal replace(IPluginSessionReplacerParams params) throws FCPluginException Transfer value: The IPluginSessionReplacerParams type provides access to the following properties:
return values: The return value must be of type IPluginSessionReplacerRetVal. A reference implementation is provided by the PluginGenericReplacerRetVal class, which shall be initialised with the generated replacement value. |
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article