protected ZipWriter getZipWriter(String fileName) { if (!ExportImportThreadLocal.isStagingInProcess() || (PropsValues.STAGING_DELETE_TEMP_LAR_ON_FAILURE && PropsValues.STAGING_DELETE_TEMP_LAR_ON_SUCCESS)) { return ZipWriterFactoryUtil.getZipWriter(); } return ZipWriterFactoryUtil.getZipWriter( new File( SystemProperties.get(SystemProperties.TMP_DIR) + StringPool.SLASH + fileName)); }
@Override public boolean isInitialPublication() { Group group = null; try { group = GroupLocalServiceUtil.getGroup(getGroupId()); } catch (Exception e) { } if (ExportImportThreadLocal.isStagingInProcess() && (group != null) && group.hasStagingGroup()) { return true; } return false; }
(!ExportImportThreadLocal.isStagingInProcess() || stagingGroupHelper.isStagedPortletData( portletDataContext.getGroupId(), (!ExportImportThreadLocal.isStagingInProcess() || stagingGroupHelper.isStagedPortletData( portletDataContext.getGroupId(),
ExportImportThreadLocal.isStagingInProcess()) {
companySourceGroup = true; else if (ExportImportThreadLocal.isStagingInProcess() && (group.isStaged() || group.hasStagingGroup()) && !(group.isStagedRemotely() &&
if (ExportImportThreadLocal.isStagingInProcess()) { Element importDataRootElement = portletDataContext.getImportDataRootElement();
systemEvent.getReferrerClassNameId())); if (ExportImportThreadLocal.isStagingInProcess()) { try { SystemEventLocalServiceUtil.deleteSystemEvent(
"journal", "version-history"); if (!ExportImportThreadLocal.isStagingInProcess() || !exportVersionHistory) {
ExportImportThreadLocal.isStagingInProcess() && !stagingGroupHelper.isStagedPortlet( assetEntry.getGroupId(),
if (!ExportImportThreadLocal.isStagingInProcess() && group.isStagingGroup() && !group.isStagedPortlet(portletDataContext.getPortletId())) { portletDataContext.getGroupId()); if (!ExportImportThreadLocal.isStagingInProcess() && group.isStagingGroup() && !group.isStagedPortlet(portletDataContext.getPortletId())) {
if (ExportImportThreadLocal.isStagingInProcess() && !group.isStagedPortlet(portletId)) { PortletDataHandlerKeys.UPDATE_LAST_PUBLISH_DATE); if (ExportImportThreadLocal.isStagingInProcess() && updateLastPublishDate) {
throws Exception { if (ExportImportThreadLocal.isStagingInProcess()) { ChangesetCollection changesetCollection = _changesetCollectionLocalService.fetchChangesetCollection(