|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.clouddrive.cmis.rest.ContentService
public class ContentService
RESTful service to access file content in CMIS connector operations.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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 - | Method Detail |
|---|
@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 -
protected String normalizePath(String path)
path - String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||