public class CloudDriveThumbnailRESTService
extends org.exoplatform.wcm.connector.collaboration.ThumbnailRESTService
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.clouddrive.CloudDriveService |
cloudDrives
The cloud drives.
|
| Constructor and Description |
|---|
CloudDriveThumbnailRESTService(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.cms.thumbnail.ThumbnailService thumbnailService,
org.exoplatform.services.cms.link.NodeFinder nodeFinder,
org.exoplatform.services.cms.link.LinkManager linkManager,
org.exoplatform.clouddrive.CloudDriveService cloudDrives)
Instantiates a new cloud drive thumbnail REST service.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(String workspaceName,
String nodePath)
Accept.
|
javax.ws.rs.core.Response |
getCoverImage(String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince) |
javax.ws.rs.core.Response |
getCustomImage(String size,
String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince) |
javax.ws.rs.core.Response |
getLargeImage(String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince) |
javax.ws.rs.core.Response |
getOriginImage(String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince) |
javax.ws.rs.core.Response |
getSmallImage(String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince) |
javax.ws.rs.core.Response |
getThumbnailImage(String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince) |
protected javax.ws.rs.core.Response |
ok()
Ok.
|
protected final org.exoplatform.clouddrive.CloudDriveService cloudDrives
public CloudDriveThumbnailRESTService(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.cms.thumbnail.ThumbnailService thumbnailService,
org.exoplatform.services.cms.link.NodeFinder nodeFinder,
org.exoplatform.services.cms.link.LinkManager linkManager,
org.exoplatform.clouddrive.CloudDriveService cloudDrives)
repositoryService - the repository servicethumbnailService - the thumbnail servicenodeFinder - the node finderlinkManager - the link managercloudDrives - the cloud drivespublic javax.ws.rs.core.Response getThumbnailImage(String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
getThumbnailImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTServiceExceptionpublic javax.ws.rs.core.Response getCoverImage(String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
getCoverImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTServiceExceptionpublic javax.ws.rs.core.Response getLargeImage(String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
getLargeImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTServiceExceptionpublic javax.ws.rs.core.Response getSmallImage(String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
getSmallImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTServiceExceptionpublic javax.ws.rs.core.Response getCustomImage(String size, String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
getCustomImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTServiceExceptionpublic javax.ws.rs.core.Response getOriginImage(String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
getOriginImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTServiceExceptionprotected boolean accept(String workspaceName, String nodePath) throws javax.jcr.RepositoryException
workspaceName - the workspace namenodePath - the node pathjavax.jcr.RepositoryException - the repository exceptionprotected javax.ws.rs.core.Response ok()
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.