@Service(value="onlyoffice") public class CometdOnlyofficeService.CometdService extends Object
| Constructor and Description |
|---|
CometdService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleDocumentChangeEvent(Map<String,Object> data,
String docId)
Handle document change event.
|
protected void |
handleDocumentVersionEvent(Map<String,Object> data,
String docId)
Handle document version event.
|
protected void |
handleEditorClosedEvent(Map<String,Object> data,
String docId)
Handle editor closed event.
|
protected void |
handleEditorOpenedEvent(Map<String,Object> data,
String docId)
Handle editor opened event.
|
void |
postConstruct()
Post construct.
|
protected void |
publishDownloadAsEvent(String docId,
String targetId,
String asUserId)
Publish download as event.
|
protected void |
publishDownloadEvent(String docId,
String userId)
Publish download event.
|
protected void |
publishSavedEvent(String docId,
String userId)
Publish saved event.
|
void |
subscribeDocuments(org.cometd.bayeux.Message message,
String docId)
Subscribe document events.
|
@PostConstruct public void postConstruct()
@Subscription(value="/eXo/Application/Onlyoffice/editor/{docId}")
public void subscribeDocuments(org.cometd.bayeux.Message message,
@Param(value="docId")
String docId)
throws OnlyofficeEditorException,
javax.jcr.RepositoryException
message - the message.docId - the docId.OnlyofficeEditorException - the onlyoffice editor exceptionjavax.jcr.RepositoryException - the repository exceptionprotected void handleEditorOpenedEvent(Map<String,Object> data, String docId)
data - the datadocId - the doc idprotected void handleEditorClosedEvent(Map<String,Object> data, String docId)
data - the datadocId - the doc idprotected void handleDocumentVersionEvent(Map<String,Object> data, String docId)
data - the datadocId - the doc idprotected void handleDocumentChangeEvent(Map<String,Object> data, String docId)
data - the datadocId - the doc idprotected void publishDownloadEvent(String docId, String userId)
docId - the doc iduserId - the user idprotected void publishDownloadAsEvent(String docId, String targetId, String asUserId)
docId - the doc idtargetId - the target idasUserId - the as user idCopyright © 2003–2019 eXo Platform SAS. All rights reserved.