Class DropboxService
- java.lang.Object
-
- org.exoplatform.clouddrive.dropbox.rest.DropboxService
-
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class DropboxService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
Sample RESTful service to provide some specific features of Dropbox connector.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.exoplatform.services.cms.clouddrives.CloudDriveServicecloudDrivesThe cloud drives.protected org.exoplatform.services.cms.clouddrives.features.CloudDriveFeaturesfeaturesThe features.protected org.exoplatform.services.jcr.RepositoryServicejcrServiceThe jcr service.protected static org.exoplatform.services.log.LogLOGThe Constant LOG.protected org.exoplatform.services.jcr.ext.app.SessionProviderServicesessionProvidersThe session providers.
-
Constructor Summary
Constructors Constructor Description DropboxService(org.exoplatform.services.cms.clouddrives.CloudDriveService cloudDrives, org.exoplatform.services.cms.clouddrives.features.CloudDriveFeatures features, org.exoplatform.services.jcr.RepositoryService jcrService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetFileLink(javax.ws.rs.core.UriInfo uriInfo, String workspace, String path, String contentId)Return content of a file existing on cloud side.
-
-
-
Field Detail
-
LOG
protected static final org.exoplatform.services.log.Log LOG
The Constant LOG.
-
features
protected final org.exoplatform.services.cms.clouddrives.features.CloudDriveFeatures features
The features.
-
cloudDrives
protected final org.exoplatform.services.cms.clouddrives.CloudDriveService cloudDrives
The cloud drives.
-
jcrService
protected final org.exoplatform.services.jcr.RepositoryService jcrService
The jcr service.
-
sessionProviders
protected final org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders
The session providers.
-
-
Constructor Detail
-
DropboxService
public DropboxService(org.exoplatform.services.cms.clouddrives.CloudDriveService cloudDrives, org.exoplatform.services.cms.clouddrives.features.CloudDriveFeatures features, org.exoplatform.services.jcr.RepositoryService jcrService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders)Constructor.- Parameters:
cloudDrives- the cloud drivesfeatures- the featuresjcrService- the jcr servicesessionProviders- the session providers
-
-
Method Detail
-
getFileLink
@RolesAllowed("users") public javax.ws.rs.core.Response getFileLink(@Context javax.ws.rs.core.UriInfo uriInfo, String workspace, String path, String contentId)Return content of a file existing on cloud side.- Parameters:
uriInfo- the uri infoworkspace- the workspacepath- the pathcontentId- the content id- Returns:
- the file link
-
-