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, Karthik Sudarshan
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 |
exportLayoutPermissions_6(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)
|
java.io.File |
exportLayoutsAsFile(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 void |
exportTheme(com.liferay.portal.model.LayoutSet layoutSet,
com.liferay.portal.kernel.zip.ZipWriter zipWriter)
|
protected void |
exportThemeFiles(java.lang.String path,
java.io.File dir,
com.liferay.portal.kernel.zip.ZipWriter zipWriter)
|
protected void |
fixTypeSettings(com.liferay.portal.model.Layout layout)
|
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.asset.model.AssetCategory> assetCategories,
com.liferay.portal.kernel.xml.Element parentEl,
long parentCategoryId)
|
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 java.lang.String SAME_GROUP_FRIENDLY_URL
- See Also:
- Constant Field Values
LayoutExporter
public LayoutExporter()
getAlwaysExportablePortlets
public static java.util.List<com.liferay.portal.model.Portlet> getAlwaysExportablePortlets(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
exportLayoutsAsFile
public java.io.File exportLayoutsAsFile(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.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
exportCategories
protected void exportCategories(com.liferay.portal.lar.PortletDataContext context)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.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.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
exportLayoutPermissions_6
protected void exportLayoutPermissions_6(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.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
exportLayoutRoles
protected void exportLayoutRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesEl)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
exportTheme
protected void exportTheme(com.liferay.portal.model.LayoutSet layoutSet,
com.liferay.portal.kernel.zip.ZipWriter zipWriter)
throws java.io.IOException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
java.io.IOException
com.liferay.portal.kernel.exception.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
fixTypeSettings
protected void fixTypeSettings(com.liferay.portal.model.Layout layout)
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.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.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.asset.model.AssetCategory> assetCategories,
com.liferay.portal.kernel.xml.Element parentEl,
long parentCategoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException