public class FileService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Field and Description |
|---|---|
protected CloudFileActionService |
cloudActions
The link manager.
|
protected org.exoplatform.clouddrive.CloudDriveService |
cloudDrives
The cloud drives.
|
protected org.exoplatform.services.cms.documents.DocumentService |
documentService
The document service.
|
protected org.exoplatform.services.jcr.RepositoryService |
jcrService
The jcr service.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
protected org.exoplatform.services.jcr.ext.app.SessionProviderService |
sessionProviders
The session providers.
|
| Constructor and Description |
|---|
FileService(org.exoplatform.clouddrive.CloudDriveService cloudDrives,
org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.cms.documents.DocumentService documentService,
CloudFileActionService cloudActions)
REST cloudDrives uses
CloudDriveService for actual job. |
| Modifier and Type | Method and Description |
|---|---|
protected org.exoplatform.services.jcr.core.ExtendedNode |
fileNode(org.exoplatform.clouddrive.CloudFile file,
String workspace)
Read cloud file node.
|
javax.ws.rs.core.Response |
getFile(javax.ws.rs.core.UriInfo uriInfo,
String workspace,
String path)
Return file information.
|
protected static final org.exoplatform.services.log.Log LOG
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 org.exoplatform.services.cms.documents.DocumentService documentService
protected final CloudFileActionService cloudActions
public FileService(org.exoplatform.clouddrive.CloudDriveService cloudDrives,
org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.cms.documents.DocumentService documentService,
CloudFileActionService cloudActions)
CloudDriveService for actual job.cloudDrives - CloudDriveServicejcrService - RepositoryServicesessionProviders - SessionProviderServicedocumentService - the document servicecloudActions - the cloud actions@RolesAllowed(value="users") public javax.ws.rs.core.Response getFile(@Context javax.ws.rs.core.UriInfo uriInfo, String workspace, String path)
protected org.exoplatform.services.jcr.core.ExtendedNode fileNode(org.exoplatform.clouddrive.CloudFile file,
String workspace)
throws javax.jcr.PathNotFoundException,
javax.jcr.LoginException,
javax.jcr.NoSuchWorkspaceException,
javax.jcr.RepositoryException
file - the fileworkspace - the workspacejavax.jcr.PathNotFoundException - the path not found exceptionjavax.jcr.LoginException - the login exceptionjavax.jcr.NoSuchWorkspaceException - the no such workspace exceptionjavax.jcr.RepositoryException - the repository exceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.