protected static ExportImportConfiguration buildDefaultRemotePublishingExportImportConfiguration( User user, long sourceGroupId, boolean privateLayout, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, Map<String, String[]> parameterMap) throws PortalException { Map<String, Serializable> publishLayoutRemoteSettingsMap = ExportImportConfigurationSettingsMapFactory.buildPublishLayoutRemoteSettingsMap( user.getUserId(), sourceGroupId, privateLayout, ExportImportHelperUtil.getAllLayoutIdsMap(sourceGroupId, privateLayout), parameterMap, remoteAddress, remotePort, remotePathContext, secureConnection, remoteGroupId, privateLayout, user.getLocale(), user.getTimeZone()); return ExportImportConfigurationLocalServiceUtil.addDraftExportImportConfiguration( user.getUserId(), ExportImportConfigurationConstants.TYPE_PUBLISH_LAYOUT_REMOTE, publishLayoutRemoteSettingsMap); }
public static ExportImportConfiguration cloneExportImportConfiguration( ExportImportConfiguration exportImportConfiguration) throws PortalException { if (exportImportConfiguration == null) { return null; } return ExportImportConfigurationLocalServiceUtil.addExportImportConfiguration( exportImportConfiguration.getUserId(), exportImportConfiguration.getGroupId(), exportImportConfiguration.getName(), exportImportConfiguration.getDescription(), exportImportConfiguration.getType(), exportImportConfiguration.getSettingsMap(), exportImportConfiguration.getStatus(), new ServiceContext()); }
public static ExportImportConfiguration buildDefaultLocalPublishingExportImportConfiguration( User user, long sourceGroupId, long targetGroupId, boolean privateLayout, Map<String, String[]> parameterMap) throws PortalException { Map<String, Serializable> publishLayoutLocalSettingsMap = ExportImportConfigurationSettingsMapFactory.buildPublishLayoutLocalSettingsMap( user, sourceGroupId, targetGroupId, privateLayout, ExportImportHelperUtil.getAllLayoutIds(sourceGroupId, privateLayout), parameterMap); return ExportImportConfigurationLocalServiceUtil.addDraftExportImportConfiguration( user.getUserId(), ExportImportConfigurationConstants.TYPE_PUBLISH_LAYOUT_LOCAL, publishLayoutLocalSettingsMap); }