Liferay 6.2.0-ce-rc1

com.liferay.portal.lar
Class LayoutImporter

java.lang.Object
  extended by com.liferay.portal.lar.LayoutImporter

public class LayoutImporter
extends Object


Constructor Summary
LayoutImporter()
           
 
Method Summary
protected  void deleteMissingLayouts(List<String> sourceLayoutUuids, List<Layout> previousLayouts, ServiceContext serviceContext)
           
protected  void doImportLayouts(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file)
           
protected  boolean[] getImportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement)
           
protected  void importLayout(PortletDataContext portletDataContext, List<String> sourceLayoutsUuids, List<Layout> newLayouts, Element layoutElement)
           
 void importLayouts(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file)
           
protected  void readXML(PortletDataContext portletDataContext)
           
 MissingReferences validateFile(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file)
           
protected  void validateFile(PortletDataContext portletDataContext)
           
protected  void validateLayoutPrototypes(long companyId, Element layoutsElement, List<Element> layoutElements)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutImporter

public LayoutImporter()
Method Detail

importLayouts

public void importLayouts(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(List<String> sourceLayoutUuids,
                                    List<Layout> previousLayouts,
                                    ServiceContext serviceContext)
                             throws Exception
Throws:
Exception

doImportLayouts

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

getImportPortletControls

protected boolean[] getImportPortletControls(long companyId,
                                             String portletId,
                                             Map<String,String[]> parameterMap,
                                             Element portletDataElement)
                                      throws Exception
Throws:
Exception

importLayout

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

readXML

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

validateFile

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

validateLayoutPrototypes

protected void validateLayoutPrototypes(long companyId,
                                        Element layoutsElement,
                                        List<Element> layoutElements)
                                 throws Exception
Throws:
Exception

Liferay 6.2.0-ce-rc1