Liferay 6.2.0-ce-b3

com.liferay.portal.lar
Class LayoutExporter

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

public class LayoutExporter
extends Object


Field Summary
static String SAME_GROUP_FRIENDLY_URL
           
 
Constructor Summary
LayoutExporter()
           
 
Method Summary
protected  File doExportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
protected  void exportAssetCategories(PortletDataContext portletDataContext, boolean exportPortletDataAll, boolean exportCategories, boolean companyGroup)
           
protected  void exportLayout(PortletDataContext portletDataContext, List<Portlet> portlets, long[] layoutIds, Map<String,Object[]> portletIds, Layout layout)
           
 byte[] exportLayouts(long groupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
 File exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
protected  void exportTheme(LayoutSet layoutSet, ZipWriter zipWriter)
           
protected  void exportThemeFiles(String path, File dir, ZipWriter zipWriter)
           
static List<Portlet> getDataSiteLevelPortlets(long companyId)
           
protected  boolean[] getExportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, String type)
           
protected  String getLayoutIconPath(PortletDataContext portletDataContext, Layout layout, Image image)
           
protected  String getLayoutSetPrototype(PortletDataContext portletDataContext, String layoutSetPrototypeUuid)
           
static List<Portlet> getPortletDataHandlerPortlets(List<Layout> layouts)
           
static List<Portlet> getPortletDataHandlerPortlets(long groupId, boolean privateLayout)
           
static void updateLastPublishDate(LayoutSet layoutSet, long lastPublishDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAME_GROUP_FRIENDLY_URL

public static final String SAME_GROUP_FRIENDLY_URL
See Also:
Constant Field Values
Constructor Detail

LayoutExporter

public LayoutExporter()
Method Detail

getDataSiteLevelPortlets

public static List<Portlet> getDataSiteLevelPortlets(long companyId)
                                              throws Exception
Throws:
Exception

getPortletDataHandlerPortlets

public static List<Portlet> getPortletDataHandlerPortlets(List<Layout> layouts)
                                                   throws Exception
Throws:
Exception

getPortletDataHandlerPortlets

public static List<Portlet> getPortletDataHandlerPortlets(long groupId,
                                                          boolean privateLayout)
                                                   throws Exception
Throws:
Exception

updateLastPublishDate

public static void updateLastPublishDate(LayoutSet layoutSet,
                                         long lastPublishDate)
                                  throws Exception
Throws:
Exception

exportLayouts

public byte[] exportLayouts(long groupId,
                            boolean privateLayout,
                            long[] layoutIds,
                            Map<String,String[]> parameterMap,
                            Date startDate,
                            Date endDate)
                     throws Exception
Throws:
Exception

exportLayoutsAsFile

public File exportLayoutsAsFile(long groupId,
                                boolean privateLayout,
                                long[] layoutIds,
                                Map<String,String[]> parameterMap,
                                Date startDate,
                                Date endDate)
                         throws Exception
Throws:
Exception

doExportLayoutsAsFile

protected File doExportLayoutsAsFile(long groupId,
                                     boolean privateLayout,
                                     long[] layoutIds,
                                     Map<String,String[]> parameterMap,
                                     Date startDate,
                                     Date endDate)
                              throws Exception
Throws:
Exception

exportAssetCategories

protected void exportAssetCategories(PortletDataContext portletDataContext,
                                     boolean exportPortletDataAll,
                                     boolean exportCategories,
                                     boolean companyGroup)
                              throws Exception
Throws:
Exception

exportLayout

protected void exportLayout(PortletDataContext portletDataContext,
                            List<Portlet> portlets,
                            long[] layoutIds,
                            Map<String,Object[]> portletIds,
                            Layout layout)
                     throws Exception
Throws:
Exception

exportTheme

protected void exportTheme(LayoutSet layoutSet,
                           ZipWriter zipWriter)
                    throws Exception
Throws:
Exception

exportThemeFiles

protected void exportThemeFiles(String path,
                                File dir,
                                ZipWriter zipWriter)
                         throws Exception
Throws:
Exception

getExportPortletControls

protected boolean[] getExportPortletControls(long companyId,
                                             String portletId,
                                             Map<String,String[]> parameterMap,
                                             String type)
                                      throws Exception
Throws:
Exception

getLayoutIconPath

protected String getLayoutIconPath(PortletDataContext portletDataContext,
                                   Layout layout,
                                   Image image)

getLayoutSetPrototype

protected String getLayoutSetPrototype(PortletDataContext portletDataContext,
                                       String layoutSetPrototypeUuid)

Liferay 6.2.0-ce-b3