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.AbstractRenderingEngine.RenderingContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
static java.lang.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. |
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
CONTENT_READER_NOT_FOUND_MESSAGE, contentService, 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
DISPLAY_LABEL, runtimeActionService
name
PARAM_RESULT
Constructor and Description |
---|
ReformatRenderingEngine() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection |
getParameterDefinitions()
Supplies the list of parameters required by this rendering engine.
|
protected java.lang.String |
getTargetMimeType(AbstractRenderingEngine.RenderingContext context) |
protected TransformationOptions |
getTransformOptions(AbstractRenderingEngine.RenderingContext context) |
protected TransformationOptions |
getTransformOptionsImpl(TransformationOptions options,
AbstractRenderingEngine.RenderingContext context) |
render
addParameterDefinitions, checkActionIsRenditionDefinition, checkParameterValues, checkSourceNodeExists, createActionDefinition, executeImpl, executeImpl, executeRenditionImpl, getCheckedParam, getDefaultRenditionContentProp, getDefaultRenditionNodeType, getParamDisplayLabel, getParamWithDefault, getRenditionContentProperty, getTargetEncoding, notifyCallbackOfException, notifyCallbackOfResult, resolveRenditionLocation, setBehaviourFilter, setContentService, setDefaultRenditionContentProp, setDefaultRenditionNodeType, setMimetypeMap, setNodeService, setRenditionLocationResolver, setRenditionService, switchToFinalRenditionNode, tagSourceNodeAsRenditioned, throwWrappedException
execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatus
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParameterDefintions, getTitleKey, setRuntimeActionService, toString
setBeanName
public static final java.lang.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 java.lang.String NAME
protected java.lang.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 java.util.Collection getParameterDefinitions()
AbstractRenderingEngine
getParameterDefinitions
in class AbstractRenderingEngine
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.