public class PortletImportController
extends java.lang.Object
implements com.liferay.exportimport.kernel.controller.ImportController
| Constructor and Description |
|---|
PortletImportController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deletePortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
protected java.lang.String |
deletePortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.PortletPreferences portletPreferences) |
protected void |
doImportPortletInfo(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
long userId) |
protected com.liferay.exportimport.kernel.lar.PortletDataContext |
getPortletDataContext(com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file) |
protected com.liferay.portal.kernel.model.PortletPreferences |
getPortletPreferences(long companyId,
long ownerId,
int ownerType,
long plid,
java.lang.String serviceName) |
protected int |
getProcessFlag() |
protected void |
importAssetLinks(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
void |
importDataDeletions(com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file) |
void |
importFile(com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file) |
protected void |
importPortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.xml.Element portletDataElement) |
java.lang.String |
importPortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.PortletPreferences portletPreferences,
com.liferay.portal.kernel.xml.Element portletDataElement) |
protected void |
importPortletPreferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
long companyId,
long groupId,
com.liferay.portal.kernel.model.Layout layout,
com.liferay.portal.kernel.xml.Element parentElement,
boolean preserveScopeLayoutId,
boolean importPortletArchivedSetups,
boolean importPortletData,
boolean importPortletSetup,
boolean importPortletUserPreferences) |
protected void |
importServicePortletPreferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.xml.Element serviceElement) |
protected void |
populateDeletionStagedModelTypes(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
protected void |
readExpandoTables(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
protected void |
readLocks(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
protected void |
resetPortletScope(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
long groupId) |
protected void |
setAssetEntryLocalService(com.liferay.asset.kernel.service.AssetEntryLocalService assetEntryLocalService) |
protected void |
setAssetLinkLocalService(com.liferay.asset.kernel.service.AssetLinkLocalService assetLinkLocalService) |
protected void |
setExpandoColumnLocalService(com.liferay.expando.kernel.service.ExpandoColumnLocalService expandoColumnLocalService) |
protected void |
setExpandoTableLocalService(com.liferay.expando.kernel.service.ExpandoTableLocalService expandoTableLocalService) |
protected void |
setExportImportLifecycleManager(com.liferay.exportimport.kernel.lifecycle.ExportImportLifecycleManager exportImportLifecycleManager) |
protected void |
setGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService) |
protected void |
setLayoutLocalService(com.liferay.portal.kernel.service.LayoutLocalService layoutLocalService) |
protected void |
setPortletItemLocalService(com.liferay.portal.kernel.service.PortletItemLocalService portletItemLocalService) |
protected void |
setPortletLocalService(com.liferay.portal.kernel.service.PortletLocalService portletLocalService)
Deprecated.
As of 7.0.0, with no direct replacement
|
protected void |
setPortletPreferencesLocalService(com.liferay.portal.kernel.service.PortletPreferencesLocalService portletPreferencesLocalService) |
protected void |
setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService) |
protected void |
updatePortletPreferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
long ownerId,
int ownerType,
long plid,
java.lang.String portletId,
java.lang.String xml,
boolean importData) |
com.liferay.exportimport.kernel.lar.MissingReferences |
validateFile(com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file) |
protected void |
validateFile(long companyId,
long groupId,
java.lang.String portletId,
com.liferay.portal.kernel.zip.ZipReader zipReader) |
public void importDataDeletions(com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws java.lang.Exception
importDataDeletions in interface com.liferay.exportimport.kernel.controller.ImportControllerjava.lang.Exceptionpublic void importFile(com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws java.lang.Exception
importFile in interface com.liferay.exportimport.kernel.controller.ImportControllerjava.lang.Exceptionpublic java.lang.String importPortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.PortletPreferences portletPreferences,
com.liferay.portal.kernel.xml.Element portletDataElement)
throws java.lang.Exception
java.lang.Exceptionpublic com.liferay.exportimport.kernel.lar.MissingReferences validateFile(com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws java.lang.Exception
validateFile in interface com.liferay.exportimport.kernel.controller.ImportControllerjava.lang.Exceptionprotected void deletePortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String deletePortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.PortletPreferences portletPreferences)
throws java.lang.Exception
java.lang.Exceptionprotected void doImportPortletInfo(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
long userId)
throws java.lang.Exception
java.lang.Exceptionprotected com.liferay.exportimport.kernel.lar.PortletDataContext getPortletDataContext(com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected com.liferay.portal.kernel.model.PortletPreferences getPortletPreferences(long companyId,
long ownerId,
int ownerType,
long plid,
java.lang.String serviceName)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected int getProcessFlag()
protected void importAssetLinks(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
throws java.lang.Exception
java.lang.Exceptionprotected void importPortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.xml.Element portletDataElement)
throws java.lang.Exception
java.lang.Exceptionprotected void importPortletPreferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
long companyId,
long groupId,
com.liferay.portal.kernel.model.Layout layout,
com.liferay.portal.kernel.xml.Element parentElement,
boolean preserveScopeLayoutId,
boolean importPortletArchivedSetups,
boolean importPortletData,
boolean importPortletSetup,
boolean importPortletUserPreferences)
throws java.lang.Exception
java.lang.Exceptionprotected void importServicePortletPreferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.xml.Element serviceElement)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void populateDeletionStagedModelTypes(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
throws java.lang.Exception
java.lang.Exceptionprotected void readExpandoTables(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
throws java.lang.Exception
java.lang.Exceptionprotected void readLocks(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
throws java.lang.Exception
java.lang.Exceptionprotected void resetPortletScope(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
long groupId)
protected void setAssetEntryLocalService(com.liferay.asset.kernel.service.AssetEntryLocalService assetEntryLocalService)
protected void setAssetLinkLocalService(com.liferay.asset.kernel.service.AssetLinkLocalService assetLinkLocalService)
protected void setExpandoColumnLocalService(com.liferay.expando.kernel.service.ExpandoColumnLocalService expandoColumnLocalService)
protected void setExpandoTableLocalService(com.liferay.expando.kernel.service.ExpandoTableLocalService expandoTableLocalService)
protected void setExportImportLifecycleManager(com.liferay.exportimport.kernel.lifecycle.ExportImportLifecycleManager exportImportLifecycleManager)
protected void setGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService)
protected void setLayoutLocalService(com.liferay.portal.kernel.service.LayoutLocalService layoutLocalService)
protected void setPortletItemLocalService(com.liferay.portal.kernel.service.PortletItemLocalService portletItemLocalService)
@Deprecated protected void setPortletLocalService(com.liferay.portal.kernel.service.PortletLocalService portletLocalService)
protected void setPortletPreferencesLocalService(com.liferay.portal.kernel.service.PortletPreferencesLocalService portletPreferencesLocalService)
protected void setUserLocalService(com.liferay.portal.kernel.service.UserLocalService userLocalService)
protected void updatePortletPreferences(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
long ownerId,
int ownerType,
long plid,
java.lang.String portletId,
java.lang.String xml,
boolean importData)
throws java.lang.Exception
java.lang.Exceptionprotected void validateFile(long companyId,
long groupId,
java.lang.String portletId,
com.liferay.portal.kernel.zip.ZipReader zipReader)
throws java.lang.Exception
java.lang.Exception