com.silverpeas.form
Class DataRecordUtil

java.lang.Object
  extended by com.silverpeas.form.DataRecordUtil

public class DataRecordUtil
extends Object


Constructor Summary
DataRecordUtil()
           
 
Method Summary
static String applySubstitution(String text, DataRecord data, String lang)
          Returns : "But who is xoxox ?"
static void updateFields(String[] fieldNames, DataRecord updatedRecord, DataRecord copiedRecord)
          Updates the specified fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataRecordUtil

public DataRecordUtil()
Method Detail

updateFields

public static void updateFields(String[] fieldNames,
                                DataRecord updatedRecord,
                                DataRecord copiedRecord)
                         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}"



Copyright © 2016 Silverpeas. All Rights Reserved.