Class SwitchingTransformClient

  • All Implemented Interfaces:
    TransformClient

    public class SwitchingTransformClient
    extends java.lang.Object
    implements TransformClient
    A transform client that falls back between different implementations if not supported.
    Author:
    adavis
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkSupported​(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, java.lang.String sourceMimetype, long size, java.lang.String contentUrl)
      Checks the transformation required for the rendition is supported.
      void transform​(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, java.lang.String user, int sourceContentHashCode)
      Requests an asynchronous transform and the subsequent linkage of that transform as a rendition.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • checkSupported

        public void checkSupported​(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                                   RenditionDefinition2 renditionDefinition,
                                   java.lang.String sourceMimetype,
                                   long size,
                                   java.lang.String contentUrl)
        Description copied from interface: TransformClient
        Checks the transformation required for the rendition is supported.
        Specified by:
        checkSupported in interface TransformClient
        Parameters:
        sourceNodeRef - the source node
        renditionDefinition - which rendition to perform
        sourceMimetype - the mometype of the source
        size - the size in bytes of the source
        contentUrl - the url of the source (used in debug).
      • transform

        public void transform​(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                              RenditionDefinition2 renditionDefinition,
                              java.lang.String user,
                              int sourceContentHashCode)
        Description copied from interface: TransformClient
        Requests an asynchronous transform and the subsequent linkage of that transform as a rendition.
        Specified by:
        transform in interface TransformClient
        Parameters:
        sourceNodeRef - the source node
        renditionDefinition - which rendition to perform
        user - that requested the transform.
        sourceContentHashCode - the hash code of the source node's content URL. Used to check the transform result