Interface TransformClient

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void checkSupported​(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, RenditionDefinition2 renditionDefinition, java.lang.String sourceMimetype, long sourceSizeInBytes, 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.
    • Method Detail

      • checkSupported

        void checkSupported​(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                            RenditionDefinition2 renditionDefinition,
                            java.lang.String sourceMimetype,
                            long sourceSizeInBytes,
                            java.lang.String contentUrl)
        Checks the transformation required for the rendition is supported.
        Parameters:
        sourceNodeRef - the source node
        renditionDefinition - which rendition to perform
        sourceMimetype - the mometype of the source
        sourceSizeInBytes - the size in bytes of the source
        contentUrl - the url of the source (used in debug).
        Throws:
        java.lang.UnsupportedOperationException - if the transform is not supported.
      • transform

        void transform​(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                       RenditionDefinition2 renditionDefinition,
                       java.lang.String user,
                       int sourceContentHashCode)
                throws UnsupportedTransformationException,
                       org.alfresco.service.cmr.repository.ContentIOException
        Requests an asynchronous transform and the subsequent linkage of that transform as a rendition. The call to this method MUST be proceeded by a successful call to checkSupported(NodeRef, RenditionDefinition2, String, long, String) in the SAME Thread.
        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
        Throws:
        UnsupportedTransformationException - if there is an unexpected failure to transform, normally in a pipeline, where an intermediate transform may not be performed after all because an intermediate conversion is too big.
        org.alfresco.service.cmr.repository.ContentIOException - there is an unexpected communication or transformation failure.