Class DataRecordUtil
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.DataRecordUtil
-
public class DataRecordUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
applySubstitution(String text, DataRecord data, String lang)
Returns : "But who is xoxox ?"static void
updateFields(String[] fieldNames, DataRecord updatedRecord, DataRecord copiedRecord, String language)
Updates the specified fields.
-
-
-
Method Detail
-
updateFields
public static void updateFields(String[] fieldNames, DataRecord updatedRecord, DataRecord copiedRecord, String language) throws FormException
Updates the specified fields.- Throws:
FormException
-
applySubstitution
public static String applySubstitution(String text, DataRecord data, String lang)
Returns : "But who is xoxox ?" for : "But who is ${foo} ?" when xoxox is the value of the foo field, The resolvedVar is used to detect recursive call like : foo = "${foo}"
-
-