@ProviderType
public interface ExportImportHelper
Modifier and Type | Field and Description |
---|---|
static String |
TEMP_FOLDER_NAME |
Modifier and Type | Method and Description |
---|---|
long[] |
getAllLayoutIds(long groupId,
boolean privateLayout) |
Map<Long,Boolean> |
getAllLayoutIdsMap(long groupId,
boolean privateLayout) |
List<Portlet> |
getDataSiteLevelPortlets(long companyId) |
List<Portlet> |
getDataSiteLevelPortlets(long companyId,
boolean excludeDataAlwaysStaged) |
String |
getExportableRootPortletId(long companyId,
String portletId) |
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) |
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) |
long |
getLayoutModelDeletionCount(PortletDataContext portletDataContext,
boolean privateLayout) |
Layout |
getLayoutOrCreateDummyRootLayout(long plid)
Returns the layout with the primary key or a dummy root layout.
|
ZipWriter |
getLayoutSetZipWriter(long groupId) |
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 |
getPortletExportFileName(Portlet portlet) |
ZipWriter |
getPortletZipWriter(String portletId) |
String |
getSelectedLayoutsJSON(long groupId,
boolean privateLayout,
String selectedNodes) |
FileEntry |
getTempFileEntry(long groupId,
long userId,
String folderName) |
UserIdStrategy |
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 |
isReferenceWithinExportScope(PortletDataContext portletDataContext,
StagedModel stagedModel) |
void |
processBackgroundTaskManifestSummary(long userId,
long sourceGroupId,
BackgroundTask backgroundTask,
File file) |
void |
setPortletScope(PortletDataContext portletDataContext,
Element portletElement) |
MissingReferences |
validateMissingReferences(PortletDataContext portletDataContext) |
void |
writeManifestSummary(Document document,
ManifestSummary manifestSummary) |
long[] getAllLayoutIds(long groupId, boolean privateLayout)
Map<Long,Boolean> getAllLayoutIdsMap(long groupId, boolean privateLayout)
List<Portlet> getDataSiteLevelPortlets(long companyId) throws Exception
Exception
List<Portlet> getDataSiteLevelPortlets(long companyId, boolean excludeDataAlwaysStaged) throws Exception
Exception
String getExportableRootPortletId(long companyId, String portletId) throws Exception
Exception
Map<String,Boolean> getExportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap) throws Exception
Exception
Map<String,Boolean> getExportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, String type) throws Exception
Exception
Map<String,Boolean> getImportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement, ManifestSummary manifestSummary) throws Exception
Exception
Map<Long,Boolean> getLayoutIdMap(PortletRequest portletRequest) throws PortalException
PortalException
long[] getLayoutIds(List<Layout> layouts)
long[] getLayoutIds(Map<Long,Boolean> layoutIdMap) throws PortalException
PortalException
long[] getLayoutIds(Map<Long,Boolean> layoutIdMap, long targetGroupId) throws PortalException
PortalException
long[] getLayoutIds(PortletRequest portletRequest) throws PortalException
PortalException
long[] getLayoutIds(PortletRequest portletRequest, long targetGroupId) throws PortalException
PortalException
long getLayoutModelDeletionCount(PortletDataContext portletDataContext, boolean privateLayout) throws PortalException
PortalException
Layout getLayoutOrCreateDummyRootLayout(long plid) throws PortalException
plid
- the primary key of the layoutPortalException
- if the layout is not a dummy and no layout with
the primary key could be foundZipWriter getLayoutSetZipWriter(long groupId)
ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, FileEntry fileEntry) throws Exception
Exception
ManifestSummary getManifestSummary(PortletDataContext portletDataContext) throws Exception
Exception
List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId) throws PortalException
PortalException
long getModelDeletionCount(PortletDataContext portletDataContext, StagedModelType stagedModelType) throws PortalException
PortalException
String getPortletExportFileName(Portlet portlet)
ZipWriter getPortletZipWriter(String portletId)
String getSelectedLayoutsJSON(long groupId, boolean privateLayout, String selectedNodes)
FileEntry getTempFileEntry(long groupId, long userId, String folderName) throws PortalException
PortalException
UserIdStrategy getUserIdStrategy(long userId, String userIdStrategy) throws PortalException
PortalException
boolean isAlwaysIncludeReference(PortletDataContext portletDataContext, StagedModel referenceStagedModel)
boolean isAlwaysIncludeReference(PortletDataContext portletDataContext, StagedModel referenceStagedModel, String rootPortletId)
boolean isExportPortletData(PortletDataContext portletDataContext)
boolean isLayoutRevisionInReview(Layout layout)
boolean isReferenceWithinExportScope(PortletDataContext portletDataContext, StagedModel stagedModel)
void processBackgroundTaskManifestSummary(long userId, long sourceGroupId, BackgroundTask backgroundTask, File file) throws PortalException
PortalException
void setPortletScope(PortletDataContext portletDataContext, Element portletElement)
MissingReferences validateMissingReferences(PortletDataContext portletDataContext) throws Exception
Exception
void writeManifestSummary(Document document, ManifestSummary manifestSummary)