Liferay 6.2.0

com.liferay.portlet.journal.util
Class JournalConverterImpl

java.lang.Object
  extended by com.liferay.portlet.journal.util.JournalConverterImpl
All Implemented Interfaces:
JournalConverter

public class JournalConverterImpl
extends Object
implements JournalConverter


Constructor Summary
JournalConverterImpl()
           
 
Method Summary
protected  void addDDMFields(Element dynamicElementElement, DDMStructure ddmStructure, Fields ddmFields, String defaultLocale)
           
protected  void addMetadataEntry(Element metadataElement, String name, String value)
           
protected  int countFieldRepetition(Fields ddmFields, String fieldName, String parentFieldName, int parentOffset)
           
protected  Element fetchMetadataEntry(Element parentElement, String attributeName, String attributeValue)
           
protected  String getAvailableLocales(Fields ddmFields)
           
 String getContent(DDMStructure ddmStructure, Fields ddmFields)
           
 Fields getDDMFields(DDMStructure ddmStructure, String content)
           
 String getDDMXSD(String journalXSD)
           
protected  Serializable getDocumentLibraryValue(String url)
           
protected  Field getField(Element dynamicElementElement, DDMStructure ddmStructure, String defaultLocale)
           
protected  Serializable getFieldValue(String dataType, String type, Element dynamicContentElement)
           
protected  void getJournalMetadataElement(Element metadataElement)
           
 String getJournalXSD(String ddmXSD)
           
protected  void removeAttribute(Element element, String attributeName)
           
protected  void updateContentDynamicElement(Element dynamicElementElement, DDMStructure ddmStructure, Field ddmField, DDMFieldsCounter ddmFieldsCounter)
           
protected  void updateContentDynamicElement(Element dynamicElementElement, DDMStructure ddmStructure, Fields ddmFields, DDMFieldsCounter ddmFieldsCounter)
           
protected  void updateDDMXSDDynamicElement(Element dynamicElementElement, String defaultLocale)
           
protected  void updateDynamicContentValue(Element dynamicContentElement, String fieldType, String fieldValue)
           
protected  void updateFieldsDisplay(Fields ddmFields, String fieldName)
           
protected  void updateJournalXSDDynamicElement(Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalConverterImpl

public JournalConverterImpl()
Method Detail

getContent

public String getContent(DDMStructure ddmStructure,
                         Fields ddmFields)
                  throws Exception
Specified by:
getContent in interface JournalConverter
Throws:
Exception

getDDMFields

public Fields getDDMFields(DDMStructure ddmStructure,
                           String content)
                    throws Exception
Specified by:
getDDMFields in interface JournalConverter
Throws:
Exception

getDDMXSD

public String getDDMXSD(String journalXSD)
                 throws Exception
Specified by:
getDDMXSD in interface JournalConverter
Throws:
Exception

getJournalXSD

public String getJournalXSD(String ddmXSD)
                     throws Exception
Specified by:
getJournalXSD in interface JournalConverter
Throws:
Exception

addDDMFields

protected void addDDMFields(Element dynamicElementElement,
                            DDMStructure ddmStructure,
                            Fields ddmFields,
                            String defaultLocale)
                     throws Exception
Throws:
Exception

addMetadataEntry

protected void addMetadataEntry(Element metadataElement,
                                String name,
                                String value)

countFieldRepetition

protected int countFieldRepetition(Fields ddmFields,
                                   String fieldName,
                                   String parentFieldName,
                                   int parentOffset)
                            throws Exception
Throws:
Exception

fetchMetadataEntry

protected Element fetchMetadataEntry(Element parentElement,
                                     String attributeName,
                                     String attributeValue)

getAvailableLocales

protected String getAvailableLocales(Fields ddmFields)

getDocumentLibraryValue

protected Serializable getDocumentLibraryValue(String url)

getField

protected Field getField(Element dynamicElementElement,
                         DDMStructure ddmStructure,
                         String defaultLocale)
                  throws Exception
Throws:
Exception

getFieldValue

protected Serializable getFieldValue(String dataType,
                                     String type,
                                     Element dynamicContentElement)
                              throws Exception
Throws:
Exception

getJournalMetadataElement

protected void getJournalMetadataElement(Element metadataElement)

removeAttribute

protected void removeAttribute(Element element,
                               String attributeName)

updateContentDynamicElement

protected void updateContentDynamicElement(Element dynamicElementElement,
                                           DDMStructure ddmStructure,
                                           Field ddmField,
                                           DDMFieldsCounter ddmFieldsCounter)
                                    throws Exception
Throws:
Exception

updateContentDynamicElement

protected void updateContentDynamicElement(Element dynamicElementElement,
                                           DDMStructure ddmStructure,
                                           Fields ddmFields,
                                           DDMFieldsCounter ddmFieldsCounter)
                                    throws Exception
Throws:
Exception

updateDDMXSDDynamicElement

protected void updateDDMXSDDynamicElement(Element dynamicElementElement,
                                          String defaultLocale)

updateDynamicContentValue

protected void updateDynamicContentValue(Element dynamicContentElement,
                                         String fieldType,
                                         String fieldValue)
                                  throws Exception
Throws:
Exception

updateFieldsDisplay

protected void updateFieldsDisplay(Fields ddmFields,
                                   String fieldName)

updateJournalXSDDynamicElement

protected void updateJournalXSDDynamicElement(Element element)

Liferay 6.2.0