@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 |
handleDocumentForcesavedEvent(Map<String,Object> data,
String docId)
Handles document forcesave event.
|
protected void |
handleDocumentLinkEvent(Map<String,Object> data,
String docId)
Handle document link event.
|
protected void |
handleDocumentTitleUpdatedEvent(Map<String,Object> data,
String docId)
Handle document title updated.
|
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.
|
void |
postConstruct()
Post construct.
|
protected void |
publishDeletedEvent(String docId)
Publish deleted event.
|
protected void |
publishSavedEvent(String docId,
String userId,
String comment)
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 handleDocumentLinkEvent(Map<String,Object> data, String docId)
data - the datadocId - the doc idprotected void handleDocumentTitleUpdatedEvent(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 handleDocumentForcesavedEvent(Map<String,Object> data, String docId)
data - the datadocId - the docIdprotected void publishSavedEvent(String docId, String userId, String comment)
docId - the doc iduserId - the user idcomment - the commentprotected void publishDeletedEvent(String docId)
docId - the doc idCopyright © 2003–2019 eXo Platform SAS. All rights reserved.