public class ExportImportHelperUtil
extends Object
Constructor and Description |
---|
ExportImportHelperUtil() |
Modifier and Type | Method and Description |
---|---|
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 Wilberforce (7.0.x), 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 Wilberforce (7.0.x), moved to
ExportImportDateUtil.getDateRange(PortletRequest, long,
boolean, long, String, String) |
static Layout |
getExportableLayout(ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static String |
getExportableRootPortletId(long companyId,
String portletId) |
static boolean[] |
getExportPortletControls(long companyId,
String portletId,
Map<String,String[]> parameterMap)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getExportPortletControlsMap(long, String, Map) |
static boolean[] |
getExportPortletControls(long companyId,
String portletId,
Map<String,String[]> parameterMap,
String type)
Deprecated.
As of Wilberforce (7.0.x), 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 Wilberforce (7.0.x), 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 Wilberforce (7.0.x), 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 long |
getLayoutModelDeletionCount(PortletDataContext portletDataContext,
boolean privateLayout) |
static Layout |
getLayoutOrCreateDummyRootLayout(long plid) |
static ZipWriter |
getLayoutSetZipWriter(long groupId) |
static ManifestSummary |
getManifestSummary(long userId,
long groupId,
Map<String,String[]> parameterMap,
File file)
Deprecated.
As of Wilberforce (7.0.x), 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 String |
getPortletExportFileName(Portlet portlet) |
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 |
isAlwaysIncludeReference(PortletDataContext portletDataContext,
StagedModel referenceStagedModel) |
static boolean |
isExportPortletData(PortletDataContext portletDataContext) |
static boolean |
isLayoutRevisionInReview(Layout layout) |
static boolean |
isReferenceWithinExportScope(PortletDataContext portletDataContext,
StagedModel stagedModel) |
static void |
processBackgroundTaskManifestSummary(long userId,
long sourceGroupId,
BackgroundTask backgroundTask,
File file) |
static String |
replaceExportContentReferences(PortletDataContext portletDataContext,
StagedModel entityStagedModel,
Element entityElement,
String content,
boolean exportReferencedContent)
Deprecated.
As of Wilberforce (7.0.x), 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 Wilberforce (7.0.x), 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 Wilberforce (7.0.x), 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 Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceExportDLReferences(PortletDataContext portletDataContext,
StagedModel entityStagedModel,
String content,
boolean exportReferencedContent)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceExportLayoutReferences(PortletDataContext portletDataContext,
String content)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceExportLayoutReferences(PortletDataContext portletDataContext,
String content,
boolean exportReferencedContent)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceExportLinksToLayouts(PortletDataContext portletDataContext,
StagedModel entityStagedModel,
Element entityElement,
String content,
boolean exportReferencedContent)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceExportLinksToLayouts(PortletDataContext portletDataContext,
StagedModel entityStagedModel,
String content)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceImportContentReferences(PortletDataContext portletDataContext,
Element entityElement,
String content,
boolean importReferencedContent)
Deprecated.
As of Wilberforce (7.0.x), 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 Wilberforce (7.0.x), 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 Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceImportDLReferences(PortletDataContext portletDataContext,
StagedModel entityStagedModel,
String content)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceImportLayoutReferences(PortletDataContext portletDataContext,
String content)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceImportLayoutReferences(PortletDataContext portletDataContext,
String content,
boolean importReferencedContent)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceImportLinksToLayouts(PortletDataContext portletDataContext,
String content)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static String |
replaceImportLinksToLayouts(PortletDataContext portletDataContext,
String content,
boolean importReferencedContent)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
static void |
setPortletScope(PortletDataContext portletDataContext,
Element portletElement) |
static void |
updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
Portlet portlet,
PortletPreferences portletPreferences,
String key,
String className)
Deprecated.
|
static void |
updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
Portlet portlet,
PortletPreferences portletPreferences,
String key,
String className,
Element rootElement)
Deprecated.
As of Wilberforce (7.0.x), replaced by
updateExportPortletPreferencesClassPKs(PortletDataContext,
Portlet, PortletPreferences, String, String) |
static void |
updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
PortletPreferences portletPreferences,
String key,
Class<?> clazz,
long companyGroupId)
Deprecated.
|
static MissingReferences |
validateMissingReferences(long userId,
long groupId,
Map<String,String[]> parameterMap,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
validateMissingReferences(PortletDataContext) |
static MissingReferences |
validateMissingReferences(PortletDataContext portletDataContext) |
static void |
writeManifestSummary(Document document,
ManifestSummary manifestSummary) |
public static long[] getAllLayoutIds(long groupId, boolean privateLayout)
public static Map<Long,Boolean> getAllLayoutIdsMap(long groupId, boolean privateLayout)
@Deprecated public static Calendar getCalendar(PortletRequest portletRequest, String paramPrefix, boolean timeZoneSensitive)
ExportImportDateUtil.getCalendar(PortletRequest, String,
boolean)
public static List<Portlet> getDataSiteLevelPortlets(long companyId) throws Exception
Exception
public static List<Portlet> getDataSiteLevelPortlets(long companyId, boolean excludeDataAlwaysStaged) throws Exception
Exception
@Deprecated public static DateRange getDateRange(PortletRequest portletRequest, long groupId, boolean privateLayout, long plid, String portletId, String defaultRange) throws Exception
ExportImportDateUtil.getDateRange(PortletRequest, long,
boolean, long, String, String)
Exception
@Deprecated public static Layout getExportableLayout(ThemeDisplay themeDisplay) throws PortalException
PortalException
public static String getExportableRootPortletId(long companyId, String portletId) throws Exception
Exception
@Deprecated public static boolean[] getExportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap) throws Exception
getExportPortletControlsMap(long, String, Map)
Exception
@Deprecated public static boolean[] getExportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, String type) throws Exception
getExportPortletControlsMap(long, String, Map, String)
Exception
public static Map<String,Boolean> getExportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap) throws Exception
Exception
public static Map<String,Boolean> getExportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, String type) throws Exception
Exception
@Deprecated public static boolean[] getImportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement) throws Exception
getImportPortletControlsMap(long, String, Map, Element,
ManifestSummary)
Exception
@Deprecated public static boolean[] getImportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement, ManifestSummary manifestSummary) throws Exception
getImportPortletControlsMap(long, String, Map, Element,
ManifestSummary)
Exception
public static Map<String,Boolean> getImportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement, ManifestSummary manifestSummary) throws Exception
Exception
public static Map<Long,Boolean> getLayoutIdMap(PortletRequest portletRequest) throws PortalException
PortalException
public static long[] getLayoutIds(List<Layout> layouts)
public static long[] getLayoutIds(Map<Long,Boolean> layoutIdMap) throws PortalException
PortalException
public static long[] getLayoutIds(Map<Long,Boolean> layoutIdMap, long targetGroupId) throws PortalException
PortalException
public static long[] getLayoutIds(PortletRequest portletRequest) throws PortalException
PortalException
public static long[] getLayoutIds(PortletRequest portletRequest, long targetGroupId) throws PortalException
PortalException
public static long getLayoutModelDeletionCount(PortletDataContext portletDataContext, boolean privateLayout) throws PortalException
PortalException
public static Layout getLayoutOrCreateDummyRootLayout(long plid) throws PortalException
PortalException
public static ZipWriter getLayoutSetZipWriter(long groupId)
@Deprecated public static ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, File file) throws Exception
getManifestSummary(PortletDataContext)
Exception
public static ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, FileEntry fileEntry) throws Exception
Exception
public static ManifestSummary getManifestSummary(PortletDataContext portletDataContext) throws Exception
Exception
public static List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId) throws PortalException
PortalException
public static long getModelDeletionCount(PortletDataContext portletDataContext, StagedModelType stagedModelType) throws PortalException
PortalException
public static String getPortletExportFileName(Portlet portlet)
public static ZipWriter getPortletZipWriter(String portletId)
public static String getSelectedLayoutsJSON(long groupId, boolean privateLayout, String selectedNodes)
public static FileEntry getTempFileEntry(long groupId, long userId, String folderName) throws PortalException
PortalException
public static UserIdStrategy getUserIdStrategy(long userId, String userIdStrategy) throws PortalException
PortalException
public static boolean isAlwaysIncludeReference(PortletDataContext portletDataContext, StagedModel referenceStagedModel)
public static boolean isExportPortletData(PortletDataContext portletDataContext)
public static boolean isLayoutRevisionInReview(Layout layout)
public static boolean isReferenceWithinExportScope(PortletDataContext portletDataContext, StagedModel stagedModel)
public static void processBackgroundTaskManifestSummary(long userId, long sourceGroupId, BackgroundTask backgroundTask, File file) throws PortalException
PortalException
@Deprecated public static String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent) throws Exception
Exception
@Deprecated public static String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content, boolean exportReferencedContent) throws Exception
Exception
@Deprecated public static String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content, boolean exportReferencedContent, boolean escapeContent) throws Exception
Exception
@Deprecated public static String replaceExportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent) throws Exception
Exception
@Deprecated public static String replaceExportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content, boolean exportReferencedContent) throws Exception
Exception
@Deprecated public static String replaceExportLayoutReferences(PortletDataContext portletDataContext, String content) throws Exception
Exception
@Deprecated public static String replaceExportLayoutReferences(PortletDataContext portletDataContext, String content, boolean exportReferencedContent) throws Exception
Exception
@Deprecated public static String replaceExportLinksToLayouts(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent) throws Exception
Exception
@Deprecated public static String replaceExportLinksToLayouts(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content) throws Exception
Exception
@Deprecated public static String replaceImportContentReferences(PortletDataContext portletDataContext, Element entityElement, String content, boolean importReferencedContent) throws Exception
Exception
@Deprecated public static String replaceImportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content) throws Exception
Exception
@Deprecated public static String replaceImportDLReferences(PortletDataContext portletDataContext, Element entityElement, String content, boolean importReferencedContent) throws Exception
Exception
@Deprecated public static String replaceImportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content) throws Exception
Exception
@Deprecated public static String replaceImportLayoutReferences(PortletDataContext portletDataContext, String content) throws Exception
Exception
@Deprecated public static String replaceImportLayoutReferences(PortletDataContext portletDataContext, String content, boolean importReferencedContent) throws Exception
Exception
@Deprecated public static String replaceImportLinksToLayouts(PortletDataContext portletDataContext, String content) throws Exception
Exception
@Deprecated public static String replaceImportLinksToLayouts(PortletDataContext portletDataContext, String content, boolean importReferencedContent) throws Exception
Exception
public static void setPortletScope(PortletDataContext portletDataContext, Element portletElement)
@Deprecated public static void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext, Portlet portlet, PortletPreferences portletPreferences, String key, String className) throws Exception
DefaultConfigurationPortletDataHandler.updateExportPortletPreferencesClassPKs(
PortletDataContext, Portlet, PortletPreferences, String,
String)
Exception
@Deprecated public static void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext, Portlet portlet, PortletPreferences portletPreferences, String key, String className, Element rootElement) throws Exception
updateExportPortletPreferencesClassPKs(PortletDataContext,
Portlet, PortletPreferences, String, String)
Exception
@Deprecated public static void updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext, PortletPreferences portletPreferences, String key, Class<?> clazz, long companyGroupId) throws Exception
DefaultConfigurationPortletDataHandler.updateImportPortletPreferencesClassPKs(
PortletDataContext, PortletPreferences, String, Class, long)
Exception
@Deprecated public static MissingReferences validateMissingReferences(long userId, long groupId, Map<String,String[]> parameterMap, File file) throws Exception
validateMissingReferences(PortletDataContext)
Exception
public static MissingReferences validateMissingReferences(PortletDataContext portletDataContext) throws Exception
Exception
public static void writeManifestSummary(Document document, ManifestSummary manifestSummary)