Package org.alfresco.repo.rendition2
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 transientRenditionDefinition2that 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_NAMESPACEto avoid clashes with rendition names.- Author:
- adavis
-
-
Field Summary
Fields Modifier and Type Field Description static StringTRANSFORM_NAMESPACE-
Fields inherited from interface org.alfresco.repo.rendition2.RenditionDefinition2
ALLOW_ENLARGEMENT, ALLOW_PDF_ENLARGEMENT, ALPHA_REMOVE, AUTO_ORIENT, CROP_GRAVITY, CROP_HEIGHT, CROP_PERCENTAGE, CROP_WIDTH, CROP_X_OFFSET, CROP_Y_OFFSET, DURATION, END_PAGE, FLASH_VERSION, HEIGHT, INCLUDE_CONTENTS, MAINTAIN_ASPECT_RATIO, MAINTAIN_PDF_ASPECT_RATIO, MAX_SOURCE_SIZE_K_BYTES, OFFSET, PAGE, RESIZE_HEIGHT, RESIZE_PERCENTAGE, RESIZE_WIDTH, SOURCE_ENCODING, SOURCE_NODE_REF, START_PAGE, TARGET_ENCODING, THUMBNAIL, TIMEOUT, WIDTH
-
-
Constructor Summary
Constructors Constructor Description TransformDefinition(String transformName, String targetMimetype, Map<String,String> transformOptions, String clientData, String replyQueue, String requestId)Constructor where the same targetMimetype and transformOptions are used in multiple calls.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientData()StringgetErrorMessage()StringgetReplyQueue()StringgetRequestId()StringgetTransformName()voidsetErrorMessage(String errorMessage)-
Methods inherited from class org.alfresco.repo.rendition2.RenditionDefinition2Impl
equals, getRenditionName, getTargetMimetype, getTransformOptions, hashCode, isDynamicallyLoaded
-
-
-
-
Field Detail
-
TRANSFORM_NAMESPACE
public static final String TRANSFORM_NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TransformDefinition
public TransformDefinition(String transformName, String targetMimetype, Map<String,String> transformOptions, String clientData, String replyQueue, String requestId)
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.
-
-
Method Detail
-
getTransformName
public String getTransformName()
-
getClientData
public String getClientData()
-
getReplyQueue
public String getReplyQueue()
-
getRequestId
public String getRequestId()
-
getErrorMessage
public String getErrorMessage()
-
setErrorMessage
public void setErrorMessage(String errorMessage)
-
-