Interface ExportImportHelper
@ProviderType
public interface ExportImportHelper
- Author:
- Zsolt Berentey
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlong[]
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) 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) 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) long
getLayoutModelDeletionCount
(PortletDataContext portletDataContext, boolean privateLayout) getLayoutOrCreateDummyRootLayout
(long plid) Returns the layout with the primary key or a dummy root layout.getLayoutSetZipWriter
(long groupId) getManifestSummary
(long userId, long groupId, Map<String, String[]> parameterMap, FileEntry fileEntry) getManifestSummary
(PortletDataContext portletDataContext) getMissingParentLayouts
(Layout layout, long liveGroupId) long
getModelDeletionCount
(PortletDataContext portletDataContext, StagedModelType stagedModelType) getPortletExportFileName
(Portlet portlet) getPortletZipWriter
(String portletId) getSelectedLayoutsJSON
(long groupId, boolean privateLayout, String selectedNodes) getTempFileEntry
(long groupId, long userId, String folderName) getUserIdStrategy
(long userId, String userIdStrategy) boolean
isAlwaysIncludeReference
(PortletDataContext portletDataContext, StagedModel referenceStagedModel) boolean
isAlwaysIncludeReference
(PortletDataContext portletDataContext, StagedModel referenceStagedModel, String rootPortletId) boolean
isExportPortletData
(PortletDataContext portletDataContext) boolean
isLayoutRevisionInReview
(Layout layout) boolean
isPublishDisplayedContent
(PortletDataContext portletDataContext, Portlet portlet) boolean
isReferenceWithinExportScope
(PortletDataContext portletDataContext, StagedModel stagedModel) void
processBackgroundTaskManifestSummary
(long userId, long sourceGroupId, BackgroundTask backgroundTask, File file) void
setPortletScope
(PortletDataContext portletDataContext, Element portletElement) validateMissingReferences
(PortletDataContext portletDataContext) void
writeManifestSummary
(Document document, ManifestSummary manifestSummary)
-
Field Details
-
TEMP_FOLDER_NAME
-
-
Method Details
-
getAllLayoutIds
long[] getAllLayoutIds(long groupId, boolean privateLayout) -
getAllLayoutIdsMap
-
getDataSiteAndInstanceLevelPortlets
- Throws:
Exception
-
getDataSiteAndInstanceLevelPortlets
List<Portlet> getDataSiteAndInstanceLevelPortlets(long companyId, boolean excludeDataAlwaysStaged) throws Exception - Throws:
Exception
-
getDataSiteLevelPortlets
- Throws:
Exception
-
getDataSiteLevelPortlets
List<Portlet> getDataSiteLevelPortlets(long companyId, boolean excludeDataAlwaysStaged) throws Exception - Throws:
Exception
-
getExportableRootPortletId
- 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
-
getImportPortletControlsMap
Map<String,Boolean> getImportPortletControlsMap(long companyId, String portletId, Map<String, String[]> parameterMap, Element portletDataElement, ManifestSummary manifestSummary) throws Exception- Throws:
Exception
-
getLayoutIdMap
- Throws:
PortalException
-
getLayoutIds
-
getLayoutIds
- Throws:
PortalException
-
getLayoutIds
- Throws:
PortalException
-
getLayoutIds
- Throws:
PortalException
-
getLayoutIds
- Throws:
PortalException
-
getLayoutModelDeletionCount
long getLayoutModelDeletionCount(PortletDataContext portletDataContext, boolean privateLayout) throws PortalException - Throws:
PortalException
-
getLayoutOrCreateDummyRootLayout
Returns the layout with the primary key or a dummy root layout.- Parameters:
plid
- the primary key of the layout- Returns:
- the layout
- Throws:
PortalException
- if the layout is not a dummy and no layout with the primary key could be found
-
getLayoutSetZipWriter
-
getManifestSummary
ManifestSummary getManifestSummary(long userId, long groupId, Map<String, String[]> parameterMap, FileEntry fileEntry) throws Exception- Throws:
Exception
-
getManifestSummary
- Throws:
Exception
-
getMissingParentLayouts
- Throws:
PortalException
-
getModelDeletionCount
long getModelDeletionCount(PortletDataContext portletDataContext, StagedModelType stagedModelType) throws PortalException - Throws:
PortalException
-
getPortletExportFileName
-
getPortletZipWriter
-
getSelectedLayoutsJSON
-
getTempFileEntry
- Throws:
PortalException
-
getUserIdStrategy
- Throws:
PortalException
-
isAlwaysIncludeReference
boolean isAlwaysIncludeReference(PortletDataContext portletDataContext, StagedModel referenceStagedModel) -
isAlwaysIncludeReference
boolean isAlwaysIncludeReference(PortletDataContext portletDataContext, StagedModel referenceStagedModel, String rootPortletId) -
isExportPortletData
-
isLayoutRevisionInReview
-
isPublishDisplayedContent
-
isReferenceWithinExportScope
boolean isReferenceWithinExportScope(PortletDataContext portletDataContext, StagedModel stagedModel) -
processBackgroundTaskManifestSummary
void processBackgroundTaskManifestSummary(long userId, long sourceGroupId, BackgroundTask backgroundTask, File file) throws PortalException - Throws:
PortalException
-
setPortletScope
-
validateMissingReferences
- Throws:
Exception
-
writeManifestSummary
-