public class JournalArticleStagedModelDataHandler extends BaseStagedModelDataHandler<JournalArticle>
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
CLASS_NAMES |
Constructor and Description |
---|
JournalArticleStagedModelDataHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
countStagedModel(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
JournalArticle article) |
void |
deleteStagedModel(JournalArticle article) |
void |
deleteStagedModel(java.lang.String uuid,
long groupId,
java.lang.String className,
java.lang.String extraData) |
protected void |
doExportStagedModel(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
JournalArticle article) |
protected void |
doImportMissingReference(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.xml.Element referenceElement) |
protected void |
doImportStagedModel(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
JournalArticle article) |
protected void |
doRestoreStagedModel(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
JournalArticle article) |
protected void |
exportArticleImage(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
JournalArticleImage articleImage,
JournalArticle article,
com.liferay.portal.kernel.xml.Element articleElement) |
protected JournalArticle |
fetchExistingArticle(java.lang.String articleResourceUuid,
long groupId,
java.lang.String articleId,
java.lang.String newArticleId,
boolean preloaded) |
protected JournalArticle |
fetchExistingArticle(java.lang.String articleUuid,
java.lang.String articleResourceUuid,
long groupId,
java.lang.String articleId,
java.lang.String newArticleId,
double version,
boolean preloaded) |
protected JournalArticle |
fetchExistingArticleVersion(java.lang.String articleUuid,
long groupId,
java.lang.String articleId,
double version) |
protected JournalArticle |
fetchExistingArticleWithParentGroups(java.lang.String articleUuid,
java.lang.String articleResourceUuid,
long groupId,
java.lang.String articleId,
java.lang.String newArticleId,
double version,
boolean preloaded) |
JournalArticle |
fetchStagedModelByUuidAndGroupId(java.lang.String uuid,
long groupId) |
java.util.List<JournalArticle> |
fetchStagedModelsByUuidAndCompanyId(java.lang.String uuid,
long companyId) |
java.lang.String[] |
getClassNames() |
java.lang.String |
getDisplayName(JournalArticle article) |
int[] |
getExportableStatuses() |
java.util.Map<java.lang.String,java.lang.String> |
getReferenceAttributes(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
JournalArticle article) |
protected boolean |
isExpireAllArticleVersions(long companyId) |
protected void |
setArticlesExpirationDate(JournalArticle article) |
protected void |
setConfigurationProvider(com.liferay.portal.kernel.module.configuration.ConfigurationProvider configurationProvider) |
protected void |
setDDMStructureLocalService(com.liferay.dynamic.data.mapping.service.DDMStructureLocalService ddmStructureLocalService) |
protected void |
setDDMTemplateLocalService(com.liferay.dynamic.data.mapping.service.DDMTemplateLocalService ddmTemplateLocalService) |
protected void |
setExportImportContentProcessor(ExportImportContentProcessor<java.lang.String> exportImportContentProcessor) |
protected void |
setImageLocalService(com.liferay.portal.kernel.service.ImageLocalService imageLocalService) |
protected void |
setJournalArticleExportImportContentProcessor(com.liferay.journal.internal.exportimport.content.processor.JournalArticleExportImportContentProcessor journalArticleExportImportContentProcessor)
Deprecated.
As of Judson (7.1.x), replaced by
setExportImportContentProcessor(
ExportImportContentProcessor) |
protected void |
setJournalArticleImageLocalService(JournalArticleImageLocalService journalArticleImageLocalService) |
protected void |
setJournalArticleLocalService(JournalArticleLocalService journalArticleLocalService) |
protected void |
setJournalArticleResourceLocalService(JournalArticleResourceLocalService journalArticleResourceLocalService) |
protected void |
setJournalCreationStrategy(com.liferay.journal.internal.exportimport.creation.strategy.JournalCreationStrategy journalCreationStrategy) |
protected void |
setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService) |
protected void |
unsetExportImportContentProcessor(ExportImportContentProcessor<java.lang.String> exportImportContentProcessor) |
protected void |
updateArticleVersions(JournalArticle article) |
boolean |
validateReference(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.xml.Element referenceElement) |
exportStagedModel, fetchMissingReference, getExportImportContentProcessor, getStagedModelRepository, restoreStagedModel
doImportMissingReference, exportAssetCategories, exportAssetTags, exportComments, exportRatings, getProcessFlag, importAssetCategories, importAssetTags, importComments, importCompanyStagedModel, importCompanyStagedModel, importMissingGroupReference, importMissingReference, importMissingReference, importRatings, importReferenceStagedModels, importStagedModel, isStagedModelInTrash, validateExport, validateMissingGroupReference, validateMissingReference
public JournalArticleStagedModelDataHandler()
public void deleteStagedModel(JournalArticle article) throws com.liferay.portal.kernel.exception.PortalException
deleteStagedModel
in interface com.liferay.exportimport.kernel.lar.StagedModelDataHandler<JournalArticle>
deleteStagedModel
in class BaseStagedModelDataHandler<JournalArticle>
com.liferay.portal.kernel.exception.PortalException
public void deleteStagedModel(java.lang.String uuid, long groupId, java.lang.String className, java.lang.String extraData) throws com.liferay.portal.kernel.exception.PortalException
deleteStagedModel
in interface com.liferay.exportimport.kernel.lar.StagedModelDataHandler<JournalArticle>
deleteStagedModel
in class BaseStagedModelDataHandler<JournalArticle>
com.liferay.portal.kernel.exception.PortalException
public JournalArticle fetchStagedModelByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchStagedModelByUuidAndGroupId
in interface com.liferay.exportimport.kernel.lar.StagedModelDataHandler<JournalArticle>
fetchStagedModelByUuidAndGroupId
in class BaseStagedModelDataHandler<JournalArticle>
public java.util.List<JournalArticle> fetchStagedModelsByUuidAndCompanyId(java.lang.String uuid, long companyId)
fetchStagedModelsByUuidAndCompanyId
in interface com.liferay.exportimport.kernel.lar.StagedModelDataHandler<JournalArticle>
fetchStagedModelsByUuidAndCompanyId
in class BaseStagedModelDataHandler<JournalArticle>
public java.lang.String[] getClassNames()
getClassNames
in interface com.liferay.exportimport.kernel.lar.StagedModelDataHandler<JournalArticle>
getClassNames
in class com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler<JournalArticle>
public java.lang.String getDisplayName(JournalArticle article)
getDisplayName
in interface com.liferay.exportimport.kernel.lar.StagedModelDataHandler<JournalArticle>
getDisplayName
in class com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler<JournalArticle>
public int[] getExportableStatuses()
getExportableStatuses
in interface com.liferay.exportimport.kernel.lar.StagedModelDataHandler<JournalArticle>
getExportableStatuses
in class com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler<JournalArticle>
public java.util.Map<java.lang.String,java.lang.String> getReferenceAttributes(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, JournalArticle article)
getReferenceAttributes
in interface com.liferay.exportimport.kernel.lar.StagedModelDataHandler<JournalArticle>
getReferenceAttributes
in class com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler<JournalArticle>
public boolean validateReference(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.xml.Element referenceElement)
validateReference
in interface com.liferay.exportimport.kernel.lar.StagedModelDataHandler<JournalArticle>
validateReference
in class com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler<JournalArticle>
protected boolean countStagedModel(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, JournalArticle article)
countStagedModel
in class com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler<JournalArticle>
protected void doExportStagedModel(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, JournalArticle article) throws java.lang.Exception
doExportStagedModel
in class com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler<JournalArticle>
java.lang.Exception
protected void doImportMissingReference(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.xml.Element referenceElement) throws com.liferay.exportimport.kernel.lar.PortletDataException
doImportMissingReference
in class com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler<JournalArticle>
com.liferay.exportimport.kernel.lar.PortletDataException
protected void doImportStagedModel(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, JournalArticle article) throws java.lang.Exception
doImportStagedModel
in class com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler<JournalArticle>
java.lang.Exception
protected void doRestoreStagedModel(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, JournalArticle article) throws java.lang.Exception
doRestoreStagedModel
in class com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler<JournalArticle>
java.lang.Exception
protected void exportArticleImage(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, JournalArticleImage articleImage, JournalArticle article, com.liferay.portal.kernel.xml.Element articleElement)
protected JournalArticle fetchExistingArticle(java.lang.String articleResourceUuid, long groupId, java.lang.String articleId, java.lang.String newArticleId, boolean preloaded)
protected JournalArticle fetchExistingArticle(java.lang.String articleUuid, java.lang.String articleResourceUuid, long groupId, java.lang.String articleId, java.lang.String newArticleId, double version, boolean preloaded)
protected JournalArticle fetchExistingArticleVersion(java.lang.String articleUuid, long groupId, java.lang.String articleId, double version)
protected JournalArticle fetchExistingArticleWithParentGroups(java.lang.String articleUuid, java.lang.String articleResourceUuid, long groupId, java.lang.String articleId, java.lang.String newArticleId, double version, boolean preloaded)
protected boolean isExpireAllArticleVersions(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void setArticlesExpirationDate(JournalArticle article)
protected void setConfigurationProvider(com.liferay.portal.kernel.module.configuration.ConfigurationProvider configurationProvider)
protected void setDDMStructureLocalService(com.liferay.dynamic.data.mapping.service.DDMStructureLocalService ddmStructureLocalService)
protected void setDDMTemplateLocalService(com.liferay.dynamic.data.mapping.service.DDMTemplateLocalService ddmTemplateLocalService)
protected void setExportImportContentProcessor(ExportImportContentProcessor<java.lang.String> exportImportContentProcessor)
protected void setImageLocalService(com.liferay.portal.kernel.service.ImageLocalService imageLocalService)
@Deprecated protected void setJournalArticleExportImportContentProcessor(com.liferay.journal.internal.exportimport.content.processor.JournalArticleExportImportContentProcessor journalArticleExportImportContentProcessor)
setExportImportContentProcessor(
ExportImportContentProcessor)
protected void setJournalArticleImageLocalService(JournalArticleImageLocalService journalArticleImageLocalService)
protected void setJournalArticleLocalService(JournalArticleLocalService journalArticleLocalService)
protected void setJournalArticleResourceLocalService(JournalArticleResourceLocalService journalArticleResourceLocalService)
protected void setJournalCreationStrategy(com.liferay.journal.internal.exportimport.creation.strategy.JournalCreationStrategy journalCreationStrategy)
protected void setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService)
protected void unsetExportImportContentProcessor(ExportImportContentProcessor<java.lang.String> exportImportContentProcessor)
protected void updateArticleVersions(JournalArticle article) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException