Liferay 7.0-ce-m6

com.liferay.portlet.exportimport.lar
Class LayoutImporter

java.lang.Object
  extended by com.liferay.portlet.exportimport.lar.LayoutImporter

public class LayoutImporter
extends Object


Method Summary
protected  void deleteMissingLayouts(PortletDataContext portletDataContext, List<String> sourceLayoutUuids, List<Layout> previousLayouts, ServiceContext serviceContext)
           
protected  void deletePortletData(PortletDataContext portletDataContext)
           
protected  void doImportLayouts(PortletDataContext portletDataContext, long userId)
           
static LayoutImporter getInstance()
           
protected  PortletDataContext getPortletDataContext(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file)
           
protected  int getProcessFlag()
           
protected  void importLayout(PortletDataContext portletDataContext, List<String> sourceLayoutsUuids, Element layoutElement)
           
 void importLayouts(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file)
           
 void importLayoutsDataDeletions(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file)
           
protected  void populateDeletionStagedModelTypes(PortletDataContext portletDataContext)
           
protected  void setPortletScope(PortletDataContext portletDataContext, Element portletElement)
           
protected  void updateLayoutPriorities(PortletDataContext portletDataContext, List<Element> layoutElements, boolean privateLayout)
           
 MissingReferences validateFile(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file)
           
protected  void validateFile(long companyId, long groupId, Map<String,String[]> parameterMap, ZipReader zipReader)
           
protected  void validateLayoutPrototypes(long companyId, Element layoutsElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LayoutImporter getInstance()

importLayouts

public void importLayouts(long userId,
                          long groupId,
                          boolean privateLayout,
                          Map<String,String[]> parameterMap,
                          File file)
                   throws Exception
Throws:
Exception

importLayoutsDataDeletions

public void importLayoutsDataDeletions(long userId,
                                       long groupId,
                                       boolean privateLayout,
                                       Map<String,String[]> parameterMap,
                                       File file)
                                throws Exception
Throws:
Exception

validateFile

public MissingReferences validateFile(long userId,
                                      long groupId,
                                      boolean privateLayout,
                                      Map<String,String[]> parameterMap,
                                      File file)
                               throws Exception
Throws:
Exception

deleteMissingLayouts

protected void deleteMissingLayouts(PortletDataContext portletDataContext,
                                    List<String> sourceLayoutUuids,
                                    List<Layout> previousLayouts,
                                    ServiceContext serviceContext)
                             throws Exception
Throws:
Exception

deletePortletData

protected void deletePortletData(PortletDataContext portletDataContext)
                          throws Exception
Throws:
Exception

doImportLayouts

protected void doImportLayouts(PortletDataContext portletDataContext,
                               long userId)
                        throws Exception
Throws:
Exception

getPortletDataContext

protected PortletDataContext getPortletDataContext(long userId,
                                                   long groupId,
                                                   boolean privateLayout,
                                                   Map<String,String[]> parameterMap,
                                                   File file)
                                            throws PortalException
Throws:
PortalException

getProcessFlag

protected int getProcessFlag()

importLayout

protected void importLayout(PortletDataContext portletDataContext,
                            List<String> sourceLayoutsUuids,
                            Element layoutElement)
                     throws Exception
Throws:
Exception

populateDeletionStagedModelTypes

protected void populateDeletionStagedModelTypes(PortletDataContext portletDataContext)
                                         throws Exception
Throws:
Exception

setPortletScope

protected void setPortletScope(PortletDataContext portletDataContext,
                               Element portletElement)

updateLayoutPriorities

protected void updateLayoutPriorities(PortletDataContext portletDataContext,
                                      List<Element> layoutElements,
                                      boolean privateLayout)

validateFile

protected void validateFile(long companyId,
                            long groupId,
                            Map<String,String[]> parameterMap,
                            ZipReader zipReader)
                     throws Exception
Throws:
Exception

validateLayoutPrototypes

protected void validateLayoutPrototypes(long companyId,
                                        Element layoutsElement)
                                 throws Exception
Throws:
Exception

Liferay 7.0-ce-m6