public class ContentService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.clouddrive.CloudDriveService |
cloudDrives |
protected org.exoplatform.clouddrive.features.CloudDriveFeatures |
features |
protected org.exoplatform.services.jcr.RepositoryService |
jcrService |
protected static org.exoplatform.services.log.Log |
LOG |
protected PDFViewerStorage |
pdfStorage |
static String |
SERVICE_PATH
REST service URL path.
|
protected org.exoplatform.services.jcr.ext.app.SessionProviderService |
sessionProviders |
| Constructor and Description |
|---|
ContentService(org.exoplatform.clouddrive.CloudDriveService cloudDrives,
org.exoplatform.clouddrive.features.CloudDriveFeatures features,
PDFViewerStorage pdfStorage,
org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
get(String workspace,
String path,
String contentId)
Return file content reading it from cloud side.
|
javax.ws.rs.core.Response |
getPageImage(String workspace,
String path,
String contentId,
String strPage,
String strRotation,
String strScale)
Return image (PNG) representation of cloud file content (page) reading it from local PDF storage.
|
javax.ws.rs.core.Response |
getPDF(String workspace,
String path,
String contentId)
Return cloud file representation reading it from local PDF storage.
|
protected String |
normalizePath(String path)
Normalize JCR path (as eXo WebDAV does).
|
protected static final org.exoplatform.services.log.Log LOG
public static String SERVICE_PATH
protected final org.exoplatform.clouddrive.features.CloudDriveFeatures features
protected final org.exoplatform.clouddrive.CloudDriveService cloudDrives
protected final org.exoplatform.services.jcr.RepositoryService jcrService
protected final org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders
protected final PDFViewerStorage pdfStorage
public ContentService(org.exoplatform.clouddrive.CloudDriveService cloudDrives,
org.exoplatform.clouddrive.features.CloudDriveFeatures features,
PDFViewerStorage pdfStorage,
org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders)
cloudDrives - features - jcrService - sessionProviders - @RolesAllowed(value="users") public javax.ws.rs.core.Response get(String workspace, String path, String contentId)
uriInfo - workspace - path - providerId - @RolesAllowed(value="users") public javax.ws.rs.core.Response getPageImage(String workspace, String path, String contentId, String strPage, String strRotation, String strScale)
uriInfo - workspace - path - providerId - @RolesAllowed(value="users") public javax.ws.rs.core.Response getPDF(String workspace, String path, String contentId)
uriInfo - workspace - path - providerId - Copyright © 2003–2015 eXo Platform SAS. All rights reserved.