public class ReformatRenderingEngine extends AbstractTransformationRenderingEngine
RenditionService
's "reformat"
action/rendering. This action renders a piece of content in the specified
target MIME type. This is achieved using one of the standard transformers
within the ContentService
.
Reformatting in this way is a simple conversion of one MIME type to another
MIME type, without any other changes to the content. Therefore there is no
support within this action for altering the content e.g. image
cropping/resizing.AbstractTransformationRenderingEngine.TransformationCallable
AbstractRenderingEngine.RenderingContext
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
PARAM_FLASH_VERSION
This optional
String parameter is only necessary when converting
from pdf to Flash and is used to specify which Flash version to convert
to. |
CANCELLED_ACTION_POLLING_INTERVAL, PARAM_MAX_PAGES, PARAM_MAX_SOURCE_SIZE_K_BYTES, PARAM_PAGE_LIMIT, PARAM_READ_LIMIT_K_BYTES, PARAM_READ_LIMIT_TIME_MS, PARAM_TIMEOUT_MS, PARAM_USE
actionTrackingService, CONTENT_READER_NOT_FOUND_MESSAGE, contentService, DEFAULT_RUN_AS_NAME, mimetypeMap, nodeService, PARAM_ENCODING, PARAM_MIME_TYPE, PARAM_PLACEHOLDER_RESOURCE_PATH, PARAM_RUN_AS, PARAM_SOURCE_CONTENT_PROPERTY, PARAM_TARGET_CONTENT_PROPERTY, PARAM_UPDATE_RENDITIONS_ON_ANY_PROPERTY_CHANGE
actionDefinition, applicableTypes, publicAction
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
name
PARAM_RESULT
Constructor and Description |
---|
ReformatRenderingEngine() |
Modifier and Type | Method and Description |
---|---|
protected Collection<ParameterDefinition> |
getParameterDefinitions()
Supplies the list of parameters required by this rendering engine.
|
protected String |
getTargetMimeType(AbstractRenderingEngine.RenderingContext context) |
protected TransformationOptions |
getTransformOptions(AbstractRenderingEngine.RenderingContext context) |
protected TransformationOptions |
getTransformOptionsImpl(TransformationOptions options,
AbstractRenderingEngine.RenderingContext context) |
getExecutorService, getSourceOptionsSerializers, init, render, setSourceOptionsSerializers
addParameterDefinitions, checkActionIsRenditionDefinition, checkParameterValues, checkSourceNodeExists, createActionDefinition, executeImpl, executeImpl, executeRenditionImpl, getCheckedParam, getDefaultRenditionContentProp, getDefaultRenditionNodeType, getExecutionSummary, getParamDisplayLabel, getParamWithDefault, getRenditionContentProperty, getTargetEncoding, notifyCallbackOfException, notifyCallbackOfResult, resolveRenditionLocation, setActionTrackingService, setBehaviourFilter, setContentService, setDefaultRenditionContentProp, setDefaultRenditionNodeType, setMimetypeMap, setNodeService, setRenditionLocationResolver, setRenditionService, switchToFinalRenditionNode, tagSourceNodeAsRenditioned, throwWrappedException
execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
setBeanName
public static final String PARAM_FLASH_VERSION
String
parameter is only necessary when converting
from pdf to Flash and is used to specify which Flash version to convert
to.public static final String NAME
protected String getTargetMimeType(AbstractRenderingEngine.RenderingContext context)
getTargetMimeType
in class AbstractRenderingEngine
protected TransformationOptions getTransformOptions(AbstractRenderingEngine.RenderingContext context)
getTransformOptions
in class AbstractTransformationRenderingEngine
protected TransformationOptions getTransformOptionsImpl(TransformationOptions options, AbstractRenderingEngine.RenderingContext context)
getTransformOptionsImpl
in class AbstractTransformationRenderingEngine
protected Collection<ParameterDefinition> getParameterDefinitions()
AbstractRenderingEngine
getParameterDefinitions
in class AbstractTransformationRenderingEngine
Copyright © 2005–2017 Alfresco Software. All rights reserved.