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 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.
    • Method Detail

      • checkSupported

        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.
        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).
        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)
        Requests an asynchronous transform and the subsequent linkage of that transform as a rendition.
        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