public class JournalConverterImpl extends java.lang.Object implements JournalConverter
Constructor and Description |
---|
JournalConverterImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDDMFields(com.liferay.portal.kernel.xml.Element dynamicElementElement,
com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure,
com.liferay.dynamic.data.mapping.storage.Fields ddmFields,
java.lang.String[] availableLanguageIds,
java.lang.String defaultLanguageId) |
protected void |
addMetadataEntry(com.liferay.portal.kernel.xml.Element metadataElement,
java.lang.String name,
java.lang.String value) |
protected void |
addMissingFieldValues(com.liferay.dynamic.data.mapping.storage.Field ddmField,
java.lang.String defaultLanguageId,
java.util.Set<java.lang.String> missingLanguageIds) |
protected int |
countFieldRepetition(com.liferay.dynamic.data.mapping.storage.Fields ddmFields,
java.lang.String fieldName,
java.lang.String parentFieldName,
int parentOffset) |
protected java.lang.String |
decodeURL(java.lang.String url) |
protected com.liferay.portal.kernel.xml.Element |
fetchMetadataEntry(com.liferay.portal.kernel.xml.Element parentElement,
java.lang.String attributeName,
java.lang.String attributeValue) |
protected java.lang.String |
getAvailableLocales(com.liferay.dynamic.data.mapping.storage.Fields ddmFields) |
java.lang.String |
getContent(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure,
com.liferay.dynamic.data.mapping.storage.Fields ddmFields) |
com.liferay.dynamic.data.mapping.storage.Fields |
getDDMFields(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure,
com.liferay.portal.kernel.xml.Document document) |
com.liferay.dynamic.data.mapping.storage.Fields |
getDDMFields(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure,
java.lang.String content) |
protected java.lang.String[] |
getDDMFieldsDisplayValues(com.liferay.dynamic.data.mapping.storage.Field ddmFieldsDisplayField) |
com.liferay.dynamic.data.mapping.storage.DDMFormValues |
getDDMFormValues(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure,
com.liferay.dynamic.data.mapping.storage.Fields fields) |
java.lang.String |
getDDMXSD(java.lang.String journalXSD)
Deprecated.
As of 3.3.0, with no direct replacement
|
java.lang.String |
getDDMXSD(java.lang.String journalXSD,
java.util.Locale defaultLocale)
Deprecated.
As of 3.3.0, with no direct replacement
|
protected java.io.Serializable |
getDocumentLibraryValue(java.lang.String url) |
protected com.liferay.dynamic.data.mapping.storage.Field |
getField(com.liferay.portal.kernel.xml.Element dynamicElementElement,
com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure,
java.lang.String[] availableLanguageIds,
java.lang.String defaultLanguageId) |
protected java.lang.String |
getFieldInstanceId(com.liferay.dynamic.data.mapping.storage.Fields ddmFields,
java.lang.String fieldName,
int index) |
protected java.io.Serializable |
getFieldValue(java.lang.String dataType,
java.lang.String type,
com.liferay.portal.kernel.xml.Element dynamicContentElement)
Deprecated.
As of 3.0.0, replaced by
getFieldValue(String,
String, Element, Locale) |
protected java.io.Serializable |
getFieldValue(java.lang.String dataType,
java.lang.String type,
com.liferay.portal.kernel.xml.Element dynamicContentElement,
java.util.Locale defaultLocale) |
protected com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntryByDocumentLibraryURL(java.lang.String url) |
protected com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntryByOldDocumentLibraryURL(java.lang.String url) |
protected void |
getJournalMetadataElement(com.liferay.portal.kernel.xml.Element metadataElement) |
java.lang.String |
getJournalXSD(java.lang.String ddmXSD)
Deprecated.
As of 3.3.0, with no direct replacement
|
protected void |
removeAttribute(com.liferay.portal.kernel.xml.Element element,
java.lang.String attributeName) |
protected void |
setDLAppLocalService(com.liferay.document.library.kernel.service.DLAppLocalService dlAppLocalService) |
void |
setFieldsToDDMFormValuesConverter(com.liferay.dynamic.data.mapping.util.FieldsToDDMFormValuesConverter fieldsToDDMFormValuesConverter) |
protected void |
setGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService) |
protected java.lang.String[] |
splitFieldsDisplayValue(com.liferay.dynamic.data.mapping.storage.Field fieldsDisplayField) |
protected void |
updateContentDynamicElement(com.liferay.portal.kernel.xml.Element dynamicElementElement,
com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure,
com.liferay.dynamic.data.mapping.storage.Fields ddmFields,
com.liferay.dynamic.data.mapping.util.impl.DDMFieldsCounter ddmFieldsCounter) |
protected void |
updateContentDynamicElement(com.liferay.portal.kernel.xml.Element dynamicElementElement,
com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure,
com.liferay.dynamic.data.mapping.storage.Fields ddmFields,
java.lang.String fieldName,
com.liferay.dynamic.data.mapping.util.impl.DDMFieldsCounter ddmFieldsCounter) |
protected void |
updateDDMXSDDynamicElement(com.liferay.portal.kernel.xml.Element dynamicElementElement,
java.lang.String defaultLanguageId) |
protected void |
updateDynamicContentValue(com.liferay.portal.kernel.xml.Element dynamicContentElement,
java.lang.String fieldType,
boolean multiple,
java.lang.String fieldValue) |
protected void |
updateFieldsDisplay(com.liferay.dynamic.data.mapping.storage.Fields ddmFields,
java.lang.String fieldName,
java.lang.String instanceId) |
protected void |
updateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element) |
protected void |
updateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element,
java.lang.String defaultLanguageId) |
public java.lang.String getContent(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.storage.Fields ddmFields) throws java.lang.Exception
getContent
in interface JournalConverter
java.lang.Exception
public com.liferay.dynamic.data.mapping.storage.Fields getDDMFields(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.portal.kernel.xml.Document document) throws com.liferay.portal.kernel.exception.PortalException
getDDMFields
in interface JournalConverter
com.liferay.portal.kernel.exception.PortalException
public com.liferay.dynamic.data.mapping.storage.Fields getDDMFields(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, java.lang.String content) throws com.liferay.portal.kernel.exception.PortalException
getDDMFields
in interface JournalConverter
com.liferay.portal.kernel.exception.PortalException
public com.liferay.dynamic.data.mapping.storage.DDMFormValues getDDMFormValues(com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.storage.Fields fields) throws com.liferay.portal.kernel.exception.PortalException
getDDMFormValues
in interface JournalConverter
com.liferay.portal.kernel.exception.PortalException
@Deprecated public java.lang.String getDDMXSD(java.lang.String journalXSD) throws java.lang.Exception
getDDMXSD
in interface JournalConverter
java.lang.Exception
@Deprecated public java.lang.String getDDMXSD(java.lang.String journalXSD, java.util.Locale defaultLocale) throws java.lang.Exception
getDDMXSD
in interface JournalConverter
java.lang.Exception
@Deprecated public java.lang.String getJournalXSD(java.lang.String ddmXSD) throws java.lang.Exception
getJournalXSD
in interface JournalConverter
java.lang.Exception
public void setFieldsToDDMFormValuesConverter(com.liferay.dynamic.data.mapping.util.FieldsToDDMFormValuesConverter fieldsToDDMFormValuesConverter)
protected void addDDMFields(com.liferay.portal.kernel.xml.Element dynamicElementElement, com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.storage.Fields ddmFields, java.lang.String[] availableLanguageIds, java.lang.String defaultLanguageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void addMetadataEntry(com.liferay.portal.kernel.xml.Element metadataElement, java.lang.String name, java.lang.String value)
protected void addMissingFieldValues(com.liferay.dynamic.data.mapping.storage.Field ddmField, java.lang.String defaultLanguageId, java.util.Set<java.lang.String> missingLanguageIds)
protected int countFieldRepetition(com.liferay.dynamic.data.mapping.storage.Fields ddmFields, java.lang.String fieldName, java.lang.String parentFieldName, int parentOffset) throws java.lang.Exception
java.lang.Exception
protected java.lang.String decodeURL(java.lang.String url)
protected com.liferay.portal.kernel.xml.Element fetchMetadataEntry(com.liferay.portal.kernel.xml.Element parentElement, java.lang.String attributeName, java.lang.String attributeValue)
protected java.lang.String getAvailableLocales(com.liferay.dynamic.data.mapping.storage.Fields ddmFields)
protected java.lang.String[] getDDMFieldsDisplayValues(com.liferay.dynamic.data.mapping.storage.Field ddmFieldsDisplayField) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected java.io.Serializable getDocumentLibraryValue(java.lang.String url)
protected com.liferay.dynamic.data.mapping.storage.Field getField(com.liferay.portal.kernel.xml.Element dynamicElementElement, com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, java.lang.String[] availableLanguageIds, java.lang.String defaultLanguageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected java.lang.String getFieldInstanceId(com.liferay.dynamic.data.mapping.storage.Fields ddmFields, java.lang.String fieldName, int index)
@Deprecated protected java.io.Serializable getFieldValue(java.lang.String dataType, java.lang.String type, com.liferay.portal.kernel.xml.Element dynamicContentElement)
getFieldValue(String,
String, Element, Locale)
protected java.io.Serializable getFieldValue(java.lang.String dataType, java.lang.String type, com.liferay.portal.kernel.xml.Element dynamicContentElement, java.util.Locale defaultLocale)
protected com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByDocumentLibraryURL(java.lang.String url) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByOldDocumentLibraryURL(java.lang.String url) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void getJournalMetadataElement(com.liferay.portal.kernel.xml.Element metadataElement)
protected void removeAttribute(com.liferay.portal.kernel.xml.Element element, java.lang.String attributeName)
protected void setDLAppLocalService(com.liferay.document.library.kernel.service.DLAppLocalService dlAppLocalService)
protected void setGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService)
protected java.lang.String[] splitFieldsDisplayValue(com.liferay.dynamic.data.mapping.storage.Field fieldsDisplayField)
protected void updateContentDynamicElement(com.liferay.portal.kernel.xml.Element dynamicElementElement, com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.storage.Fields ddmFields, com.liferay.dynamic.data.mapping.util.impl.DDMFieldsCounter ddmFieldsCounter) throws java.lang.Exception
java.lang.Exception
protected void updateContentDynamicElement(com.liferay.portal.kernel.xml.Element dynamicElementElement, com.liferay.dynamic.data.mapping.model.DDMStructure ddmStructure, com.liferay.dynamic.data.mapping.storage.Fields ddmFields, java.lang.String fieldName, com.liferay.dynamic.data.mapping.util.impl.DDMFieldsCounter ddmFieldsCounter) throws java.lang.Exception
java.lang.Exception
protected void updateDDMXSDDynamicElement(com.liferay.portal.kernel.xml.Element dynamicElementElement, java.lang.String defaultLanguageId)
protected void updateDynamicContentValue(com.liferay.portal.kernel.xml.Element dynamicContentElement, java.lang.String fieldType, boolean multiple, java.lang.String fieldValue) throws java.lang.Exception
java.lang.Exception
protected void updateFieldsDisplay(com.liferay.dynamic.data.mapping.storage.Fields ddmFields, java.lang.String fieldName, java.lang.String instanceId)
protected void updateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element)
protected void updateJournalXSDDynamicElement(com.liferay.portal.kernel.xml.Element element, java.lang.String defaultLanguageId)