public class ThumbnailRESTService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
ThumbnailRESTService(org.exoplatform.services.jcr.RepositoryService repositoryService,
ThumbnailService thumbnailService,
NodeFinder nodeFinder,
LinkManager linkManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getCoverImage(String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince)
Returns an image with a big size.
|
javax.ws.rs.core.Response |
getCustomImage(String size,
String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince)
Returns an image with a custom size.
|
javax.ws.rs.core.Response |
getLargeImage(String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince)
Returns an image with a large size (300x300).
|
javax.ws.rs.core.Response |
getLocalImage(String nodePath,
String ifModifiedSince)
Return an image at an original size from local machine.
|
javax.ws.rs.core.Response |
getOriginImage(String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince)
Returns an image with an original size.
|
javax.ws.rs.core.Response |
getSmallImage(String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince)
Returns an image with a small size (32x32).
|
javax.ws.rs.core.Response |
getThumbnailImage(String repoName,
String workspaceName,
String nodePath,
String ifModifiedSince)
Returns an image with a medium size (64x64).
|
public ThumbnailRESTService(org.exoplatform.services.jcr.RepositoryService repositoryService,
ThumbnailService thumbnailService,
NodeFinder nodeFinder,
LinkManager linkManager)
public javax.ws.rs.core.Response getThumbnailImage(String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
repoName - The repository name.workspaceName - The workspace name.nodePath - The node path.Exceptionpublic javax.ws.rs.core.Response getCoverImage(String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
repoName - The repository name.workspaceName - The workspace name.nodePath - The node path.Exceptionpublic javax.ws.rs.core.Response getLargeImage(String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
repoName - The repository name.workspaceName - The workspace name.nodePath - The node path.Exceptionpublic javax.ws.rs.core.Response getSmallImage(String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
repoName - The repository name.workspaceName - The workspace name.nodePath - The node path.Exceptionpublic javax.ws.rs.core.Response getCustomImage(String size, String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
size - The customized size of the image.repoName - The repository name.workspaceName - The workspace name.nodePath - The node path.Exceptionpublic javax.ws.rs.core.Response getOriginImage(String repoName, String workspaceName, String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
repoName - The repository name.workspaceName - The workspace name.nodePath - The node path.Exceptionpublic javax.ws.rs.core.Response getLocalImage(String nodePath, @HeaderParam(value="If-Modified-Since") String ifModifiedSince) throws Exception
nodePath - The node path.ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.