org.exoplatform.services.wcm.images
Class RESTImagesRendererService

java.lang.Object
  extended by org.exoplatform.services.wcm.images.RESTImagesRendererService
All Implemented Interfaces:
org.exoplatform.services.rest.container.ResourceContainer

public class RESTImagesRendererService
extends java.lang.Object
implements org.exoplatform.services.rest.container.ResourceContainer

Created by The eXo Platform SAS Author : Hoa Pham hoa.phamvu@exoplatform.com Mar 31, 2009


Constructor Summary
RESTImagesRendererService(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService)
          Instantiates a new rEST images renderer service.
 
Method Summary
 java.lang.String generateURI(javax.jcr.Node file)
          Generate uri.
 java.lang.String generateURI(javax.jcr.Node file, java.lang.String propertyName)
          Generate uri.
 org.exoplatform.services.rest.Response serveImage(java.lang.String repository, java.lang.String workspace, java.lang.String nodeIdentifier, java.lang.String ifModifiedSince)
          Serve image.
 org.exoplatform.services.rest.Response serveImage(java.lang.String repository, java.lang.String workspace, java.lang.String nodeIdentifier, java.lang.String propertyName, java.lang.String ifModifiedSince)
          Serve image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RESTImagesRendererService

public RESTImagesRendererService(org.exoplatform.services.jcr.RepositoryService repositoryService,
                                 org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService)
Instantiates a new rEST images renderer service.

Parameters:
repositoryService - the repository service
sessionProviderService - the session provider service
Method Detail

serveImage

public org.exoplatform.services.rest.Response serveImage(java.lang.String repository,
                                                         java.lang.String workspace,
                                                         java.lang.String nodeIdentifier,
                                                         java.lang.String ifModifiedSince)
Serve image.

Parameters:
repository - the repository
workspace - the workspace
nodeIdentifier - the node identifier
Returns:
the response

serveImage

public org.exoplatform.services.rest.Response serveImage(java.lang.String repository,
                                                         java.lang.String workspace,
                                                         java.lang.String nodeIdentifier,
                                                         java.lang.String propertyName,
                                                         java.lang.String ifModifiedSince)
Serve image.

Parameters:
repository - the repository
workspace - the workspace
nodeIdentifier - the node identifier
propertyName - the property name
Returns:
the response

generateURI

public java.lang.String generateURI(javax.jcr.Node file)
                             throws java.lang.Exception
Generate uri.

Parameters:
file - the file
Returns:
the string
Throws:
java.lang.Exception - the exception

generateURI

public java.lang.String generateURI(javax.jcr.Node file,
                                    java.lang.String propertyName)
                             throws java.lang.Exception
Generate uri.

Parameters:
file - the file
propertyName - the property name
Returns:
the string
Throws:
java.lang.Exception - the exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.