Class RenditionsImpl

  • All Implemented Interfaces:
    Renditions, org.springframework.beans.factory.Aware, org.springframework.context.ResourceLoaderAware

    public class RenditionsImpl
    extends Object
    implements Renditions, org.springframework.context.ResourceLoaderAware
    Author:
    Jamal Kaabi-Mofrad
    • Constructor Detail

      • RenditionsImpl

        public RenditionsImpl()
    • Method Detail

      • setNodes

        public void setNodes​(Nodes nodes)
      • setThumbnailService

        public void setThumbnailService​(ThumbnailService thumbnailService)
      • setScriptThumbnailService

        public void setScriptThumbnailService​(ScriptThumbnailService scriptThumbnailService)
      • setServiceRegistry

        public void setServiceRegistry​(ServiceRegistry serviceRegistry)
      • setResourceLoader

        public void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)
        Specified by:
        setResourceLoader in interface org.springframework.context.ResourceLoaderAware
      • setTenantService

        public void setTenantService​(TenantService tenantService)
      • setRenditionsDataCollector

        public void setRenditionsDataCollector​(RenditionsDataCollector renditionsDataCollector)
      • init

        public void init()
      • getRendition

        public Rendition getRendition​(NodeRef nodeRef,
                                      String renditionId,
                                      Parameters parameters)
        Description copied from interface: Renditions
        Gets information about a rendition of a node in the repository. If there is no rendition, then returns the available/registered rendition.
        Specified by:
        getRendition in interface Renditions
        renditionId - the rendition id
        parameters - the Parameters object to get the parameters passed into the request
        Returns:
        the Rendition object
      • getContent

        public BinaryResource getContent​(NodeRef nodeRef,
                                         String renditionId,
                                         Parameters parameters)
        Description copied from interface: Renditions
        Downloads rendition.
        Specified by:
        getContent in interface Renditions
        Parameters:
        nodeRef - the source nodeRef
        renditionId - the rendition id
        parameters - the Parameters object to get the parameters passed into the request
        Returns:
        the rendition stream
      • getContentNoValidation

        public BinaryResource getContentNoValidation​(NodeRef sourceNodeRef,
                                                     String renditionId,
                                                     Parameters parameters)
        Description copied from interface: Renditions
        Downloads rendition.
        Specified by:
        getContentNoValidation in interface Renditions
        Parameters:
        sourceNodeRef - the source nodeRef
        renditionId - the rendition id
        parameters - the Parameters object to get the parameters passed into the request
        Returns:
        the rendition stream
      • toApiRendition

        protected Rendition toApiRendition​(NodeRef renditionNodeRef)