public class EditorService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Field and Description |
|---|---|
protected OnlyofficeEditorService |
editors |
static String |
INIT_COOKIE_PATH |
protected Map<UUID,Config> |
initiated |
protected DriveServiceLocator |
locator |
protected static org.exoplatform.services.log.Log |
LOG |
| Constructor and Description |
|---|
EditorService(OnlyofficeEditorService editors,
DriveServiceLocator locator)
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) |
protected String |
getClientIpAddr(javax.servlet.http.HttpServletRequest request) |
protected boolean |
isValidName(String hostName) |
javax.ws.rs.core.Response |
localState(javax.ws.rs.core.UriInfo uriInfo,
String userId,
String key)
Editing document state in local storage.
|
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.
|
public static final String INIT_COOKIE_PATH
protected static final org.exoplatform.services.log.Log LOG
protected final OnlyofficeEditorService editors
protected final DriveServiceLocator locator
public EditorService(OnlyofficeEditorService editors, DriveServiceLocator locator)
OnlyofficeEditorService for actual job.editors - locator - jcrService - sessionProviders - finder - public 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 infokey - - config key generated when requested editor configstatus - DocumentStatusResponsepublic 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 infokey - - 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 URIproviderId - - provider name see more in CloudProvider@RolesAllowed(value="users") public javax.ws.rs.core.Response localState(@Context javax.ws.rs.core.UriInfo uriInfo, String userId, String key)
uriInfo - - request infokey - - config key generated when requested editor configstatus - DocumentStatusResponseprotected String getClientIpAddr(javax.servlet.http.HttpServletRequest request)
protected String getClientHost(javax.servlet.http.HttpServletRequest request)
protected boolean isValidName(String hostName)
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.