Placeholder substitution (session)
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>%]
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:
- getPlaceholder() complete string of the placeholder (this includes the markup of the placeholder).
- getPlaceholderContent() content of the placeholder (without type-specific markup)
- getEntityContext() current user context, for example to be able to perform database operations
- getTask() the current session
- getSessionId() the session ID
- getContextName() the context name of the application