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 List<Portlet> |
getDataSiteLevelPortlets(long companyId) |
static List<Portlet> |
getDataSiteLevelPortlets(long companyId,
boolean excludeDataAlwaysStaged) |
static String |
getExportableRootPortletId(long companyId,
String portletId) |
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 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,
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 |
isAlwaysIncludeReference(PortletDataContext portletDataContext,
StagedModel referenceStagedModel,
String rootPortletId) |
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 void |
setPortletScope(PortletDataContext portletDataContext,
Element portletElement) |
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)
public static List<Portlet> getDataSiteLevelPortlets(long companyId) throws Exception
Exception
public static List<Portlet> getDataSiteLevelPortlets(long companyId, boolean excludeDataAlwaysStaged) throws Exception
Exception
public static String getExportableRootPortletId(long companyId, String portletId) throws Exception
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
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)
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 isAlwaysIncludeReference(PortletDataContext portletDataContext, StagedModel referenceStagedModel, String rootPortletId)
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
public static void setPortletScope(PortletDataContext portletDataContext, Element portletElement)
public static MissingReferences validateMissingReferences(PortletDataContext portletDataContext) throws Exception
Exception
public static void writeManifestSummary(Document document, ManifestSummary manifestSummary)