public class StringReplacePostLoadProcessor extends Object implements IPostLoadProcessor
Example usage:
Example to use StringReplacePostLoadProcessor's constants:
Modifier and Type | Class and Description |
---|---|
static class |
StringReplacePostLoadProcessor.StringConstant
Enum containing the constants.
|
Constructor and Description |
---|
StringReplacePostLoadProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
processSource(SessionConfig sessionConfig,
Source source,
Node parametersNode,
ITransaction transaction) |
protected String |
readParameterValue(String parameterName,
Node parametersNode)
Reads the value of a given parameter using its name.
|
protected void |
replaceStrings(Source<?> source,
String fieldId,
String from,
String to)
Replace the from string by the to string in a field of a source.
|
public void processSource(SessionConfig sessionConfig, Source source, Node parametersNode, ITransaction transaction) throws PortalException
processSource
in interface IPostLoadProcessor
PortalException
protected String readParameterValue(String parameterName, Node parametersNode) throws PortalException
parameterName
- parameter's name.parametersNode
- parent node.PortalException
- whenever an error occur.protected void replaceStrings(Source<?> source, String fieldId, String from, String to) throws PortalException
source
- the source instance.fieldId
- the id of the desired field.from
- the string that will be replaced.to
- the string that will replace.PortalException
- whenever an error occur.LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.