Package org.alfresco.repo.rendition2
Class TransformDefinition
java.lang.Object
org.alfresco.repo.rendition2.RenditionDefinition2Impl
org.alfresco.repo.rendition2.TransformDefinition
- All Implemented Interfaces:
RenditionDefinition2
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 Summary
FieldsFields 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_FILENAME, SOURCE_NODE_REF, START_PAGE, TARGET_ENCODING, THUMBNAIL, TIMEOUT, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionTransformDefinition(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.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
Modifier and TypeMethodDescriptionstatic StringconvertToRenditionName(String transformName) static StringgetTransformName(String renditionName) voidsetErrorMessage(String errorMessage) Methods inherited from class org.alfresco.repo.rendition2.RenditionDefinition2Impl
equals, getRenditionName, getTargetMimetype, getTransformOptions, hashCode, isDynamicallyLoaded
-
Field Details
-
TRANSFORM_NAMESPACE
- See Also:
-
-
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
-
getTransformName
-
getTransformName
-
getClientData
-
getReplyQueue
-
getRequestId
-
getErrorMessage
-
setErrorMessage
-