Class TransformDefinition

java.lang.Object
org.alfresco.repo.rendition2.RenditionDefinition2Impl
org.alfresco.repo.rendition2.TransformDefinition
All Implemented Interfaces:
RenditionDefinition2

public class TransformDefinition extends RenditionDefinition2Impl
A TransformDefinition is a transient RenditionDefinition2 that provides a target mimetype and transform options just like a RenditionDefinition2. However one should be created for each transform request, so that additional client supplied data can be included and returned in the response to the client. It also identifies the reply queue to be used.

When it is known that the same target mimetype and transform options are being supplied many times a transform name should be supplied so that the transform registry is able to use the name as a key into a cache used to work out if the transform is possible. The transform name is prefixed TRANSFORM_NAMESPACE to avoid clashes with rendition names.

Author:
adavis
  • Field Details

  • Constructor Details

    • TransformDefinition

      public TransformDefinition(String transformName, String targetMimetype, Map<String,String> transformOptions, String clientData, String replyQueue, String requestId, RenditionDefinitionRegistry2Impl registry)
      Constructor where the same targetMimetype and transformOptions are used in multiple calls. In such a case, how or if the transform will take place, will be cached against the transformName.
    • TransformDefinition

      public TransformDefinition(String targetMimetype, Map<String,String> transformOptions, String clientData, String replyQueue, String requestId)
      Constructor where the targetMimetype and transformOptions are unlikely to be repeated.
  • Method Details

    • convertToRenditionName

      public static String convertToRenditionName(String transformName)
    • getTransformName

      public String getTransformName()
    • getTransformName

      public static String getTransformName(String renditionName)
    • getClientData

      public String getClientData()
    • getReplyQueue

      public String getReplyQueue()
    • getRequestId

      public String getRequestId()
    • getErrorMessage

      public String getErrorMessage()
    • setErrorMessage

      public void setErrorMessage(String errorMessage)