public class OnlyofficeDocumentEditorPlugin
extends org.exoplatform.container.component.BaseComponentPlugin
implements org.exoplatform.services.cms.documents.DocumentEditor
| Modifier and Type | Class and Description |
|---|---|
static class |
OnlyofficeDocumentEditorPlugin.EditorError
The Class Error.
|
protected static class |
OnlyofficeDocumentEditorPlugin.EditorSetting
The Class EditorSetting.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CLIENT_RESOURCE_PREFIX
The Constant CLIENT_RESOURCE_PREFIX.
|
protected CometdOnlyofficeService |
cometdService
The cometd service.
|
protected static String |
DRIVES
The Constant DRIVES.
|
protected static long |
EDITING_FINISHED_DELAY
The Constant EDITING_FINISHED_DELAY.
|
protected static String |
EDITOR_LINK_NOT_FOUND_ERROR
The Constant EDITOR_LINK_NOT_FOUND_ERROR.
|
protected static String |
EDITOR_LINK_NOT_FOUND_ERROR_MESSAGE
The Constant EDITOR_LINK_NOT_FOUND_ERROR_MESSAGE.
|
protected Map<javax.jcr.Node,String> |
editorLinks
The editor links.
|
protected OnlyofficeEditorService |
editorService
The editor service.
|
protected org.exoplatform.services.resources.ResourceBundleService |
i18nService
The i 18 n service.
|
protected static String |
INTERNAL_EDITOR_ERROR
The Constant INTERNAL_EDITOR_ERROR.
|
protected static String |
INTERNAL_EDITOR_ERROR_MESSAGE
The Constant INTERNAL_EDITOR_ERROR_MESSAGE.
|
protected org.exoplatform.services.cms.link.LinkManager |
linkManager
The link manager.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
protected static String |
PREVIEW
The Constant PREVIEW.
|
protected static String |
PROVIDER_CONFIGURATION_PARAM
The Constant PROVIDER_CONFIGURATION_PARAM.
|
protected static String |
PROVIDER_NAME
The Constant PROVIDER_NAME.
|
protected static String |
STORAGE_ERROR
The Constant STORAGE_ERROR.
|
protected static String |
STORAGE_ERROR_MESSAGE
The Constant STORAGE_ERROR_MESSAGE.
|
protected static String |
STREAM
The Constant STREAM.
|
protected org.exoplatform.services.cms.documents.DocumentUpdateActivityHandler |
updateHandler
The update handler.
|
| Constructor and Description |
|---|
OnlyofficeDocumentEditorPlugin(OnlyofficeEditorService editorService,
org.exoplatform.services.resources.ResourceBundleService i18nService,
CometdOnlyofficeService cometdService,
org.exoplatform.services.cms.link.LinkManager linkManager)
Instantiates a new OnlyOffice new document editor plugin.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beforeDocumentCreate(org.exoplatform.services.cms.documents.NewDocumentTemplate template,
String parentPath,
String title)
On document create.
|
org.exoplatform.services.cms.documents.DocumentUpdateActivityHandler |
getDocumentUpdateHandler()
Gets the document update handler.
|
long |
getEditingFinishedDelay() |
String |
getProviderName()
Gets the provider name.
|
void |
initActivity(String uuid,
String workspace,
String activityId)
Inits the activity.
|
OnlyofficeDocumentEditorPlugin.EditorSetting |
initExplorer(String fileId,
String workspace,
org.exoplatform.webui.application.WebuiRequestContext context)
Inits the explorer.
|
OnlyofficeDocumentEditorPlugin.EditorSetting |
initPreview(String fileId,
String workspace,
URI requestUri,
Locale locale)
Inits the preview.
|
boolean |
isDocumentSupported(String fileId,
String workspace)
Checks if is document supported.
|
void |
onDocumentCreated(String workspace,
String path)
On document created.
|
void |
onLastEditorClosed(String fileId,
String workspace)
On last editor closed.
|
getDescription, getName, setDescription, setNameprotected static final String PROVIDER_NAME
protected static final long EDITING_FINISHED_DELAY
protected static final String PROVIDER_CONFIGURATION_PARAM
protected static final String EDITOR_LINK_NOT_FOUND_ERROR
protected static final String EDITOR_LINK_NOT_FOUND_ERROR_MESSAGE
protected static final String STORAGE_ERROR
protected static final String STORAGE_ERROR_MESSAGE
protected static final String INTERNAL_EDITOR_ERROR
protected static final String INTERNAL_EDITOR_ERROR_MESSAGE
protected static final org.exoplatform.services.log.Log LOG
protected static final String STREAM
protected static final String PREVIEW
protected static final String DRIVES
protected static final String CLIENT_RESOURCE_PREFIX
protected final OnlyofficeEditorService editorService
protected final org.exoplatform.services.resources.ResourceBundleService i18nService
protected final CometdOnlyofficeService cometdService
protected final org.exoplatform.services.cms.link.LinkManager linkManager
protected final org.exoplatform.services.cms.documents.DocumentUpdateActivityHandler updateHandler
public OnlyofficeDocumentEditorPlugin(OnlyofficeEditorService editorService, org.exoplatform.services.resources.ResourceBundleService i18nService, CometdOnlyofficeService cometdService, org.exoplatform.services.cms.link.LinkManager linkManager)
editorService - the editor servicei18nService - the i18nServicecometdService - the cometdServicelinkManager - the link managerpublic String getProviderName()
getProviderName in interface org.exoplatform.services.cms.documents.DocumentEditorpublic void onDocumentCreated(String workspace, String path) throws Exception
onDocumentCreated in interface org.exoplatform.services.cms.documents.DocumentEditorworkspace - the workspacepath - the pathException - the exceptionpublic void beforeDocumentCreate(org.exoplatform.services.cms.documents.NewDocumentTemplate template,
String parentPath,
String title)
throws Exception
beforeDocumentCreate in interface org.exoplatform.services.cms.documents.DocumentEditortemplate - the templateparentPath - the parent pathtitle - the titleException - the exceptionpublic void initActivity(String uuid, String workspace, String activityId) throws Exception
initActivity in interface org.exoplatform.services.cms.documents.DocumentEditoruuid - the uuidworkspace - the workspaceactivityId - the activity idException - the exceptionpublic OnlyofficeDocumentEditorPlugin.EditorSetting initPreview(String fileId, String workspace, URI requestUri, Locale locale)
initPreview in interface org.exoplatform.services.cms.documents.DocumentEditorfileId - the uuidworkspace - the workspacerequestUri - the requestUrilocale - the localepublic OnlyofficeDocumentEditorPlugin.EditorSetting initExplorer(String fileId, String workspace, org.exoplatform.webui.application.WebuiRequestContext context)
initExplorer in interface org.exoplatform.services.cms.documents.DocumentEditorfileId - the file idworkspace - the workspacecontext - the contextpublic boolean isDocumentSupported(String fileId, String workspace)
isDocumentSupported in interface org.exoplatform.services.cms.documents.DocumentEditorfileId - the file idworkspace - the workspacepublic org.exoplatform.services.cms.documents.DocumentUpdateActivityHandler getDocumentUpdateHandler()
getDocumentUpdateHandler in interface org.exoplatform.services.cms.documents.DocumentEditorpublic void onLastEditorClosed(String fileId, String workspace)
onLastEditorClosed in interface org.exoplatform.services.cms.documents.DocumentEditorfileId - the file idworkspace - the workspacepublic long getEditingFinishedDelay()
getEditingFinishedDelay in interface org.exoplatform.services.cms.documents.DocumentEditorCopyright © 2003–2020 eXo Platform SAS. All rights reserved.