From d51dfb156f8c07edcae5920b55284b2b313e4460 Mon Sep 17 00:00:00 2001 From: Teo Sarca Date: Thu, 2 Nov 2017 16:19:42 +0200 Subject: [PATCH] DocumentChangedWebSocketEventsPublisher - fix compile errors https://github.com/metasfresh/metasfresh-webui-api/issues/19 --- .../web/attachments/DocumentAttachmentsRestController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/metas/ui/web/attachments/DocumentAttachmentsRestController.java b/src/main/java/de/metas/ui/web/attachments/DocumentAttachmentsRestController.java index f068a17dc..c8173b1a6 100644 --- a/src/main/java/de/metas/ui/web/attachments/DocumentAttachmentsRestController.java +++ b/src/main/java/de/metas/ui/web/attachments/DocumentAttachmentsRestController.java @@ -25,12 +25,12 @@ import de.metas.ui.web.attachments.json.JSONAttachment; import de.metas.ui.web.exceptions.EntityNotFoundException; import de.metas.ui.web.session.UserSession; -import de.metas.ui.web.websocket.WebsocketSender; import de.metas.ui.web.window.controller.WindowRestController; import de.metas.ui.web.window.datatypes.DocumentId; import de.metas.ui.web.window.datatypes.DocumentPath; import de.metas.ui.web.window.datatypes.WindowId; import de.metas.ui.web.window.descriptor.factory.DocumentDescriptorFactory; +import de.metas.ui.web.window.events.DocumentChangedWebSocketEventsPublisher; import lombok.NonNull; /* @@ -66,7 +66,7 @@ public class DocumentAttachmentsRestController @Autowired private DocumentDescriptorFactory documentDescriptorFactory; @Autowired - private WebsocketSender websocketSender; + private DocumentChangedWebSocketEventsPublisher websocketPublisher; private DocumentAttachments getDocumentAttachments(final String windowIdStr, final String documentId) { @@ -77,7 +77,7 @@ private DocumentAttachments getDocumentAttachments(final String windowIdStr, fin .documentPath(documentPath) .recordRef(recordRef) .entityDescriptor(documentDescriptorFactory.getDocumentEntityDescriptor(documentPath)) - .websocketSender(websocketSender) + .websocketPublisher(websocketPublisher) .build(); }