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,
javax.portlet.PortletPreferences portletPreferences) |
protected java.lang.String |
deletePortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.model.PortletPreferences portletPreferences)
Deprecated.
As of Judson (7.1.x), replaced by
deletePortletData(PortletDataContext portletDataContext,
javax.portlet.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,
javax.portlet.PortletPreferences portletPreferences,
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)
Deprecated.
|
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 Judson (7.1.x), 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.ImportController
java.lang.Exception
public 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.ImportController
java.lang.Exception
public java.lang.String importPortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, javax.portlet.PortletPreferences portletPreferences, com.liferay.portal.kernel.xml.Element portletDataElement) throws java.lang.Exception
java.lang.Exception
@Deprecated public 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
importPortletData(PortletDataContext portletDataContext,
javax.portlet.PortletPreferences portletPreferences, Element
portletDataElement)
java.lang.Exception
public 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.ImportController
java.lang.Exception
protected void deletePortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) throws java.lang.Exception
java.lang.Exception
protected java.lang.String deletePortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, javax.portlet.PortletPreferences portletPreferences) throws java.lang.Exception
java.lang.Exception
@Deprecated protected java.lang.String deletePortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.model.PortletPreferences portletPreferences) throws java.lang.Exception
deletePortletData(PortletDataContext portletDataContext,
javax.portlet.PortletPreferences portletPreferences)
java.lang.Exception
protected void doImportPortletInfo(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, long userId) throws java.lang.Exception
java.lang.Exception
protected 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.PortalException
protected 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.PortalException
protected int getProcessFlag()
protected void importAssetLinks(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) throws java.lang.Exception
java.lang.Exception
protected void importPortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.xml.Element portletDataElement) throws java.lang.Exception
java.lang.Exception
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) throws java.lang.Exception
java.lang.Exception
protected 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.PortalException
protected void populateDeletionStagedModelTypes(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) throws java.lang.Exception
java.lang.Exception
protected void readExpandoTables(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) throws java.lang.Exception
java.lang.Exception
protected void readLocks(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) throws java.lang.Exception
java.lang.Exception
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)
@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.Exception
protected void validateFile(long companyId, long groupId, java.lang.String portletId, com.liferay.portal.kernel.zip.ZipReader zipReader) throws java.lang.Exception
java.lang.Exception