public interface OnlyofficeEditorService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(OnlyofficeEditorListener listener)
Add listener to the service.
|
boolean |
canDownloadBy(String hostName)
Check does given host can download document content by this service.
|
Config |
createEditor(String userSchema,
String userHost,
String userId,
String workspace,
String path)
Create an editor config for given config node.
|
DocumentContent |
getContent(String userId,
String fileKey)
Get file content.
|
Config |
getEditor(String userId,
String workspace,
String path)
Return existing editor for given user and node.
|
ChangeState |
getState(String userId,
String fileKey)
Local state of editing document.
|
void |
removeListener(OnlyofficeEditorListener listener)
Remove listener from the service.
|
void |
updateDocument(String userId,
DocumentStatus status)
Update a config associated with given editor
Config instance. |
Config getEditor(String userId, String workspace, String path) throws OnlyofficeEditorException, javax.jcr.RepositoryException
null will be returned.userId - Stringworkspace - Stringpath - StringConfig or nullOnlyofficeEditorException - the onlyoffice editor exceptionjavax.jcr.RepositoryException - the repository exceptionConfig createEditor(String userSchema, String userHost, String userId, String workspace, String path) throws OnlyofficeEditorException, javax.jcr.RepositoryException
userSchema - the schemauserHost - the hostuserId - Stringworkspace - Stringpath - StringConfig instance in case of successful creation or null if local file type
not supported.OnlyofficeEditorException - if editor exception happenedjavax.jcr.RepositoryException - if storage exception happenedvoid updateDocument(String userId, DocumentStatus status) throws OnlyofficeEditorException, javax.jcr.RepositoryException
Config instance. A Node from that the
config was created will be updated. This operation will close the editor and it will not be usable
after that.userId - Stringstatus - DocumentStatusOnlyofficeEditorException - if editor exception happenedjavax.jcr.RepositoryException - if storage exception happenedDocumentContent getContent(String userId, String fileKey) throws OnlyofficeEditorException, javax.jcr.RepositoryException
userId - StringfileKey - StringDocumentContentOnlyofficeEditorException - the onlyoffice editor exceptionjavax.jcr.RepositoryException - the repository exceptionboolean canDownloadBy(String hostName)
hostName - Stringtrue if client host with given name can download document content,
false otherwise.ChangeState getState(String userId, String fileKey) throws OnlyofficeEditorException
userId - StringfileKey - StringChangeStateOnlyofficeEditorException - the onlyoffice editor exceptionvoid addListener(OnlyofficeEditorListener listener)
listener - the listenervoid removeListener(OnlyofficeEditorListener listener)
listener - the listenerCopyright © 2003–2017 eXo Platform SAS. All rights reserved.