diff --git a/bbb-common-web/src/main/java/org/bigbluebutton/presentation/OfficeToPdfConversionSuccessFilter.java b/bbb-common-web/src/main/java/org/bigbluebutton/presentation/OfficeToPdfConversionSuccessFilter.java index d39b64aa8295..34d986592156 100755 --- a/bbb-common-web/src/main/java/org/bigbluebutton/presentation/OfficeToPdfConversionSuccessFilter.java +++ b/bbb-common-web/src/main/java/org/bigbluebutton/presentation/OfficeToPdfConversionSuccessFilter.java @@ -23,7 +23,7 @@ import java.util.Map; import org.bigbluebutton.api2.IBbbWebApiGWApp; -import org.bigbluebutton.presentation.messages.OfficeDocConversionProgress; +import org.bigbluebutton.presentation.messages.DocConversionProgress; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -52,7 +52,7 @@ public boolean didConversionSucceed(UploadedPresentation pres) { } public void sendProgress(UploadedPresentation pres) { - OfficeDocConversionProgress progress = new OfficeDocConversionProgress(pres.getPodId(), + DocConversionProgress progress = new DocConversionProgress(pres.getPodId(), pres.getMeetingId(), pres.getId(), pres.getId(), diff --git a/bbb-common-web/src/main/java/org/bigbluebutton/presentation/SupportedDocumentFilter.java b/bbb-common-web/src/main/java/org/bigbluebutton/presentation/SupportedDocumentFilter.java index 92b77d7673bf..feaf0e713ee3 100755 --- a/bbb-common-web/src/main/java/org/bigbluebutton/presentation/SupportedDocumentFilter.java +++ b/bbb-common-web/src/main/java/org/bigbluebutton/presentation/SupportedDocumentFilter.java @@ -22,7 +22,7 @@ import org.apache.commons.io.FilenameUtils; import org.bigbluebutton.api2.IBbbWebApiGWApp; -import org.bigbluebutton.presentation.messages.OfficeDocConversionProgress; +import org.bigbluebutton.presentation.messages.DocConversionProgress; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -59,7 +59,7 @@ private void notifyProgressListener(boolean supported, UploadedPresentation pres } if (gw != null) { - OfficeDocConversionProgress progress = new OfficeDocConversionProgress(pres.getPodId(), pres.getMeetingId(), + DocConversionProgress progress = new DocConversionProgress(pres.getPodId(), pres.getMeetingId(), pres.getId(), pres.getId(), pres.getName(), "notUsedYet", "notUsedYet", pres.isDownloadable(), pres.isRemovable(), msgKey); diff --git a/bbb-common-web/src/main/java/org/bigbluebutton/presentation/imp/SwfSlidesGenerationProgressNotifier.java b/bbb-common-web/src/main/java/org/bigbluebutton/presentation/imp/SwfSlidesGenerationProgressNotifier.java index c1cfb50d8097..3f89bc2922ae 100755 --- a/bbb-common-web/src/main/java/org/bigbluebutton/presentation/imp/SwfSlidesGenerationProgressNotifier.java +++ b/bbb-common-web/src/main/java/org/bigbluebutton/presentation/imp/SwfSlidesGenerationProgressNotifier.java @@ -71,7 +71,7 @@ public void sendConversionUpdateMessage(int slidesCompleted, UploadedPresentatio } public void sendCreatingThumbnailsUpdateMessage(UploadedPresentation pres) { - OfficeDocConversionProgress progress = new OfficeDocConversionProgress(pres.getPodId(), pres.getMeetingId(), + DocConversionProgress progress = new DocConversionProgress(pres.getPodId(), pres.getMeetingId(), pres.getId(), pres.getId(), pres.getName(), "notUsedYet", "notUsedYet", pres.isDownloadable(), pres.isRemovable(), ConversionMessageConstants.GENERATING_THUMBNAIL_KEY); @@ -105,7 +105,7 @@ public void setGeneratedSlidesInfoHelper(GeneratedSlidesInfoHelper helper) { } public void sendCreatingTextFilesUpdateMessage(UploadedPresentation pres) { - OfficeDocConversionProgress progress = new OfficeDocConversionProgress(pres.getPodId(), pres.getMeetingId(), + DocConversionProgress progress = new DocConversionProgress(pres.getPodId(), pres.getMeetingId(), pres.getId(), pres.getId(), pres.getName(), "notUsedYet", "notUsedYet", pres.isDownloadable(), pres.isRemovable(), ConversionMessageConstants.GENERATING_TEXTFILES_KEY); @@ -113,7 +113,7 @@ public void sendCreatingTextFilesUpdateMessage(UploadedPresentation pres) { } public void sendCreatingSvgImagesUpdateMessage(UploadedPresentation pres) { - OfficeDocConversionProgress progress = new OfficeDocConversionProgress(pres.getPodId(), pres.getMeetingId(), + DocConversionProgress progress = new DocConversionProgress(pres.getPodId(), pres.getMeetingId(), pres.getId(), pres.getId(), pres.getName(), "notUsedYet", "notUsedYet", pres.isDownloadable(), pres.isRemovable(), ConversionMessageConstants.GENERATING_SVGIMAGES_KEY); diff --git a/bbb-common-web/src/main/java/org/bigbluebutton/presentation/messages/OfficeDocConversionProgress.java b/bbb-common-web/src/main/java/org/bigbluebutton/presentation/messages/DocConversionProgress.java similarity index 63% rename from bbb-common-web/src/main/java/org/bigbluebutton/presentation/messages/OfficeDocConversionProgress.java rename to bbb-common-web/src/main/java/org/bigbluebutton/presentation/messages/DocConversionProgress.java index ec95851935ed..eec2f91b3e28 100755 --- a/bbb-common-web/src/main/java/org/bigbluebutton/presentation/messages/OfficeDocConversionProgress.java +++ b/bbb-common-web/src/main/java/org/bigbluebutton/presentation/messages/DocConversionProgress.java @@ -1,29 +1,29 @@ -package org.bigbluebutton.presentation.messages; - -public class OfficeDocConversionProgress implements IDocConversionMsg { - public final String podId; - public final String meetingId; - public final String presId; - public final String presInstance; - public final String filename; - public final String uploaderId; - public final String authzToken; - public final Boolean downloadable; - public final Boolean removable; - public final String key; - - public OfficeDocConversionProgress(String podId, String meetingId, String presId, String presInstance, - String filename, String uploaderId, String authzToken, - Boolean downloadable, Boolean removable, String key) { - this.podId = podId; - this.meetingId = meetingId; - this.presId = presId; - this.presInstance = presInstance; - this.filename = filename; - this.uploaderId = uploaderId; - this.authzToken = authzToken; - this.downloadable = downloadable; - this.removable = removable; - this.key = key; - } -} +package org.bigbluebutton.presentation.messages; + +public class DocConversionProgress implements IDocConversionMsg { + public final String podId; + public final String meetingId; + public final String presId; + public final String presInstance; + public final String filename; + public final String uploaderId; + public final String authzToken; + public final Boolean downloadable; + public final Boolean removable; + public final String key; + + public DocConversionProgress(String podId, String meetingId, String presId, String presInstance, + String filename, String uploaderId, String authzToken, + Boolean downloadable, Boolean removable, String key) { + this.podId = podId; + this.meetingId = meetingId; + this.presId = presId; + this.presInstance = presInstance; + this.filename = filename; + this.uploaderId = uploaderId; + this.authzToken = authzToken; + this.downloadable = downloadable; + this.removable = removable; + this.key = key; + } +} diff --git a/bbb-common-web/src/main/scala/org/bigbluebutton/api2/BbbWebApiGWApp.scala b/bbb-common-web/src/main/scala/org/bigbluebutton/api2/BbbWebApiGWApp.scala index 503d27fdf708..d04613246560 100755 --- a/bbb-common-web/src/main/scala/org/bigbluebutton/api2/BbbWebApiGWApp.scala +++ b/bbb-common-web/src/main/scala/org/bigbluebutton/api2/BbbWebApiGWApp.scala @@ -308,8 +308,8 @@ class BbbWebApiGWApp( // Send new event with page urls val newEvent = MsgBuilder.buildPresentationPageConvertedSysMsg(msg.asInstanceOf[DocPageGeneratedProgress]) msgToAkkaAppsEventBus.publish(MsgToAkkaApps(toAkkaAppsChannel, newEvent)) - } else if (msg.isInstanceOf[OfficeDocConversionProgress]) { - val event = MsgBuilder.buildPresentationConversionUpdateSysPubMsg(msg.asInstanceOf[OfficeDocConversionProgress]) + } else if (msg.isInstanceOf[DocConversionProgress]) { + val event = MsgBuilder.buildPresentationConversionUpdateSysPubMsg(msg.asInstanceOf[DocConversionProgress]) msgToAkkaAppsEventBus.publish(MsgToAkkaApps(toAkkaAppsChannel, event)) } else if (msg.isInstanceOf[DocPageCompletedProgress]) { val event = MsgBuilder.buildPresentationConversionCompletedSysPubMsg(msg.asInstanceOf[DocPageCompletedProgress]) diff --git a/bbb-common-web/src/main/scala/org/bigbluebutton/api2/MsgBuilder.scala b/bbb-common-web/src/main/scala/org/bigbluebutton/api2/MsgBuilder.scala index 8d897c70435b..6255d2416f50 100755 --- a/bbb-common-web/src/main/scala/org/bigbluebutton/api2/MsgBuilder.scala +++ b/bbb-common-web/src/main/scala/org/bigbluebutton/api2/MsgBuilder.scala @@ -127,7 +127,7 @@ object MsgBuilder { BbbCommonEnvCoreMsg(envelope, req) } - def buildPresentationConversionUpdateSysPubMsg(msg: OfficeDocConversionProgress): BbbCommonEnvCoreMsg = { + def buildPresentationConversionUpdateSysPubMsg(msg: DocConversionProgress): BbbCommonEnvCoreMsg = { val routing = collection.immutable.HashMap("sender" -> "bbb-web") val envelope = BbbCoreEnvelope(PresentationConversionUpdateSysPubMsg.NAME, routing) val header = BbbClientMsgHeader(PresentationConversionUpdateSysPubMsg.NAME, msg.meetingId, msg.authzToken)