public class BaseTextExportImportContentProcessor extends java.lang.Object implements ExportImportContentProcessor<java.lang.String>
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DATA_HANDLER_COMPANY_SECURE_URL |
protected static java.lang.String |
DATA_HANDLER_COMPANY_URL |
protected static java.lang.String |
DATA_HANDLER_GROUP_FRIENDLY_URL |
protected static java.lang.String |
DATA_HANDLER_PATH_CONTEXT |
protected static java.lang.String |
DATA_HANDLER_PRIVATE_GROUP_SERVLET_MAPPING |
protected static java.lang.String |
DATA_HANDLER_PRIVATE_LAYOUT_SET_SECURE_URL |
protected static java.lang.String |
DATA_HANDLER_PRIVATE_LAYOUT_SET_URL |
protected static java.lang.String |
DATA_HANDLER_PRIVATE_USER_SERVLET_MAPPING |
protected static java.lang.String |
DATA_HANDLER_PUBLIC_LAYOUT_SET_SECURE_URL |
protected static java.lang.String |
DATA_HANDLER_PUBLIC_LAYOUT_SET_URL |
protected static java.lang.String |
DATA_HANDLER_PUBLIC_SERVLET_MAPPING |
protected static java.lang.String |
DATA_HANDLER_SITE_ADMIN_URL |
protected static char[] |
DL_REFERENCE_LEGACY_STOP_CHARS |
protected static char[] |
DL_REFERENCE_STOP_CHARS |
protected static java.util.regex.Pattern |
exportLinksToLayoutPattern |
protected static java.util.regex.Pattern |
importLinksToLayoutPattern |
protected static char[] |
LAYOUT_REFERENCE_STOP_CHARS |
protected static java.lang.String |
PRIVATE_GROUP_SERVLET_MAPPING |
protected static java.lang.String |
PRIVATE_USER_SERVLET_MAPPING |
protected static java.lang.String |
PUBLIC_GROUP_SERVLET_MAPPING |
Constructor and Description |
---|
BaseTextExportImportContentProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
deleteTimestampParameters(java.lang.StringBuilder sb,
int beginPos) |
protected java.util.Map<java.lang.String,java.lang.String[]> |
getDLReferenceParameters(long groupId,
java.lang.String content,
int beginPos,
int endPos) |
protected com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntry(java.util.Map<java.lang.String,java.lang.String[]> map) |
protected boolean |
isValidateLayoutReferences() |
java.lang.String |
replaceExportContentReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.StagedModel stagedModel,
java.lang.String content,
boolean exportReferencedContent,
boolean escapeContent) |
protected java.lang.String |
replaceExportDLReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.StagedModel stagedModel,
java.lang.String content,
boolean exportReferencedContent) |
protected java.lang.String |
replaceExportHostname(long groupId,
java.lang.String url,
com.liferay.portal.kernel.util.StringBundler urlSB) |
protected java.lang.String |
replaceExportLayoutReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.StagedModel stagedModel,
java.lang.String content) |
protected java.lang.String |
replaceExportLinksToLayouts(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.StagedModel stagedModel,
java.lang.String content) |
java.lang.String |
replaceImportContentReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.StagedModel stagedModel,
java.lang.String content) |
protected java.lang.String |
replaceImportDLReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.StagedModel stagedModel,
java.lang.String content) |
protected java.lang.String |
replaceImportLayoutReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
java.lang.String content) |
protected java.lang.String |
replaceImportLinksToLayouts(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
java.lang.String content) |
void |
validateContentReferences(long groupId,
java.lang.String content) |
protected void |
validateDLReferences(long groupId,
java.lang.String content) |
protected void |
validateLayoutReferences(long groupId,
java.lang.String content) |
protected void |
validateLinksToLayoutsReferences(java.lang.String content) |
protected static final java.lang.String DATA_HANDLER_COMPANY_SECURE_URL
protected static final java.lang.String DATA_HANDLER_COMPANY_URL
protected static final java.lang.String DATA_HANDLER_GROUP_FRIENDLY_URL
protected static final java.lang.String DATA_HANDLER_PATH_CONTEXT
protected static final java.lang.String DATA_HANDLER_PRIVATE_GROUP_SERVLET_MAPPING
protected static final java.lang.String DATA_HANDLER_PRIVATE_LAYOUT_SET_SECURE_URL
protected static final java.lang.String DATA_HANDLER_PRIVATE_LAYOUT_SET_URL
protected static final java.lang.String DATA_HANDLER_PRIVATE_USER_SERVLET_MAPPING
protected static final java.lang.String DATA_HANDLER_PUBLIC_LAYOUT_SET_SECURE_URL
protected static final java.lang.String DATA_HANDLER_PUBLIC_LAYOUT_SET_URL
protected static final java.lang.String DATA_HANDLER_PUBLIC_SERVLET_MAPPING
protected static final java.lang.String DATA_HANDLER_SITE_ADMIN_URL
protected static final char[] DL_REFERENCE_LEGACY_STOP_CHARS
protected static final char[] DL_REFERENCE_STOP_CHARS
protected static final char[] LAYOUT_REFERENCE_STOP_CHARS
protected static final java.lang.String PRIVATE_GROUP_SERVLET_MAPPING
protected static final java.lang.String PRIVATE_USER_SERVLET_MAPPING
protected static final java.lang.String PUBLIC_GROUP_SERVLET_MAPPING
protected static final java.util.regex.Pattern exportLinksToLayoutPattern
protected static final java.util.regex.Pattern importLinksToLayoutPattern
public BaseTextExportImportContentProcessor()
public java.lang.String replaceExportContentReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.model.StagedModel stagedModel, java.lang.String content, boolean exportReferencedContent, boolean escapeContent) throws java.lang.Exception
replaceExportContentReferences
in interface ExportImportContentProcessor<java.lang.String>
java.lang.Exception
public java.lang.String replaceImportContentReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.model.StagedModel stagedModel, java.lang.String content) throws java.lang.Exception
replaceImportContentReferences
in interface ExportImportContentProcessor<java.lang.String>
java.lang.Exception
public void validateContentReferences(long groupId, java.lang.String content) throws com.liferay.portal.kernel.exception.PortalException
validateContentReferences
in interface ExportImportContentProcessor<java.lang.String>
com.liferay.portal.kernel.exception.PortalException
protected void deleteTimestampParameters(java.lang.StringBuilder sb, int beginPos)
protected java.util.Map<java.lang.String,java.lang.String[]> getDLReferenceParameters(long groupId, java.lang.String content, int beginPos, int endPos)
protected com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(java.util.Map<java.lang.String,java.lang.String[]> map)
protected boolean isValidateLayoutReferences() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected java.lang.String replaceExportDLReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.model.StagedModel stagedModel, java.lang.String content, boolean exportReferencedContent) throws java.lang.Exception
java.lang.Exception
protected java.lang.String replaceExportHostname(long groupId, java.lang.String url, com.liferay.portal.kernel.util.StringBundler urlSB) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected java.lang.String replaceExportLayoutReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.model.StagedModel stagedModel, java.lang.String content) throws java.lang.Exception
java.lang.Exception
protected java.lang.String replaceExportLinksToLayouts(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.model.StagedModel stagedModel, java.lang.String content) throws java.lang.Exception
java.lang.Exception
protected java.lang.String replaceImportDLReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.model.StagedModel stagedModel, java.lang.String content) throws java.lang.Exception
java.lang.Exception
protected java.lang.String replaceImportLayoutReferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, java.lang.String content) throws java.lang.Exception
java.lang.Exception
protected java.lang.String replaceImportLinksToLayouts(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, java.lang.String content) throws java.lang.Exception
java.lang.Exception
protected void validateDLReferences(long groupId, java.lang.String content) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void validateLayoutReferences(long groupId, java.lang.String content) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void validateLinksToLayoutsReferences(java.lang.String content) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException