Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1747

Can not export a site with a large Document Library

Details

    Description

      Exporting a site with a large Document Library or Image Gallery will cause an out of memory exception. The algorithm used to create the LAR file has been updated so that it is no longer limited by the available memory. This change will allow significantly larger sites to be exportable.

      API CHANGES:

      Class: com.liferay.portal.kernel.zip.ZipReader
      Note: this class has been changed to an interface. The implementation can be found in ZipReaderImpl.

      Method: ZipReader(File file)
      Status: Deleted
      New call: ZipReaderFactoryUtil.getZipReader(file)

      Method: ZipReader(InputStream stream)
      Status: Deleted
      New call: ZipReaderFactoryUtil.getZipReader(stream)

      Method: getEntries()
      Return type: changed from Map<String, byte[]> to List<String>

      Method: getFolderEntries()
      Status: Deleted

      Method: getFolderEntries(String path)
      Return type: changed from List<ObjectValuePair<String, byte[]>> to List<String>

      Class: com.liferay.portal.kernel.zip.ZipWriter
      Note: this class has been changed to an interface. The implementation can be found in ZipWriterImpl

      Method: ZipWriter()
      Status: Deleted
      New call: ZipWriterFactoryUtil.getZipWriter()

      Method: finishWithStream()
      Status: Deleted

      Class: com.liferay.portal.lar.PortletDataContext

      Method: getZipEntries()
      Return type: changed from Map<String, byte[]> to List<String>

      Method: getZipFolderEntries()
      Return type: changed from Map<String, List<ObjectValuePair<String, byte[]>>> to List<String>

      Method: getZipFolderEntries(String path)
      Return type: changed from List<ObjectValuePair<String, byte[]>> to List<String>

      Class: com.liferay.portal.service.LayoutLocalService

      Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Method: exportPortletInfoAsStream(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportPortletInfoAsFile(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Class: com.liferay.portal.service.LayoutLocalServiceUtil

      Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Method: exportPortletInfoAsStream(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportPortletInfoAsFile(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Class: com.liferay.portal.service.LayoutLocalServiceWrapper

      Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Method: exportPortletInfoAsStream(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportPortletInfoAsFile(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Class: com.liferay.portal.service.LayoutService

      Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Method: exportPortletInfoAsStream(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportPortletInfoAsFile(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Class: com.liferay.portal.service.LayoutServiceUtil

      Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Method: exportPortletInfoAsStream(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportPortletInfoAsFile(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Class: com.liferay.portal.service.LayoutServiceWrapper

      Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Method: exportPortletInfoAsStream(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
      Status: Deleted
      New method: exportPortletInfoAsFile(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)

      Attachments

        Issue Links

          Activity

            People

              michael.hashimoto Michael Hashimoto
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP5 (5.1.8)
                  5.2 EE SP3 (5.2.7)