Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatamapping.io
Class DDMFormJSONDeserializerImpl

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.io.DDMFormJSONDeserializerImpl
All Implemented Interfaces:
DDMFormJSONDeserializer

public class DDMFormJSONDeserializerImpl
extends Object
implements DDMFormJSONDeserializer


Constructor Summary
DDMFormJSONDeserializerImpl()
           
 
Method Summary
protected  void addOptionValueLabels(JSONObject jsonObject, DDMFormFieldOptions ddmFormFieldOptions, String optionValue)
           
 DDMForm deserialize(String serializedDDMForm)
           
protected  Set<Locale> getAvailableLocales(JSONArray jsonArray)
           
protected  DDMFormField getDDMFormField(JSONObject jsonObject)
           
protected  DDMFormFieldOptions getDDMFormFieldOptions(JSONArray jsonArray)
           
protected  List<DDMFormField> getDDMFormFields(JSONArray jsonArray)
           
protected  void setDDMFormAvailableLocales(JSONArray jsonArray, DDMForm ddmForm)
           
protected  void setDDMFormDefaultLocale(String defaultLanguageId, DDMForm ddmForm)
           
protected  void setDDMFormFieldLocalizedValue(JSONObject jsonObject, LocalizedValue localizedValue)
           
protected  void setDDMFormFieldLocalizedValuesDefaultLocale(DDMFormField ddmFormField, Locale defaultLocale)
           
protected  void setDDMFormFieldOptions(JSONArray jsonArray, DDMFormField ddmFormField)
           
protected  void setDDMFormFields(JSONArray jsonArray, DDMForm ddmForm)
           
protected  void setDDMFormLocalizedValuesDefaultLocale(DDMForm ddmForm)
           
protected  void setNestedDDMFormField(JSONArray jsonArray, DDMFormField ddmFormField)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMFormJSONDeserializerImpl

public DDMFormJSONDeserializerImpl()
Method Detail

deserialize

public DDMForm deserialize(String serializedDDMForm)
                    throws PortalException
Specified by:
deserialize in interface DDMFormJSONDeserializer
Throws:
PortalException

addOptionValueLabels

protected void addOptionValueLabels(JSONObject jsonObject,
                                    DDMFormFieldOptions ddmFormFieldOptions,
                                    String optionValue)

getAvailableLocales

protected Set<Locale> getAvailableLocales(JSONArray jsonArray)

getDDMFormField

protected DDMFormField getDDMFormField(JSONObject jsonObject)

getDDMFormFieldOptions

protected DDMFormFieldOptions getDDMFormFieldOptions(JSONArray jsonArray)

getDDMFormFields

protected List<DDMFormField> getDDMFormFields(JSONArray jsonArray)

setDDMFormAvailableLocales

protected void setDDMFormAvailableLocales(JSONArray jsonArray,
                                          DDMForm ddmForm)

setDDMFormDefaultLocale

protected void setDDMFormDefaultLocale(String defaultLanguageId,
                                       DDMForm ddmForm)

setDDMFormFieldLocalizedValue

protected void setDDMFormFieldLocalizedValue(JSONObject jsonObject,
                                             LocalizedValue localizedValue)

setDDMFormFieldLocalizedValuesDefaultLocale

protected void setDDMFormFieldLocalizedValuesDefaultLocale(DDMFormField ddmFormField,
                                                           Locale defaultLocale)

setDDMFormFieldOptions

protected void setDDMFormFieldOptions(JSONArray jsonArray,
                                      DDMFormField ddmFormField)

setDDMFormFields

protected void setDDMFormFields(JSONArray jsonArray,
                                DDMForm ddmForm)

setDDMFormLocalizedValuesDefaultLocale

protected void setDDMFormLocalizedValuesDefaultLocale(DDMForm ddmForm)

setNestedDDMFormField

protected void setNestedDDMFormField(JSONArray jsonArray,
                                     DDMFormField ddmFormField)

Liferay 7.0-ce-m3