Liferay 6.0.5

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  void exportCategories(PortletDataContext context)
           
protected  void exportLayout(PortletDataContext context, Portlet layoutConfigurationPortlet, LayoutCache layoutCache, Map<String,Object[]> portletIds, boolean exportPermissions, boolean exportUserPermissions, Layout layout, Element layoutsElement)
           
 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)
           
protected  void fixTypeSettings(Layout layout)
           
static List<Portlet> getAlwaysExportablePortlets(long companyId)
           
protected  boolean[] getExportPortletControls(long companyId, String portletId, PortletDataContext context, Map<String,String[]> parameterMap)
           
protected  String getLayoutIconPath(PortletDataContext context, Layout layout, Image image)
           
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

getAlwaysExportablePortlets

public static List<Portlet> getAlwaysExportablePortlets(long companyId)
                                                 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

exportCategories

protected void exportCategories(PortletDataContext context)
                         throws Exception
Throws:
Exception

exportLayout

protected void exportLayout(PortletDataContext context,
                            Portlet layoutConfigurationPortlet,
                            LayoutCache layoutCache,
                            Map<String,Object[]> portletIds,
                            boolean exportPermissions,
                            boolean exportUserPermissions,
                            Layout layout,
                            Element layoutsElement)
                     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

fixTypeSettings

protected void fixTypeSettings(Layout layout)
                        throws Exception
Throws:
Exception

getExportPortletControls

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

getLayoutIconPath

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

Liferay 6.0.5