Liferay 7.0-ce-b4

com.liferay.portlet.exportimport.lar
Class ExportImportHelperUtil

java.lang.Object
  extended by com.liferay.portlet.exportimport.lar.ExportImportHelperUtil

@ProviderType
public class ExportImportHelperUtil
extends Object


Constructor Summary
ExportImportHelperUtil()
           
 
Method Summary
static long[] getAllLayoutIds(long groupId, boolean privateLayout)
           
static Map<Long,Boolean> getAllLayoutIdsMap(long groupId, boolean privateLayout)
           
static Calendar getCalendar(PortletRequest portletRequest, String paramPrefix, boolean timeZoneSensitive)
          Deprecated. As of 7.0.0, moved to ExportImportDateUtil.getCalendar(PortletRequest, String, boolean)
static List<Portlet> getDataSiteLevelPortlets(long companyId)
           
static List<Portlet> getDataSiteLevelPortlets(long companyId, boolean excludeDataAlwaysStaged)
           
static DateRange getDateRange(PortletRequest portletRequest, long groupId, boolean privateLayout, long plid, String portletId, String defaultRange)
          Deprecated. As of 7.0.0, moved to ExportImportDateUtil.getDateRange(PortletRequest, long, boolean, long, String, String)
static Layout getExportableLayout(ThemeDisplay themeDisplay)
           
static String getExportableRootPortletId(long companyId, String portletId)
           
static boolean[] getExportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap)
          Deprecated. As of 7.0.0, replaced by getExportPortletControlsMap(long, String, Map)
static boolean[] getExportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, String type)
          Deprecated. As of 7.0.0, replaced by getExportPortletControlsMap(long, String, Map, String)
static Map<String,Boolean> getExportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap)
           
static Map<String,Boolean> getExportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, String type)
           
static boolean[] getImportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement)
          Deprecated. As of 7.0.0, replaced by getImportPortletControlsMap(long, String, Map, Element, ManifestSummary)
static boolean[] getImportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement, ManifestSummary manifestSummary)
          Deprecated. As of 7.0.0, replaced by getImportPortletControlsMap(long, String, Map, Element, ManifestSummary)
static Map<String,Boolean> getImportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement, ManifestSummary manifestSummary)
           
static Map<Long,Boolean> getLayoutIdMap(PortletRequest portletRequest)
           
static long[] getLayoutIds(List<Layout> layouts)
           
static long[] getLayoutIds(Map<Long,Boolean> layoutIdMap)
           
static long[] getLayoutIds(Map<Long,Boolean> layoutIdMap, long targetGroupId)
           
static long[] getLayoutIds(PortletRequest portletRequest)
           
static long[] getLayoutIds(PortletRequest portletRequest, long targetGroupId)
           
static ZipWriter getLayoutSetZipWriter(long groupId)
           
static ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, File file)
          Deprecated. As of 7.0.0, replaced by getManifestSummary(PortletDataContext)
static ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, FileEntry fileEntry)
           
static ManifestSummary getManifestSummary(PortletDataContext portletDataContext)
           
static List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId)
           
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 UserIdStrategy getUserIdStrategy(long userId, String userIdStrategy)
           
static boolean isReferenceWithinExportScope(PortletDataContext portletDataContext, StagedModel stagedModel)
           
static String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, replaced by com.liferay.exportimport.content.processor.ExportImportContentProcessorr#replaceExportContentReferences( PortletDataContext, StagedModel, String, boolean, boolean) in the export-import-api module
static String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, replaced by com.liferay.exportimport.content.processor.ExportImportContentProcessor#replaceExportContentReferences( PortletDataContext, StagedModel, String, boolean, boolean) in the export-import-api module
static String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content, boolean exportReferencedContent, boolean escapeContent)
          Deprecated. As of 7.0.0, replaced by com.liferay.exportimport.content.processor.ExportImportContentProcessorr#replaceExportContentReferences( PortletDataContext, StagedModel, String, boolean, boolean) in the export-import-api module
static String replaceExportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceExportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceExportLayoutReferences(PortletDataContext portletDataContext, String content)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceExportLayoutReferences(PortletDataContext portletDataContext, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceExportLinksToLayouts(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceExportLinksToLayouts(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceImportContentReferences(PortletDataContext portletDataContext, Element entityElement, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, replaced by com.liferay.exportimport.content.processor.ExportImportContentProcessor#replaceImportContentReferences( PortletDataContext, StagedModel, String) in the export-import-api module
static String replaceImportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content)
          Deprecated. As of 7.0.0, replaced by com.liferay.exportimport.content.processor.ExportImportContentProcessor#replaceImportContentReferences( PortletDataContext, StagedModel, String) in the export-import-api module
static String replaceImportDLReferences(PortletDataContext portletDataContext, Element entityElement, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceImportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceImportLayoutReferences(PortletDataContext portletDataContext, String content)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceImportLayoutReferences(PortletDataContext portletDataContext, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceImportLinksToLayouts(PortletDataContext portletDataContext, String content)
          Deprecated. As of 7.0.0, with no direct replacement
static String replaceImportLinksToLayouts(PortletDataContext portletDataContext, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, with no direct replacement
static void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext, Portlet portlet, PortletPreferences portletPreferences, String key, String className)
          Deprecated. As of 7.0.0, see DefaultConfigurationPortletDataHandler.updateExportPortletPreferencesClassPKs( PortletDataContext, Portlet, PortletPreferences, String, String)
static void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext, Portlet portlet, PortletPreferences portletPreferences, String key, String className, Element rootElement)
          Deprecated. As of 7.0.0, replaced by updateExportPortletPreferencesClassPKs(PortletDataContext, Portlet, PortletPreferences, String, String)
static void updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext, PortletPreferences portletPreferences, String key, Class<?> clazz, long companyGroupId)
          Deprecated. As of 7.0.0, see DefaultConfigurationPortletDataHandler.updateImportPortletPreferencesClassPKs( PortletDataContext, PortletPreferences, String, Class, long)
static MissingReferences validateMissingReferences(long userId, long groupId, Map<String,String[]> parameterMap, File file)
          Deprecated. As of 7.0.0, replaced by validateMissingReferences(PortletDataContext)
static MissingReferences validateMissingReferences(PortletDataContext portletDataContext)
           
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

getAllLayoutIds

public static long[] getAllLayoutIds(long groupId,
                                     boolean privateLayout)

getAllLayoutIdsMap

public static Map<Long,Boolean> getAllLayoutIdsMap(long groupId,
                                                   boolean privateLayout)

getCalendar

@Deprecated
public static Calendar getCalendar(PortletRequest portletRequest,
                                              String paramPrefix,
                                              boolean timeZoneSensitive)
Deprecated. As of 7.0.0, moved to ExportImportDateUtil.getCalendar(PortletRequest, String, boolean)


getDataSiteLevelPortlets

public static List<Portlet> getDataSiteLevelPortlets(long companyId)
                                              throws Exception
Throws:
Exception

getDataSiteLevelPortlets

public static List<Portlet> getDataSiteLevelPortlets(long companyId,
                                                     boolean excludeDataAlwaysStaged)
                                              throws Exception
Throws:
Exception

getDateRange

@Deprecated
public static DateRange getDateRange(PortletRequest portletRequest,
                                                long groupId,
                                                boolean privateLayout,
                                                long plid,
                                                String portletId,
                                                String defaultRange)
                              throws Exception
Deprecated. As of 7.0.0, moved to ExportImportDateUtil.getDateRange(PortletRequest, long, boolean, long, String, String)

Throws:
Exception

getExportableLayout

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

getExportableRootPortletId

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

getExportPortletControls

@Deprecated
public static boolean[] getExportPortletControls(long companyId,
                                                            String portletId,
                                                            Map<String,String[]> parameterMap)
                                          throws Exception
Deprecated. As of 7.0.0, replaced by getExportPortletControlsMap(long, String, Map)

Throws:
Exception

getExportPortletControls

@Deprecated
public static boolean[] getExportPortletControls(long companyId,
                                                            String portletId,
                                                            Map<String,String[]> parameterMap,
                                                            String type)
                                          throws Exception
Deprecated. As of 7.0.0, replaced by getExportPortletControlsMap(long, String, Map, String)

Throws:
Exception

getExportPortletControlsMap

public static Map<String,Boolean> getExportPortletControlsMap(long companyId,
                                                              String portletId,
                                                              Map<String,String[]> parameterMap)
                                                       throws Exception
Throws:
Exception

getExportPortletControlsMap

public static Map<String,Boolean> getExportPortletControlsMap(long companyId,
                                                              String portletId,
                                                              Map<String,String[]> parameterMap,
                                                              String type)
                                                       throws Exception
Throws:
Exception

getImportPortletControls

@Deprecated
public static boolean[] getImportPortletControls(long companyId,
                                                            String portletId,
                                                            Map<String,String[]> parameterMap,
                                                            Element portletDataElement)
                                          throws Exception
Deprecated. As of 7.0.0, replaced by getImportPortletControlsMap(long, String, Map, Element, ManifestSummary)

Throws:
Exception

getImportPortletControls

@Deprecated
public static boolean[] getImportPortletControls(long companyId,
                                                            String portletId,
                                                            Map<String,String[]> parameterMap,
                                                            Element portletDataElement,
                                                            ManifestSummary manifestSummary)
                                          throws Exception
Deprecated. As of 7.0.0, replaced by getImportPortletControlsMap(long, String, Map, Element, ManifestSummary)

Throws:
Exception

getImportPortletControlsMap

public static Map<String,Boolean> getImportPortletControlsMap(long companyId,
                                                              String portletId,
                                                              Map<String,String[]> parameterMap,
                                                              Element portletDataElement,
                                                              ManifestSummary manifestSummary)
                                                       throws Exception
Throws:
Exception

getLayoutIdMap

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

getLayoutIds

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

getLayoutIds

public static long[] getLayoutIds(Map<Long,Boolean> layoutIdMap)
                           throws PortalException
Throws:
PortalException

getLayoutIds

public static long[] getLayoutIds(Map<Long,Boolean> layoutIdMap,
                                  long targetGroupId)
                           throws PortalException
Throws:
PortalException

getLayoutIds

public static long[] getLayoutIds(PortletRequest portletRequest)
                           throws PortalException
Throws:
PortalException

getLayoutIds

public static long[] getLayoutIds(PortletRequest portletRequest,
                                  long targetGroupId)
                           throws PortalException
Throws:
PortalException

getLayoutSetZipWriter

public static ZipWriter getLayoutSetZipWriter(long groupId)

getManifestSummary

@Deprecated
public static ManifestSummary getManifestSummary(long userId,
                                                            long groupId,
                                                            Map<String,String[]> parameterMap,
                                                            File file)
                                          throws Exception
Deprecated. As of 7.0.0, replaced by getManifestSummary(PortletDataContext)

Throws:
Exception

getManifestSummary

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

getManifestSummary

public static ManifestSummary getManifestSummary(PortletDataContext portletDataContext)
                                          throws Exception
Throws:
Exception

getMissingParentLayouts

public static List<Layout> getMissingParentLayouts(Layout layout,
                                                   long liveGroupId)
                                            throws PortalException
Throws:
PortalException

getModelDeletionCount

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

getPortletZipWriter

public static ZipWriter getPortletZipWriter(String portletId)

getSelectedLayoutsJSON

public static String getSelectedLayoutsJSON(long groupId,
                                            boolean privateLayout,
                                            String selectedNodes)

getTempFileEntry

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

getUserIdStrategy

public static UserIdStrategy getUserIdStrategy(long userId,
                                               String userIdStrategy)
                                        throws PortalException
Throws:
PortalException

isReferenceWithinExportScope

public static boolean isReferenceWithinExportScope(PortletDataContext portletDataContext,
                                                   StagedModel stagedModel)

replaceExportContentReferences

@Deprecated
public static String replaceExportContentReferences(PortletDataContext portletDataContext,
                                                               StagedModel entityStagedModel,
                                                               Element entityElement,
                                                               String content,
                                                               boolean exportReferencedContent)
                                             throws Exception
Deprecated. As of 7.0.0, replaced by com.liferay.exportimport.content.processor.ExportImportContentProcessorr#replaceExportContentReferences( PortletDataContext, StagedModel, String, boolean, boolean) in the export-import-api module

Throws:
Exception

replaceExportContentReferences

@Deprecated
public static String replaceExportContentReferences(PortletDataContext portletDataContext,
                                                               StagedModel entityStagedModel,
                                                               String content,
                                                               boolean exportReferencedContent)
                                             throws Exception
Deprecated. As of 7.0.0, replaced by com.liferay.exportimport.content.processor.ExportImportContentProcessor#replaceExportContentReferences( PortletDataContext, StagedModel, String, boolean, boolean) in the export-import-api module

Throws:
Exception

replaceExportContentReferences

@Deprecated
public static String replaceExportContentReferences(PortletDataContext portletDataContext,
                                                               StagedModel entityStagedModel,
                                                               String content,
                                                               boolean exportReferencedContent,
                                                               boolean escapeContent)
                                             throws Exception
Deprecated. As of 7.0.0, replaced by com.liferay.exportimport.content.processor.ExportImportContentProcessorr#replaceExportContentReferences( PortletDataContext, StagedModel, String, boolean, boolean) in the export-import-api module

Throws:
Exception

replaceExportDLReferences

@Deprecated
public static String replaceExportDLReferences(PortletDataContext portletDataContext,
                                                          StagedModel entityStagedModel,
                                                          Element entityElement,
                                                          String content,
                                                          boolean exportReferencedContent)
                                        throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceExportDLReferences

@Deprecated
public static String replaceExportDLReferences(PortletDataContext portletDataContext,
                                                          StagedModel entityStagedModel,
                                                          String content,
                                                          boolean exportReferencedContent)
                                        throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceExportLayoutReferences

@Deprecated
public static String replaceExportLayoutReferences(PortletDataContext portletDataContext,
                                                              String content)
                                            throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceExportLayoutReferences

@Deprecated
public static String replaceExportLayoutReferences(PortletDataContext portletDataContext,
                                                              String content,
                                                              boolean exportReferencedContent)
                                            throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceExportLinksToLayouts

@Deprecated
public static String replaceExportLinksToLayouts(PortletDataContext portletDataContext,
                                                            StagedModel entityStagedModel,
                                                            Element entityElement,
                                                            String content,
                                                            boolean exportReferencedContent)
                                          throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceExportLinksToLayouts

@Deprecated
public static String replaceExportLinksToLayouts(PortletDataContext portletDataContext,
                                                            StagedModel entityStagedModel,
                                                            String content)
                                          throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceImportContentReferences

@Deprecated
public static String replaceImportContentReferences(PortletDataContext portletDataContext,
                                                               Element entityElement,
                                                               String content,
                                                               boolean importReferencedContent)
                                             throws Exception
Deprecated. As of 7.0.0, replaced by com.liferay.exportimport.content.processor.ExportImportContentProcessor#replaceImportContentReferences( PortletDataContext, StagedModel, String) in the export-import-api module

Throws:
Exception

replaceImportContentReferences

@Deprecated
public static String replaceImportContentReferences(PortletDataContext portletDataContext,
                                                               StagedModel entityStagedModel,
                                                               String content)
                                             throws Exception
Deprecated. As of 7.0.0, replaced by com.liferay.exportimport.content.processor.ExportImportContentProcessor#replaceImportContentReferences( PortletDataContext, StagedModel, String) in the export-import-api module

Throws:
Exception

replaceImportDLReferences

@Deprecated
public static String replaceImportDLReferences(PortletDataContext portletDataContext,
                                                          Element entityElement,
                                                          String content,
                                                          boolean importReferencedContent)
                                        throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceImportDLReferences

@Deprecated
public static String replaceImportDLReferences(PortletDataContext portletDataContext,
                                                          StagedModel entityStagedModel,
                                                          String content)
                                        throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceImportLayoutReferences

@Deprecated
public static String replaceImportLayoutReferences(PortletDataContext portletDataContext,
                                                              String content)
                                            throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceImportLayoutReferences

@Deprecated
public static String replaceImportLayoutReferences(PortletDataContext portletDataContext,
                                                              String content,
                                                              boolean importReferencedContent)
                                            throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceImportLinksToLayouts

@Deprecated
public static String replaceImportLinksToLayouts(PortletDataContext portletDataContext,
                                                            String content)
                                          throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

replaceImportLinksToLayouts

@Deprecated
public static String replaceImportLinksToLayouts(PortletDataContext portletDataContext,
                                                            String content,
                                                            boolean importReferencedContent)
                                          throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

updateExportPortletPreferencesClassPKs

@Deprecated
public static void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
                                                                     Portlet portlet,
                                                                     PortletPreferences portletPreferences,
                                                                     String key,
                                                                     String className)
                                                   throws Exception
Deprecated. As of 7.0.0, see DefaultConfigurationPortletDataHandler.updateExportPortletPreferencesClassPKs( PortletDataContext, Portlet, PortletPreferences, String, String)

Throws:
Exception

updateExportPortletPreferencesClassPKs

@Deprecated
public static void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
                                                                     Portlet portlet,
                                                                     PortletPreferences portletPreferences,
                                                                     String key,
                                                                     String className,
                                                                     Element rootElement)
                                                   throws Exception
Deprecated. As of 7.0.0, replaced by updateExportPortletPreferencesClassPKs(PortletDataContext, Portlet, PortletPreferences, String, String)

Throws:
Exception

updateImportPortletPreferencesClassPKs

@Deprecated
public static void updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
                                                                     PortletPreferences portletPreferences,
                                                                     String key,
                                                                     Class<?> clazz,
                                                                     long companyGroupId)
                                                   throws Exception
Deprecated. As of 7.0.0, see DefaultConfigurationPortletDataHandler.updateImportPortletPreferencesClassPKs( PortletDataContext, PortletPreferences, String, Class, long)

Throws:
Exception

validateMissingReferences

@Deprecated
public static MissingReferences validateMissingReferences(long userId,
                                                                     long groupId,
                                                                     Map<String,String[]> parameterMap,
                                                                     File file)
                                                   throws Exception
Deprecated. As of 7.0.0, replaced by validateMissingReferences(PortletDataContext)

Throws:
Exception

validateMissingReferences

public static MissingReferences validateMissingReferences(PortletDataContext portletDataContext)
                                                   throws Exception
Throws:
Exception

writeManifestSummary

public static void writeManifestSummary(Document document,
                                        ManifestSummary manifestSummary)

Liferay 7.0-ce-b4