public class PlaceholderReplacer extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PlaceholderReplacer.IEntityContextFactory |
Modifier and Type | Field and Description |
---|---|
static String |
PARAMS_SPLITCHAR |
Constructor and Description |
---|
PlaceholderReplacer() |
Modifier and Type | Method and Description |
---|---|
static String |
cleanUp(String text) |
static List<Pattern> |
getPatternList() |
static boolean |
matchPlaceholder(String text) |
static String |
parse(IEntityContext ec,
String text,
IFormDataAdapter fda,
IWorkflowProcessingContext wpc,
Vorgang vorgang,
Mandant mandant,
boolean encodeForHTML)
Deprecated.
|
static String |
parse(IEntityContext ec,
String text,
IFormDataAdapter fda,
Mandant client,
FormVersion formVersion,
boolean encodeForHTML)
Deprecated.
|
static String |
parse(IEntityContext ec,
String text,
IFormDataAdapter fda,
Mandant client,
Vorgang formRecord,
boolean encodeForHTML)
Deprecated.
|
static String |
parse(IEntityContext ec,
String text,
IReplacerParams parameters)
Deprecated.
|
static String |
parse(IEntityContext ec,
String text,
Vorgang formRecord,
boolean encodeForHTML)
Deprecated.
|
static String |
parse(String text,
IExtendedFormRequestContext requestCtx,
boolean encodeForHTML)
Replaces as much as it can with the given information of the request Ctx
|
static String |
parse(String text,
IFormDataAdapter fda,
IWorkflowProcessingContext wpc,
Vorgang vorgang,
Mandant mandant,
boolean encodeForHTML)
Diese Methode dient dazu, all verfügbaren Parser auf einen Text anzuwenden.
|
static String |
parse(String text,
IFormDataAdapter fda,
Mandant client,
FormVersion formVersion,
boolean encodeForHTML)
This method applies all available placeholder replacers on the given text.
|
static String |
parse(String text,
IFormDataAdapter fda,
Mandant client,
Vorgang formRecord,
boolean encodeForHTML)
This method applies all available placeholder replacers on the given text.
|
static String |
parse(String text,
IReplacerParams parameters) |
static String |
parse(String text,
IWorkflowProcessingContext wpc)
Diese Methode dient dazu, all verfügbaren Parser auf einen Text anzuwenden.
|
static String |
parse(String text,
IWorkflowProcessingContext wpc,
boolean encodeUserInput) |
static String |
parse(String text,
Vorgang formRecord,
boolean encodeForHTML) |
static String |
parseForContextValues(IEntityContext ec,
String text,
IContextReplacerParams parameters)
Deprecated.
|
static String |
parseForContextValues(String text,
IContextReplacerParams parameters) |
static String |
parseForFormValues(IEntityContext ec,
String text,
IFormDataAdapter formData,
FormVersion formVersion,
boolean encodeForHTML)
Deprecated.
|
static String |
parseForFormValues(IEntityContext ec,
String text,
IFormReplacerParams parameters)
Deprecated.
|
static String |
parseForFormValues(String text,
IFormDataAdapter formData,
FormVersion formVersion,
boolean encodeForHTML)
Deprecated.
|
static String |
parseForFormValues(String text,
IFormReplacerParams parameters) |
static String |
parseForI18nValues(String text,
II18nValueReplacerParams parameters)
Diese Methode dient dazu, Formularelementplatzhalter durch Formularwerte zu ersetzten.
|
static String |
parseForSessionValues(IEntityContext ec,
String text,
ISessionReplacerParams parameters)
Deprecated.
|
static String |
parseForSessionValues(IEntityContext ec,
String text,
Vorgang process,
String baseUrl,
String sessionId)
Deprecated.
|
static String |
parseForSessionValues(String text,
ISessionReplacerParams parameters) |
static String |
parseForSessionValues(String text,
Vorgang process,
String baseUrl,
String sessionId)
Deprecated.
|
static String |
parseForSystemAttributes(IEntityContext ec,
String text,
ISystemReplacerParams parameters)
Deprecated.
|
static String |
parseForSystemAttributes(IEntityContext ec,
String text,
Vorgang process,
IWorkflowProcessingContext wfpctx)
Deprecated.
|
static String |
parseForSystemAttributes(String text,
ISystemReplacerParams parameters) |
static String |
parseForSystemAttributes(String text,
Vorgang process,
IWorkflowProcessingContext wfpctx)
Deprecated.
|
static String |
parseForTemplates(IEntityContext ec,
String text,
ITemplateReplacerParams parameters)
Deprecated.
|
static String |
parseForTemplates(IEntityContext ec,
String text,
Mandant client)
Deprecated.
|
static String |
parseForTemplates(String text,
ITemplateReplacerParams parameters) |
static String |
parseForTemplates(String text,
Mandant client)
Deprecated.
|
static String |
replaceFormValue(IEntityContext ec,
String placeholder,
String placeholderContent,
IFormDataAdapter formData,
FormVersion formVersion,
boolean encodeForHTML)
Deprecated.
|
static String |
replaceFormValue(String placeholder,
String placeholderContent,
IFormDataAdapter formData,
FormVersion formVersion,
boolean encodeForHTML)
Deprecated.
|
static String |
replaceI18nValue(String placeholder,
String placeholderContent,
II18nValueReplacerParams parameters) |
static String |
replaceSessionValues(IEntityContext ec,
String placeholder,
String placeholderContent,
IContextReplacerParams parameters,
String contextPath)
Deprecated.
|
static String |
replaceSessionValues(IEntityContext ec,
String placeholder,
String placeholderContent,
Vorgang process,
String sessionId,
String baseUrl)
Deprecated.
|
static String |
replaceSessionValues(String placeholder,
String placeholderContent,
IContextReplacerParams parameters,
String contextPath)
Deprecated.
|
static String |
replaceSessionValues(String placeholder,
String placeholderContent,
Vorgang process,
String sessionId,
String baseUrl)
Deprecated.
|
static String |
replaceSystemValue(IEntityContext ec,
String placeholder,
String placeholderContent,
IWorkflowProcessingContext wfpctx)
Deprecated.
|
static String |
replaceSystemValue(String placeholder,
String placeholderContent,
IWorkflowProcessingContext wfpctx)
Deprecated.
|
static String |
replaceTemplateValue(IEntityContext ec,
String placeholder,
String placeholderContent,
Mandant client)
Deprecated.
|
static String |
replaceTemplateValue(String placeholder,
String placeholderContent,
Mandant client)
Deprecated.
|
static void |
setDefaultFormValueReplacer(IFormValueReplacer formReplacer) |
static void |
setDefaultI18nValueReplacer(II18nValueReplacer i18nReplacer) |
static void |
setDefaultSessionValueReplacer(ISessionValueReplacer sessionReplacer) |
static void |
setDefaultSystemValueReplcaer(ISystemValueReplacer systemReplacer) |
static void |
setDefaultTemplateValueReplacer(ITemplateValueReplacer templateReplacer) |
static void |
setECFactory(PlaceholderReplacer.IEntityContextFactory ecFactory) |
public static final String PARAMS_SPLITCHAR
public static String parse(String text, IReplacerParams parameters)
public static String parse(String text, IFormDataAdapter fda, IWorkflowProcessingContext wpc, Vorgang vorgang, Mandant mandant, boolean encodeForHTML)
null
übergeben, so kann ein Parser ausgelassen werdentext
- Text der geparst werden sollfda
- Parsen des Texts mit Formdateninhalten (null
um
replaceFormValue(IEntityContext, String, String, IFormDataAdapter, FormVersion, boolean)
zu überspringen)wpc
- Parsen des Texts mit IWorkflowProcessingContext
-Inhalten (null
um
parseForSystemAttributes(IEntityContext, String, Vorgang, IWorkflowProcessingContext)
zu überspringen)vorgang
- Parsen des Texts mit Systemattributen (null
um
parseForSystemAttributes(IEntityContext, String, Vorgang, IWorkflowProcessingContext)
zu überspringen)mandant
- Mandant
auf dessen Textbaustein
-Instanzen zugegriffen werden sollpublic static String parse(String text, IFormDataAdapter fda, Mandant client, Vorgang formRecord, boolean encodeForHTML)
null
for one of the
arguments to skip all placeholder replaces that require this argument.text
- The text to be processed.fda
- Required for form element placeholders. Pass null
to skip
replaceFormValue(IEntityContext, String, String, IFormDataAdapter, FormVersion, boolean)
.formRecord
- Required form form value placeholders. Pass null
to skip
replaceFormValue(IEntityContext, String, String, IFormDataAdapter, FormVersion, boolean)
.client
- Client whose template resources are used. Required for template placeholders. Pass null to skip
parseForTemplates(IEntityContext, String, Mandant)
.public static String parse(String text, IExtendedFormRequestContext requestCtx, boolean encodeForHTML)
text
- String
text to parse for placeholdersrequestCtx
- IExtendedFormRequestContext
holding information for replacementpublic static String parse(String text, IFormDataAdapter fda, Mandant client, FormVersion formVersion, boolean encodeForHTML)
null
for one of the
arguments to skip all placeholder replacements that require this argument.text
- The text to be processed.fda
- Required for form element placeholders. Pass null
to skip
replaceFormValue(IEntityContext, String, String, IFormDataAdapter, FormVersion, boolean)
.formVersion
- Required form form value placeholders. Pass null
to skip
replaceFormValue(IEntityContext, String, String, IFormDataAdapter, FormVersion, boolean)
.client
- Client whose template resources are used. Required for template placeholders. Pass null to skip
parseForTemplates(IEntityContext, String, Mandant)
.public static String parse(String text, IWorkflowProcessingContext wpc)
text
- Text der geparst werden sollwpc
- Parsen des Texts mit IWorkflowProcessingContext
-Inhaltenpublic static String parse(String text, IWorkflowProcessingContext wpc, boolean encodeUserInput)
public static String parseForFormValues(String text, IFormReplacerParams parameters)
public static String parseForSessionValues(String text, ISessionReplacerParams parameters)
public static String parseForContextValues(String text, IContextReplacerParams parameters)
public static String parseForSystemAttributes(String text, ISystemReplacerParams parameters)
public static String parseForTemplates(String text, ITemplateReplacerParams parameters)
public static String parseForI18nValues(String text, II18nValueReplacerParams parameters)
text
- - Zeichenkette in der zu ersetzende Platzhalter vorkommenparameters
- - the map of i18n variablespublic static String replaceI18nValue(String placeholder, String placeholderContent, II18nValueReplacerParams parameters)
public static String cleanUp(String text)
text
- Text to be cleaned from placeholders.public static void setDefaultSessionValueReplacer(ISessionValueReplacer sessionReplacer)
sessionReplacer
- the sessionReplacer to setpublic static void setDefaultSystemValueReplcaer(ISystemValueReplacer systemReplacer)
systemReplacer
- the systemReplcaer to setpublic static void setDefaultTemplateValueReplacer(ITemplateValueReplacer templateReplacer)
templateReplacer
- the templateReplacer to setpublic static void setDefaultFormValueReplacer(IFormValueReplacer formReplacer)
formReplacer
- the formReplacer to setpublic static void setDefaultI18nValueReplacer(II18nValueReplacer i18nReplacer)
i18nReplacer
- the i18nReplacer to setpublic static void setECFactory(PlaceholderReplacer.IEntityContextFactory ecFactory)
public static boolean matchPlaceholder(String text)
@Deprecated public static String replaceTemplateValue(String placeholder, String placeholderContent, Mandant client)
@Deprecated public static String replaceSessionValues(String placeholder, String placeholderContent, Vorgang process, String sessionId, String baseUrl)
@Deprecated public static String replaceSessionValues(String placeholder, String placeholderContent, IContextReplacerParams parameters, String contextPath)
@Deprecated public static String replaceSystemValue(String placeholder, String placeholderContent, IWorkflowProcessingContext wfpctx)
@Deprecated public static String replaceFormValue(String placeholder, String placeholderContent, IFormDataAdapter formData, FormVersion formVersion, boolean encodeForHTML)
@Deprecated public static String parseForTemplates(String text, Mandant client)
@Deprecated public static String parseForSystemAttributes(String text, Vorgang process, IWorkflowProcessingContext wfpctx)
@Deprecated public static String parseForSessionValues(String text, Vorgang process, String baseUrl, String sessionId)
@Deprecated public static String parseForFormValues(String text, IFormDataAdapter formData, FormVersion formVersion, boolean encodeForHTML)
@Deprecated public static String parse(IEntityContext ec, String text, IReplacerParams parameters)
@Deprecated public static String parse(IEntityContext ec, String text, IFormDataAdapter fda, IWorkflowProcessingContext wpc, Vorgang vorgang, Mandant mandant, boolean encodeForHTML)
@Deprecated public static String parse(IEntityContext ec, String text, IFormDataAdapter fda, Mandant client, Vorgang formRecord, boolean encodeForHTML)
@Deprecated public static String parse(IEntityContext ec, String text, Vorgang formRecord, boolean encodeForHTML)
@Deprecated public static String parse(IEntityContext ec, String text, IFormDataAdapter fda, Mandant client, FormVersion formVersion, boolean encodeForHTML)
@Deprecated public static String parseForFormValues(IEntityContext ec, String text, IFormDataAdapter formData, FormVersion formVersion, boolean encodeForHTML)
@Deprecated public static String parseForFormValues(IEntityContext ec, String text, IFormReplacerParams parameters)
@Deprecated public static String parseForSessionValues(IEntityContext ec, String text, Vorgang process, String baseUrl, String sessionId)
@Deprecated public static String parseForSessionValues(IEntityContext ec, String text, ISessionReplacerParams parameters)
@Deprecated public static String parseForContextValues(IEntityContext ec, String text, IContextReplacerParams parameters)
@Deprecated public static String parseForSystemAttributes(IEntityContext ec, String text, Vorgang process, IWorkflowProcessingContext wfpctx)
@Deprecated public static String parseForSystemAttributes(IEntityContext ec, String text, ISystemReplacerParams parameters)
@Deprecated public static String parseForTemplates(IEntityContext ec, String text, Mandant client)
@Deprecated public static String parseForTemplates(IEntityContext ec, String text, ITemplateReplacerParams parameters)
@Deprecated public static String replaceTemplateValue(IEntityContext ec, String placeholder, String placeholderContent, Mandant client)
@Deprecated public static String replaceSessionValues(IEntityContext ec, String placeholder, String placeholderContent, Vorgang process, String sessionId, String baseUrl)
@Deprecated public static String replaceSessionValues(IEntityContext ec, String placeholder, String placeholderContent, IContextReplacerParams parameters, String contextPath)
@Deprecated public static String replaceSystemValue(IEntityContext ec, String placeholder, String placeholderContent, IWorkflowProcessingContext wfpctx)
@Deprecated public static String replaceFormValue(IEntityContext ec, String placeholder, String placeholderContent, IFormDataAdapter formData, FormVersion formVersion, boolean encodeForHTML)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.