Liferay 7.0-ce-m3

com.liferay.portal.kernel.lar
Interface ExportImportHelper


@ProviderType
public interface ExportImportHelper


Field Summary
static String DATA_HANDLER_COMPANY_SECURE_URL
           
static String DATA_HANDLER_COMPANY_URL
           
static String DATA_HANDLER_GROUP_FRIENDLY_URL
           
static String DATA_HANDLER_PATH_CONTEXT
           
static String DATA_HANDLER_PRIVATE_GROUP_SERVLET_MAPPING
           
static String DATA_HANDLER_PRIVATE_LAYOUT_SET_SECURE_URL
           
static String DATA_HANDLER_PRIVATE_LAYOUT_SET_URL
           
static String DATA_HANDLER_PRIVATE_USER_SERVLET_MAPPING
           
static String DATA_HANDLER_PUBLIC_LAYOUT_SET_SECURE_URL
           
static String DATA_HANDLER_PUBLIC_LAYOUT_SET_URL
           
static String DATA_HANDLER_PUBLIC_SERVLET_MAPPING
           
static String TEMP_FOLDER_NAME
           
 
Method Summary
 Calendar getCalendar(PortletRequest portletRequest, String paramPrefix, boolean timeZoneSensitive)
          Deprecated. As of 7.0.0, moved to ExportImportDateUtil.getCalendar(PortletRequest, String, boolean)
 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)
 Layout getExportableLayout(ThemeDisplay themeDisplay)
           
 String getExportableRootPortletId(long companyId, String portletId)
           
 boolean[] getExportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap)
          Deprecated. As of 7.0.0, replaced by getExportPortletControlsMap(long, String, Map)
 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)
 Map<String,Boolean> getExportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap)
           
 Map<String,Boolean> getExportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, String type)
           
 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)
 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)
 Map<String,Boolean> getImportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement, ManifestSummary manifestSummary)
           
 Map<Long,Boolean> getLayoutIdMap(PortletRequest portletRequest)
           
 long[] getLayoutIds(List<Layout> layouts)
           
 long[] getLayoutIds(Map<Long,Boolean> layoutIdMap)
           
 long[] getLayoutIds(Map<Long,Boolean> layoutIdMap, long targetGroupId)
           
 long[] getLayoutIds(PortletRequest portletRequest)
           
 long[] getLayoutIds(PortletRequest portletRequest, long targetGroupId)
           
 ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, File file)
          Deprecated. As of 7.0.0, replaced by getManifestSummary(PortletDataContext)
 ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, FileEntry fileEntry)
           
 ManifestSummary getManifestSummary(PortletDataContext portletDataContext)
           
 List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId)
           
 long getModelDeletionCount(PortletDataContext portletDataContext, StagedModelType stagedModelType)
           
 String getSelectedLayoutsJSON(long groupId, boolean privateLayout, String selectedNodes)
           
 FileEntry getTempFileEntry(long groupId, long userId, String folderName)
           
 UserIdStrategy getUserIdStrategy(long userId, String userIdStrategy)
           
 boolean isReferenceWithinExportScope(PortletDataContext portletDataContext, StagedModel stagedModel)
           
 String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceExportContentReferences(PortletDataContext, StagedModel, String, boolean)
 String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content, boolean exportReferencedContent)
           
 String replaceExportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceExportDLReferences(PortletDataContext, StagedModel, String, boolean)
 String replaceExportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content, boolean exportReferencedContent)
           
 String replaceExportLayoutReferences(PortletDataContext portletDataContext, String content)
           
 String replaceExportLayoutReferences(PortletDataContext portletDataContext, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceExportLayoutReferences(PortletDataContext, String)
 String replaceExportLinksToLayouts(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceExportLinksToLayouts(PortletDataContext, StagedModel, String)
 String replaceExportLinksToLayouts(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content)
           
 String replaceImportContentReferences(PortletDataContext portletDataContext, Element entityElement, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceImportContentReferences(PortletDataContext, StagedModel, String)
 String replaceImportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content)
           
 String replaceImportDLReferences(PortletDataContext portletDataContext, Element entityElement, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceImportDLReferences(PortletDataContext, StagedModel, String)
 String replaceImportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content)
           
 String replaceImportLayoutReferences(PortletDataContext portletDataContext, String content)
           
 String replaceImportLayoutReferences(PortletDataContext portletDataContext, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceImportLayoutReferences(PortletDataContext, String)
 String replaceImportLinksToLayouts(PortletDataContext portletDataContext, String content)
           
 String replaceImportLinksToLayouts(PortletDataContext portletDataContext, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceImportLinksToLayouts(PortletDataContext, String)
 void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext, Portlet portlet, PortletPreferences portletPreferences, String key, String className)
           
 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)
 void updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext, PortletPreferences portletPreferences, String key, Class<?> clazz, long companyGroupId)
           
 MissingReferences validateMissingReferences(long userId, long groupId, Map<String,String[]> parameterMap, File file)
          Deprecated. As of 7.0.0, replaced by validateMissingReferences(PortletDataContext)
 MissingReferences validateMissingReferences(PortletDataContext portletDataContext)
           
 void writeManifestSummary(Document document, ManifestSummary manifestSummary)
           
 

Field Detail

DATA_HANDLER_COMPANY_SECURE_URL

static final String DATA_HANDLER_COMPANY_SECURE_URL
See Also:
Constant Field Values

DATA_HANDLER_COMPANY_URL

static final String DATA_HANDLER_COMPANY_URL
See Also:
Constant Field Values

DATA_HANDLER_GROUP_FRIENDLY_URL

static final String DATA_HANDLER_GROUP_FRIENDLY_URL
See Also:
Constant Field Values

DATA_HANDLER_PATH_CONTEXT

static final String DATA_HANDLER_PATH_CONTEXT
See Also:
Constant Field Values

DATA_HANDLER_PRIVATE_GROUP_SERVLET_MAPPING

static final String DATA_HANDLER_PRIVATE_GROUP_SERVLET_MAPPING
See Also:
Constant Field Values

DATA_HANDLER_PRIVATE_LAYOUT_SET_SECURE_URL

static final String DATA_HANDLER_PRIVATE_LAYOUT_SET_SECURE_URL
See Also:
Constant Field Values

DATA_HANDLER_PRIVATE_LAYOUT_SET_URL

static final String DATA_HANDLER_PRIVATE_LAYOUT_SET_URL
See Also:
Constant Field Values

DATA_HANDLER_PRIVATE_USER_SERVLET_MAPPING

static final String DATA_HANDLER_PRIVATE_USER_SERVLET_MAPPING
See Also:
Constant Field Values

DATA_HANDLER_PUBLIC_LAYOUT_SET_SECURE_URL

static final String DATA_HANDLER_PUBLIC_LAYOUT_SET_SECURE_URL
See Also:
Constant Field Values

DATA_HANDLER_PUBLIC_LAYOUT_SET_URL

static final String DATA_HANDLER_PUBLIC_LAYOUT_SET_URL
See Also:
Constant Field Values

DATA_HANDLER_PUBLIC_SERVLET_MAPPING

static final String DATA_HANDLER_PUBLIC_SERVLET_MAPPING
See Also:
Constant Field Values

TEMP_FOLDER_NAME

static final String TEMP_FOLDER_NAME
Method Detail

getCalendar

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


getDateRange

@Deprecated
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

Layout getExportableLayout(ThemeDisplay themeDisplay)
                           throws PortalException
Throws:
PortalException

getExportableRootPortletId

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

getExportPortletControls

@Deprecated
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
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

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

getExportPortletControlsMap

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

getImportPortletControls

@Deprecated
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
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

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

getLayoutIdMap

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

getLayoutIds

long[] getLayoutIds(List<Layout> layouts)

getLayoutIds

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

getLayoutIds

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

getLayoutIds

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

getLayoutIds

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

getManifestSummary

@Deprecated
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

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

getManifestSummary

ManifestSummary getManifestSummary(PortletDataContext portletDataContext)
                                   throws Exception
Throws:
Exception

getMissingParentLayouts

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

getModelDeletionCount

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

getSelectedLayoutsJSON

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

getTempFileEntry

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

getUserIdStrategy

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

isReferenceWithinExportScope

boolean isReferenceWithinExportScope(PortletDataContext portletDataContext,
                                     StagedModel stagedModel)

replaceExportContentReferences

@Deprecated
String replaceExportContentReferences(PortletDataContext portletDataContext,
                                                 StagedModel entityStagedModel,
                                                 Element entityElement,
                                                 String content,
                                                 boolean exportReferencedContent)
                                      throws Exception
Deprecated. As of 7.0.0, replaced by replaceExportContentReferences(PortletDataContext, StagedModel, String, boolean)

Throws:
Exception

replaceExportContentReferences

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

replaceExportDLReferences

@Deprecated
String replaceExportDLReferences(PortletDataContext portletDataContext,
                                            StagedModel entityStagedModel,
                                            Element entityElement,
                                            String content,
                                            boolean exportReferencedContent)
                                 throws Exception
Deprecated. As of 7.0.0, replaced by replaceExportDLReferences(PortletDataContext, StagedModel, String, boolean)

Throws:
Exception

replaceExportDLReferences

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

replaceExportLayoutReferences

String replaceExportLayoutReferences(PortletDataContext portletDataContext,
                                     String content)
                                     throws Exception
Throws:
Exception

replaceExportLayoutReferences

@Deprecated
String replaceExportLayoutReferences(PortletDataContext portletDataContext,
                                                String content,
                                                boolean exportReferencedContent)
                                     throws Exception
Deprecated. As of 7.0.0, replaced by replaceExportLayoutReferences(PortletDataContext, String)

Throws:
Exception

replaceExportLinksToLayouts

@Deprecated
String replaceExportLinksToLayouts(PortletDataContext portletDataContext,
                                              StagedModel entityStagedModel,
                                              Element entityElement,
                                              String content,
                                              boolean exportReferencedContent)
                                   throws Exception
Deprecated. As of 7.0.0, replaced by replaceExportLinksToLayouts(PortletDataContext, StagedModel, String)

Throws:
Exception

replaceExportLinksToLayouts

String replaceExportLinksToLayouts(PortletDataContext portletDataContext,
                                   StagedModel entityStagedModel,
                                   String content)
                                   throws Exception
Throws:
Exception

replaceImportContentReferences

@Deprecated
String replaceImportContentReferences(PortletDataContext portletDataContext,
                                                 Element entityElement,
                                                 String content,
                                                 boolean importReferencedContent)
                                      throws Exception
Deprecated. As of 7.0.0, replaced by replaceImportContentReferences(PortletDataContext, StagedModel, String)

Throws:
Exception

replaceImportContentReferences

String replaceImportContentReferences(PortletDataContext portletDataContext,
                                      StagedModel entityStagedModel,
                                      String content)
                                      throws Exception
Throws:
Exception

replaceImportDLReferences

@Deprecated
String replaceImportDLReferences(PortletDataContext portletDataContext,
                                            Element entityElement,
                                            String content,
                                            boolean importReferencedContent)
                                 throws Exception
Deprecated. As of 7.0.0, replaced by replaceImportDLReferences(PortletDataContext, StagedModel, String)

Throws:
Exception

replaceImportDLReferences

String replaceImportDLReferences(PortletDataContext portletDataContext,
                                 StagedModel entityStagedModel,
                                 String content)
                                 throws Exception
Throws:
Exception

replaceImportLayoutReferences

String replaceImportLayoutReferences(PortletDataContext portletDataContext,
                                     String content)
                                     throws Exception
Throws:
Exception

replaceImportLayoutReferences

@Deprecated
String replaceImportLayoutReferences(PortletDataContext portletDataContext,
                                                String content,
                                                boolean importReferencedContent)
                                     throws Exception
Deprecated. As of 7.0.0, replaced by replaceImportLayoutReferences(PortletDataContext, String)

Throws:
Exception

replaceImportLinksToLayouts

String replaceImportLinksToLayouts(PortletDataContext portletDataContext,
                                   String content)
                                   throws Exception
Throws:
Exception

replaceImportLinksToLayouts

@Deprecated
String replaceImportLinksToLayouts(PortletDataContext portletDataContext,
                                              String content,
                                              boolean importReferencedContent)
                                   throws Exception
Deprecated. As of 7.0.0, replaced by replaceImportLinksToLayouts(PortletDataContext, String)

Throws:
Exception

updateExportPortletPreferencesClassPKs

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

updateExportPortletPreferencesClassPKs

@Deprecated
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

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

validateMissingReferences

@Deprecated
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

MissingReferences validateMissingReferences(PortletDataContext portletDataContext)
                                            throws Exception
Throws:
Exception

writeManifestSummary

void writeManifestSummary(Document document,
                          ManifestSummary manifestSummary)

Liferay 7.0-ce-m3