public class LayoutImportController
extends java.lang.Object
implements com.liferay.exportimport.kernel.controller.ImportController
Constructor and Description |
---|
LayoutImportController() |
Modifier and Type | Method and Description |
---|---|
protected void |
deleteMissingLayouts(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
java.util.List<java.lang.String> sourceLayoutUuids,
java.util.List<com.liferay.portal.kernel.model.Layout> previousLayouts,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected void |
deletePortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
protected void |
doImportFile(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 int |
getProcessFlag() |
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 |
importLayout(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
java.util.List<java.lang.String> sourceLayoutsUuids,
com.liferay.portal.kernel.xml.Element layoutElement) |
protected void |
populateDeletionStagedModelTypes(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
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 |
setLayoutPrototypeLocalService(com.liferay.portal.kernel.service.LayoutPrototypeLocalService layoutPrototypeLocalService) |
protected void |
setLayoutSetLocalService(com.liferay.portal.kernel.service.LayoutSetLocalService layoutSetLocalService) |
protected void |
setLayoutSetPrototypeLocalService(com.liferay.portal.kernel.service.LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) |
protected void |
setPortletImportController(PortletImportController portletImportController) |
protected void |
setPortletLocalService(com.liferay.portal.kernel.service.PortletLocalService portletLocalService) |
protected void |
setPortletScope(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.xml.Element portletElement) |
protected void |
updateLayoutPriorities(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
java.util.List<com.liferay.portal.kernel.xml.Element> layoutElements,
boolean privateLayout) |
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.util.Map<java.lang.String,java.lang.String[]> parameterMap,
com.liferay.portal.kernel.zip.ZipReader zipReader) |
protected void |
validateLayoutPrototypes(long companyId,
com.liferay.portal.kernel.xml.Element layoutsElement)
Deprecated.
As of 3.0.0, replaced by
validateLayoutPrototypes(long, Element, Element) |
protected void |
validateLayoutPrototypes(long companyId,
com.liferay.portal.kernel.xml.Element headerElement,
com.liferay.portal.kernel.xml.Element layoutsElement) |
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 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 deleteMissingLayouts(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, java.util.List<java.lang.String> sourceLayoutUuids, java.util.List<com.liferay.portal.kernel.model.Layout> previousLayouts, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.lang.Exception
java.lang.Exception
protected void deletePortletData(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) throws java.lang.Exception
java.lang.Exception
protected void doImportFile(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 int getProcessFlag()
protected void importLayout(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, java.util.List<java.lang.String> sourceLayoutsUuids, com.liferay.portal.kernel.xml.Element layoutElement) throws java.lang.Exception
java.lang.Exception
protected void populateDeletionStagedModelTypes(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) throws java.lang.Exception
java.lang.Exception
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 setLayoutPrototypeLocalService(com.liferay.portal.kernel.service.LayoutPrototypeLocalService layoutPrototypeLocalService)
protected void setLayoutSetLocalService(com.liferay.portal.kernel.service.LayoutSetLocalService layoutSetLocalService)
protected void setLayoutSetPrototypeLocalService(com.liferay.portal.kernel.service.LayoutSetPrototypeLocalService layoutSetPrototypeLocalService)
protected void setPortletImportController(PortletImportController portletImportController)
protected void setPortletLocalService(com.liferay.portal.kernel.service.PortletLocalService portletLocalService)
protected void setPortletScope(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.xml.Element portletElement)
protected void updateLayoutPriorities(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, java.util.List<com.liferay.portal.kernel.xml.Element> layoutElements, boolean privateLayout)
protected void validateFile(long companyId, long groupId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, com.liferay.portal.kernel.zip.ZipReader zipReader) throws java.lang.Exception
java.lang.Exception
@Deprecated protected void validateLayoutPrototypes(long companyId, com.liferay.portal.kernel.xml.Element layoutsElement) throws java.lang.Exception
validateLayoutPrototypes(long, Element, Element)
java.lang.Exception
protected void validateLayoutPrototypes(long companyId, com.liferay.portal.kernel.xml.Element headerElement, com.liferay.portal.kernel.xml.Element layoutsElement) throws java.lang.Exception
java.lang.Exception