Liferay 6.2-ce-ga5

com.liferay.portal.kernel.lar
Class ExportImportHelperUtil

java.lang.Object
  extended by com.liferay.portal.kernel.lar.ExportImportHelperUtil

public class ExportImportHelperUtil
extends Object


Constructor Summary
ExportImportHelperUtil()
           
 
Method Summary
static Calendar getCalendar(PortletRequest portletRequest, String paramPrefix, boolean timeZoneSensitive)
           
static DateRange getDateRange(PortletRequest portletRequest, long groupId, boolean privateLayout, long plid, String portletId, String defaultRange)
           
static Layout getExportableLayout(ThemeDisplay themeDisplay)
           
static String getExportableRootPortletId(long companyId, String portletId)
           
static ExportImportHelper getExportImportHelper()
           
static Map<Long,Boolean> getLayoutIdMap(PortletRequest portletRequest)
           
static long[] getLayoutIds(List<Layout> layouts)
           
static ZipWriter getLayoutSetZipWriter(long groupId)
           
static ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, File file)
           
static ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, FileEntry fileEntry)
           
static long getModelDeletionCount(PortletDataContext portletDataContext, StagedModelType stagedModelType)
           
static ZipWriter getPortletZipWriter(String portletId)
           
static String getSelectedLayoutsJSON(long groupId, boolean privateLayout, String selectedNodes)
           
static FileEntry getTempFileEntry(long groupId, long userId, String folderName)
           
static void reindex(PortletDataContext portletDataContext, long userId)
           
static String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
           
static String replaceExportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
           
static String replaceExportLayoutReferences(PortletDataContext portletDataContext, String content, boolean exportReferencedContent)
           
static String replaceExportLinksToLayouts(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
           
static String replaceImportContentReferences(PortletDataContext portletDataContext, Element entityElement, String content, boolean importReferencedContent)
           
static String replaceImportDLReferences(PortletDataContext portletDataContext, Element entityElement, String content, boolean importReferencedContent)
           
static String replaceImportLayoutReferences(PortletDataContext portletDataContext, String content, boolean importReferencedContent)
           
static String replaceImportLinksToLayouts(PortletDataContext portletDataContext, String content, boolean importReferencedContent)
           
 void setExportImportHelper(ExportImportHelper exportImportHelper)
           
static void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext, Portlet portlet, PortletPreferences portletPreferences, String key, String className, Element rootElement)
           
static void updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext, PortletPreferences portletPreferences, String key, Class<?> clazz, long companyGroupId)
           
static MissingReferences validateMissingReferences(long userId, long groupId, Map<String,String[]> parameterMap, File file)
           
static void writeManifestSummary(Document document, ManifestSummary manifestSummary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportImportHelperUtil

public ExportImportHelperUtil()
Method Detail

getCalendar

public static Calendar getCalendar(PortletRequest portletRequest,
                                   String paramPrefix,
                                   boolean timeZoneSensitive)

reindex

public static void reindex(PortletDataContext portletDataContext,
                           long userId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getDateRange

public static DateRange getDateRange(PortletRequest portletRequest,
                                     long groupId,
                                     boolean privateLayout,
                                     long plid,
                                     String portletId,
                                     String defaultRange)
                              throws Exception
Throws:
Exception

getExportableLayout

public static Layout getExportableLayout(ThemeDisplay themeDisplay)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getExportableRootPortletId

public static String getExportableRootPortletId(long companyId,
                                                String portletId)
                                         throws Exception
Throws:
Exception

getExportImportHelper

public static ExportImportHelper getExportImportHelper()

getLayoutIdMap

public static Map<Long,Boolean> getLayoutIdMap(PortletRequest portletRequest)
                                        throws Exception
Throws:
Exception

getLayoutIds

public static long[] getLayoutIds(List<Layout> layouts)

getLayoutSetZipWriter

public static ZipWriter getLayoutSetZipWriter(long groupId)

getManifestSummary

public static ManifestSummary getManifestSummary(long userId,
                                                 long groupId,
                                                 Map<String,String[]> parameterMap,
                                                 File file)
                                          throws Exception
Throws:
Exception

getManifestSummary

public static ManifestSummary getManifestSummary(long userId,
                                                 long groupId,
                                                 Map<String,String[]> parameterMap,
                                                 FileEntry fileEntry)
                                          throws Exception
Throws:
Exception

getModelDeletionCount

public static long getModelDeletionCount(PortletDataContext portletDataContext,
                                         StagedModelType stagedModelType)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getPortletZipWriter

public static ZipWriter getPortletZipWriter(String portletId)

getSelectedLayoutsJSON

public static String getSelectedLayoutsJSON(long groupId,
                                            boolean privateLayout,
                                            String selectedNodes)
                                     throws SystemException
Throws:
SystemException

getTempFileEntry

public static FileEntry getTempFileEntry(long groupId,
                                         long userId,
                                         String folderName)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

replaceExportContentReferences

public static String replaceExportContentReferences(PortletDataContext portletDataContext,
                                                    StagedModel entityStagedModel,
                                                    Element entityElement,
                                                    String content,
                                                    boolean exportReferencedContent)
                                             throws Exception
Throws:
Exception

replaceExportDLReferences

public static String replaceExportDLReferences(PortletDataContext portletDataContext,
                                               StagedModel entityStagedModel,
                                               Element entityElement,
                                               String content,
                                               boolean exportReferencedContent)
                                        throws Exception
Throws:
Exception

replaceExportLayoutReferences

public static String replaceExportLayoutReferences(PortletDataContext portletDataContext,
                                                   String content,
                                                   boolean exportReferencedContent)
                                            throws Exception
Throws:
Exception

replaceExportLinksToLayouts

public static String replaceExportLinksToLayouts(PortletDataContext portletDataContext,
                                                 StagedModel entityStagedModel,
                                                 Element entityElement,
                                                 String content,
                                                 boolean exportReferencedContent)
                                          throws Exception
Throws:
Exception

replaceImportContentReferences

public static String replaceImportContentReferences(PortletDataContext portletDataContext,
                                                    Element entityElement,
                                                    String content,
                                                    boolean importReferencedContent)
                                             throws Exception
Throws:
Exception

replaceImportDLReferences

public static String replaceImportDLReferences(PortletDataContext portletDataContext,
                                               Element entityElement,
                                               String content,
                                               boolean importReferencedContent)
                                        throws Exception
Throws:
Exception

replaceImportLayoutReferences

public static String replaceImportLayoutReferences(PortletDataContext portletDataContext,
                                                   String content,
                                                   boolean importReferencedContent)
                                            throws Exception
Throws:
Exception

replaceImportLinksToLayouts

public static String replaceImportLinksToLayouts(PortletDataContext portletDataContext,
                                                 String content,
                                                 boolean importReferencedContent)
                                          throws Exception
Throws:
Exception

updateExportPortletPreferencesClassPKs

public static void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
                                                          Portlet portlet,
                                                          PortletPreferences portletPreferences,
                                                          String key,
                                                          String className,
                                                          Element rootElement)
                                                   throws Exception
Throws:
Exception

updateImportPortletPreferencesClassPKs

public static void updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
                                                          PortletPreferences portletPreferences,
                                                          String key,
                                                          Class<?> clazz,
                                                          long companyGroupId)
                                                   throws Exception
Throws:
Exception

validateMissingReferences

public static MissingReferences validateMissingReferences(long userId,
                                                          long groupId,
                                                          Map<String,String[]> parameterMap,
                                                          File file)
                                                   throws Exception
Throws:
Exception

writeManifestSummary

public static void writeManifestSummary(Document document,
                                        ManifestSummary manifestSummary)

setExportImportHelper

public void setExportImportHelper(ExportImportHelper exportImportHelper)

Liferay 6.2-ce-ga5