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 StringgetExportableRootPortletId(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 longgetLayoutModelDeletionCount(PortletDataContext portletDataContext, boolean privateLayout) static LayoutgetLayoutOrCreateDummyRootLayout(long plid) static ZipWritergetLayoutSetZipWriter(long groupId) static ManifestSummarygetManifestSummary(long userId, long groupId, Map<String, String[]> parameterMap, FileEntry fileEntry) static ManifestSummarygetManifestSummary(PortletDataContext portletDataContext) getMissingParentLayouts(Layout layout, long liveGroupId) static longgetModelDeletionCount(PortletDataContext portletDataContext, StagedModelType stagedModelType) static StringgetPortletExportFileName(Portlet portlet) static ZipWritergetPortletZipWriter(String portletId) static StringgetSelectedLayoutsJSON(long groupId, boolean privateLayout, String selectedNodes) static FileEntrygetTempFileEntry(long groupId, long userId, String folderName) static UserIdStrategygetUserIdStrategy(long userId, String userIdStrategy) static booleanisAlwaysIncludeReference(PortletDataContext portletDataContext, StagedModel referenceStagedModel) static booleanisAlwaysIncludeReference(PortletDataContext portletDataContext, StagedModel referenceStagedModel, String rootPortletId) static booleanisExportPortletData(PortletDataContext portletDataContext) static booleanisLayoutRevisionInReview(Layout layout) static booleanisPublishDisplayedContent(PortletDataContext portletDataContext, Portlet portlet) static booleanisReferenceWithinExportScope(PortletDataContext portletDataContext, StagedModel stagedModel) static voidprocessBackgroundTaskManifestSummary(long userId, long sourceGroupId, BackgroundTask backgroundTask, File file) static voidsetPortletScope(PortletDataContext portletDataContext, Element portletElement) static MissingReferencesvalidateMissingReferences(PortletDataContext portletDataContext) static voidwriteManifestSummary(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
-