org.exoplatform.clouddrive.ecms.thumbnail
Class CloudDriveThumbnailRESTService

java.lang.Object
  extended by org.exoplatform.wcm.connector.collaboration.ThumbnailRESTService
      extended by org.exoplatform.clouddrive.ecms.thumbnail.CloudDriveThumbnailRESTService
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class CloudDriveThumbnailRESTService
extends org.exoplatform.wcm.connector.collaboration.ThumbnailRESTService

Created by The eXo Platform SAS

Version:
$Id: CloudDriveThumbnailRESTService.java 00000 May 21, 2014 pnedonosko $
Author:
Peter Nedonosko

Field Summary
protected  org.exoplatform.clouddrive.CloudDriveService cloudDrives
           
 
Constructor Summary
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)
           
 
Method Summary
protected  boolean accept(String workspaceName, String nodePath)
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cloudDrives

protected final org.exoplatform.clouddrive.CloudDriveService cloudDrives
Constructor Detail

CloudDriveThumbnailRESTService

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)
Parameters:
repositoryService -
thumbnailService -
nodeFinder -
linkManager -
Method Detail

getThumbnailImage

public javax.ws.rs.core.Response getThumbnailImage(String repoName,
                                                   String workspaceName,
                                                   String nodePath,
                                                   @HeaderParam(value="If-Modified-Since")
                                                   String ifModifiedSince)
                                            throws Exception

Overrides:
getThumbnailImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTService
Throws:
Exception

getCoverImage

public javax.ws.rs.core.Response getCoverImage(String repoName,
                                               String workspaceName,
                                               String nodePath,
                                               @HeaderParam(value="If-Modified-Since")
                                               String ifModifiedSince)
                                        throws Exception

Overrides:
getCoverImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTService
Throws:
Exception

getLargeImage

public javax.ws.rs.core.Response getLargeImage(String repoName,
                                               String workspaceName,
                                               String nodePath,
                                               @HeaderParam(value="If-Modified-Since")
                                               String ifModifiedSince)
                                        throws Exception

Overrides:
getLargeImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTService
Throws:
Exception

getSmallImage

public javax.ws.rs.core.Response getSmallImage(String repoName,
                                               String workspaceName,
                                               String nodePath,
                                               @HeaderParam(value="If-Modified-Since")
                                               String ifModifiedSince)
                                        throws Exception

Overrides:
getSmallImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTService
Throws:
Exception

getCustomImage

public javax.ws.rs.core.Response getCustomImage(String size,
                                                String repoName,
                                                String workspaceName,
                                                String nodePath,
                                                @HeaderParam(value="If-Modified-Since")
                                                String ifModifiedSince)
                                         throws Exception

Overrides:
getCustomImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTService
Throws:
Exception

getOriginImage

public javax.ws.rs.core.Response getOriginImage(String repoName,
                                                String workspaceName,
                                                String nodePath,
                                                @HeaderParam(value="If-Modified-Since")
                                                String ifModifiedSince)
                                         throws Exception

Overrides:
getOriginImage in class org.exoplatform.wcm.connector.collaboration.ThumbnailRESTService
Throws:
Exception

accept

protected boolean accept(String workspaceName,
                         String nodePath)
                  throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

ok

protected javax.ws.rs.core.Response ok()


Copyright © 2003–2015 eXo Platform SAS. All rights reserved.