public class EditorService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Field and Description |
|---|---|
protected OnlyofficeEditorService |
editors
The editors.
|
protected Map<UUID,Config> |
initiated
The initiated.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
| Constructor and Description |
|---|
EditorService(OnlyofficeEditorService editors)
REST cloudDrives uses
OnlyofficeEditorService for actual job. |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
config(javax.ws.rs.core.UriInfo uriInfo,
String workspace,
String path)
Config configuration for Onlyoffice JS.
|
javax.ws.rs.core.Response |
content(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest request,
String userId,
String key)
Document content download link.
|
protected String |
getClientHost(javax.servlet.http.HttpServletRequest request)
Gets the client host.
|
protected String |
getClientIpAddr(javax.servlet.http.HttpServletRequest request)
Gets the client ip addr.
|
protected boolean |
isValidName(String hostName)
Checks if is valid name.
|
javax.ws.rs.core.Response |
localState(javax.ws.rs.core.UriInfo uriInfo,
String userId,
String key)
Editing document state in local storage.
|
protected String |
requestHost(URI requestUri)
Request host.
|
javax.ws.rs.core.Response |
status(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest request,
String userId,
String key,
String statusText)
Config status posted from the Document Server.
|
protected static final org.exoplatform.services.log.Log LOG
protected final OnlyofficeEditorService editors
public EditorService(OnlyofficeEditorService editors)
OnlyofficeEditorService for actual job.editors - the editorspublic javax.ws.rs.core.Response status(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.servlet.http.HttpServletRequest request,
String userId,
String key,
String statusText)
uriInfo - - request inforequest - the requestuserId - the user idkey - - config key generated when requested editor configstatusText - the status textResponsepublic javax.ws.rs.core.Response content(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.servlet.http.HttpServletRequest request,
String userId,
String key)
uriInfo - - request inforequest - the requestuserId - the user idkey - - file key generated by /config methodResponse@RolesAllowed(value="users") public javax.ws.rs.core.Response config(@Context javax.ws.rs.core.UriInfo uriInfo, String workspace, String path)
uriInfo - - request with base URIworkspace - the workspacepath - the path@RolesAllowed(value="users") public javax.ws.rs.core.Response localState(@Context javax.ws.rs.core.UriInfo uriInfo, String userId, String key)
uriInfo - - request infouserId - the user idkey - - config key generated when requested editor configResponseprotected String getClientIpAddr(javax.servlet.http.HttpServletRequest request)
request - the requestprotected String getClientHost(javax.servlet.http.HttpServletRequest request)
request - the requestprotected boolean isValidName(String hostName)
hostName - the host nameCopyright © 2003–2017 eXo Platform SAS. All rights reserved.