org.alfresco.repo.rendition.executer
Class ReformatRenderingEngine
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
org.alfresco.repo.rendition.executer.AbstractRenderingEngine
org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine
org.alfresco.repo.rendition.executer.ReformatRenderingEngine
- All Implemented Interfaces:
- ActionExecuter, org.springframework.beans.factory.BeanNameAware
public class ReformatRenderingEngine
- extends AbstractTransformationRenderingEngine
This class is the implementation of the 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.
- Since:
- 3.3
Field Summary |
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. |
Fields inherited from class org.alfresco.repo.rendition.executer.AbstractRenderingEngine |
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 |
Methods inherited from class org.alfresco.repo.rendition.executer.AbstractRenderingEngine |
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 |
Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase |
execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PARAM_FLASH_VERSION
public static final 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.
- See Also:
- Constant Field Values
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
ReformatRenderingEngine
public ReformatRenderingEngine()
getTargetMimeType
protected java.lang.String getTargetMimeType(AbstractRenderingEngine.RenderingContext context)
- Overrides:
getTargetMimeType
in class AbstractRenderingEngine
getTransformOptions
protected TransformationOptions getTransformOptions(AbstractRenderingEngine.RenderingContext context)
- Specified by:
getTransformOptions
in class AbstractTransformationRenderingEngine
getParameterDefinitions
protected java.util.Collection getParameterDefinitions()
- Description copied from class:
AbstractRenderingEngine
- Supplies the list of parameters required by this rendering engine.
- Overrides:
getParameterDefinitions
in class AbstractRenderingEngine
- Returns:
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.