com.liferay.portal.lar
Class LayoutExporter
java.lang.Object
com.liferay.portal.lar.LayoutExporter
public class LayoutExporter
- extends Object
Method Summary |
protected File |
doExportLayoutsAsFile(long groupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
|
protected void |
exportAssetCategories(PortletDataContext portletDataContext)
|
protected void |
exportJournalArticle(PortletDataContext portletDataContext,
Layout layout,
Element layoutElement)
|
protected void |
exportLayout(PortletDataContext portletDataContext,
Portlet layoutConfigurationPortlet,
LayoutCache layoutCache,
List<Portlet> portlets,
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 portletDataContext,
Map<String,String[]> parameterMap,
String type)
|
protected String |
getLayoutIconPath(PortletDataContext portletDataContext,
Layout layout,
Image image)
|
protected String |
getLayoutSetLogoPath(PortletDataContext portletDataContext)
|
protected String |
getLayoutSetPrototype(PortletDataContext portletDataContext,
String layoutSetPrototypeUuid)
|
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 |
SAME_GROUP_FRIENDLY_URL
public static final String SAME_GROUP_FRIENDLY_URL
- See Also:
- Constant Field Values
LayoutExporter
public LayoutExporter()
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
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)
throws Exception
- Throws:
Exception
exportJournalArticle
protected void exportJournalArticle(PortletDataContext portletDataContext,
Layout layout,
Element layoutElement)
throws Exception
- Throws:
Exception
exportLayout
protected void exportLayout(PortletDataContext portletDataContext,
Portlet layoutConfigurationPortlet,
LayoutCache layoutCache,
List<Portlet> portlets,
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 portletDataContext,
Map<String,String[]> parameterMap,
String type)
throws Exception
- Throws:
Exception
getLayoutIconPath
protected String getLayoutIconPath(PortletDataContext portletDataContext,
Layout layout,
Image image)
getLayoutSetLogoPath
protected String getLayoutSetLogoPath(PortletDataContext portletDataContext)
getLayoutSetPrototype
protected String getLayoutSetPrototype(PortletDataContext portletDataContext,
String layoutSetPrototypeUuid)