Class ExportImportHelperUtil
Object
com.liferay.exportimport.kernel.lar.ExportImportHelperUtil
- Author:
- Zsolt Berentey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long[]
getAllLayoutIds
(long groupId, boolean privateLayout) getAllLayoutIdsMap
(long groupId, boolean privateLayout) getDataSiteAndInstanceLevelPortlets
(long companyId) getDataSiteAndInstanceLevelPortlets
(long companyId, boolean excludeDataAlwaysStaged) getDataSiteLevelPortlets
(long companyId) getDataSiteLevelPortlets
(long companyId, boolean excludeDataAlwaysStaged) static String
getExportableRootPortletId
(long companyId, String portletId) getExportPortletControlsMap
(long companyId, String portletId, Map<String, String[]> parameterMap) getExportPortletControlsMap
(long companyId, String portletId, Map<String, String[]> parameterMap, String type) getImportPortletControlsMap
(long companyId, String portletId, Map<String, String[]> parameterMap, Element portletDataElement, ManifestSummary manifestSummary) 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, FileEntry fileEntry) static ManifestSummary
getManifestSummary
(PortletDataContext portletDataContext) 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
isAlwaysIncludeReference
(PortletDataContext portletDataContext, StagedModel referenceStagedModel, String rootPortletId) static boolean
isExportPortletData
(PortletDataContext portletDataContext) static boolean
isLayoutRevisionInReview
(Layout layout) static boolean
isPublishDisplayedContent
(PortletDataContext portletDataContext, Portlet portlet) static boolean
isReferenceWithinExportScope
(PortletDataContext portletDataContext, StagedModel stagedModel) static void
processBackgroundTaskManifestSummary
(long userId, long sourceGroupId, BackgroundTask backgroundTask, File file) static void
setPortletScope
(PortletDataContext portletDataContext, Element portletElement) static MissingReferences
validateMissingReferences
(PortletDataContext portletDataContext) static void
writeManifestSummary
(Document document, ManifestSummary manifestSummary)
-
Constructor Details
-
ExportImportHelperUtil
public ExportImportHelperUtil()
-
-
Method Details
-
getAllLayoutIds
public static long[] getAllLayoutIds(long groupId, boolean privateLayout) -
getAllLayoutIdsMap
-
getDataSiteAndInstanceLevelPortlets
- Throws:
Exception
-
getDataSiteAndInstanceLevelPortlets
public static List<Portlet> getDataSiteAndInstanceLevelPortlets(long companyId, boolean excludeDataAlwaysStaged) throws Exception - Throws:
Exception
-
getDataSiteLevelPortlets
- Throws:
Exception
-
getDataSiteLevelPortlets
public static List<Portlet> getDataSiteLevelPortlets(long companyId, boolean excludeDataAlwaysStaged) throws Exception - Throws:
Exception
-
getExportableRootPortletId
- 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
-
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
-
getLayoutIds
- Throws:
PortalException
-
getLayoutIds
public static long[] getLayoutIds(Map<Long, Boolean> layoutIdMap, long targetGroupId) throws PortalException- Throws:
PortalException
-
getLayoutIds
- Throws:
PortalException
-
getLayoutIds
public static long[] getLayoutIds(PortletRequest portletRequest, long targetGroupId) throws PortalException - Throws:
PortalException
-
getLayoutModelDeletionCount
public static long getLayoutModelDeletionCount(PortletDataContext portletDataContext, boolean privateLayout) throws PortalException - Throws:
PortalException
-
getLayoutOrCreateDummyRootLayout
- Throws:
PortalException
-
getLayoutSetZipWriter
-
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
-
getPortletExportFileName
-
getPortletZipWriter
-
getSelectedLayoutsJSON
-
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
-
isAlwaysIncludeReference
public static boolean isAlwaysIncludeReference(PortletDataContext portletDataContext, StagedModel referenceStagedModel) -
isAlwaysIncludeReference
public static boolean isAlwaysIncludeReference(PortletDataContext portletDataContext, StagedModel referenceStagedModel, String rootPortletId) -
isExportPortletData
-
isLayoutRevisionInReview
-
isPublishDisplayedContent
public static boolean isPublishDisplayedContent(PortletDataContext portletDataContext, Portlet portlet) -
isReferenceWithinExportScope
public static boolean isReferenceWithinExportScope(PortletDataContext portletDataContext, StagedModel stagedModel) -
processBackgroundTaskManifestSummary
public static void processBackgroundTaskManifestSummary(long userId, long sourceGroupId, BackgroundTask backgroundTask, File file) throws PortalException - Throws:
PortalException
-
setPortletScope
-
validateMissingReferences
public static MissingReferences validateMissingReferences(PortletDataContext portletDataContext) throws Exception - Throws:
Exception
-
writeManifestSummary
-