com.liferay.portal.lar
Class LayoutExporter
java.lang.Object
com.liferay.portal.lar.LayoutExporter
public class LayoutExporter
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan, Joel Kozikowski, Charles May, Raymond Augé, Jorge Ferrer, Bruno Farache
Method Summary |
protected void |
exportCategories(com.liferay.portal.lar.PortletDataContext context)
|
protected void |
exportLayoutPermissions_4(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.model.Group guestGroup,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean exportUserPermissions)
|
protected void |
exportLayoutPermissions_5(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl)
|
protected void |
exportLayoutRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesEl)
|
byte[] |
exportLayouts(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
|
com.liferay.portal.kernel.io.FileCacheOutputStream |
exportLayoutsAsStream(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
|
protected com.liferay.portal.kernel.io.FileCacheOutputStream |
exportTheme(com.liferay.portal.model.LayoutSet layoutSet)
|
protected void |
exportThemeFiles(java.lang.String path,
java.io.File dir,
com.liferay.portal.kernel.zip.ZipWriter zipWriter)
|
static java.util.List<com.liferay.portal.model.Portlet> |
getAlwaysExportablePortlets(long companyId)
|
protected boolean[] |
getExportPortletControls(long companyId,
java.lang.String portletId,
com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
|
protected java.lang.String |
getLayoutIconPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.model.Layout layout,
com.liferay.portal.model.Image image)
|
protected void |
orderCategories(java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsCategories,
com.liferay.portal.kernel.xml.Element parentEl,
long parentEntryId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutExporter
public LayoutExporter()
getAlwaysExportablePortlets
public static java.util.List<com.liferay.portal.model.Portlet> getAlwaysExportablePortlets(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportLayouts
public byte[] exportLayouts(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportLayoutsAsStream
public com.liferay.portal.kernel.io.FileCacheOutputStream exportLayoutsAsStream(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportCategories
protected void exportCategories(com.liferay.portal.lar.PortletDataContext context)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportLayoutPermissions_4
protected void exportLayoutPermissions_4(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.model.Group guestGroup,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean exportUserPermissions)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportLayoutPermissions_5
protected void exportLayoutPermissions_5(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportLayoutRoles
protected void exportLayoutRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesEl)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportTheme
protected com.liferay.portal.kernel.io.FileCacheOutputStream exportTheme(com.liferay.portal.model.LayoutSet layoutSet)
throws java.io.IOException,
com.liferay.portal.SystemException
- Throws:
java.io.IOException
com.liferay.portal.SystemException
exportThemeFiles
protected void exportThemeFiles(java.lang.String path,
java.io.File dir,
com.liferay.portal.kernel.zip.ZipWriter zipWriter)
throws java.io.IOException
- Throws:
java.io.IOException
getExportPortletControls
protected boolean[] getExportPortletControls(long companyId,
java.lang.String portletId,
com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getLayoutIconPath
protected java.lang.String getLayoutIconPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.model.Layout layout,
com.liferay.portal.model.Image image)
orderCategories
protected void orderCategories(java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsCategories,
com.liferay.portal.kernel.xml.Element parentEl,
long parentEntryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException