public class CometdOfficeOnlineService extends Object implements org.picocontainer.Startable
| Modifier and Type | Class and Description |
|---|---|
class |
CometdOfficeOnlineService.CometdService
The CometService is responsible for sending messages to Cometd channels
when a document is saved.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CHANNEL_NAME
The channel name.
|
static String |
CHANNEL_NAME_PARAMS
The channel name.
|
static String |
DOCUMENT_SAVED_EVENT
The document saved event.
|
protected org.mortbay.cometd.continuation.EXoContinuationBayeux |
exoBayeux
The exo bayeux.
|
protected CometdOfficeOnlineService.CometdService |
service
The service.
|
protected WOPIService |
wopiService
The WOPIService service.
|
| Constructor and Description |
|---|
CometdOfficeOnlineService(org.mortbay.cometd.continuation.EXoContinuationBayeux exoBayeux,
WOPIService wopiService)
Instantiates the CometdOnlyofficeService.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
channelsAsString(Set<org.cometd.bayeux.server.ServerChannel> channels)
Channels as string.
|
String |
getCometdServerPath()
Gets the cometd server path.
|
String |
getUserToken(String userId)
Gets the user token.
|
void |
start() |
void |
stop() |
public static final String CHANNEL_NAME
public static final String CHANNEL_NAME_PARAMS
public static final String DOCUMENT_SAVED_EVENT
protected final WOPIService wopiService
protected final org.mortbay.cometd.continuation.EXoContinuationBayeux exoBayeux
protected final CometdOfficeOnlineService.CometdService service
public CometdOfficeOnlineService(org.mortbay.cometd.continuation.EXoContinuationBayeux exoBayeux,
WOPIService wopiService)
exoBayeux - the exoBayeuxwopiService - the wopi servicepublic void start()
start in interface org.picocontainer.Startableprotected String channelsAsString(Set<org.cometd.bayeux.server.ServerChannel> channels)
channels - the channelspublic void stop()
stop in interface org.picocontainer.Startablepublic String getCometdServerPath()
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.