org.alfresco.repo.rendition.executer
Class ReformatRenderingEngine

java.lang.Object
  extended by org.alfresco.repo.action.CommonResourceAbstractBase
      extended by org.alfresco.repo.action.ParameterizedItemAbstractBase
          extended by org.alfresco.repo.action.executer.ActionExecuterAbstractBase
              extended by org.alfresco.repo.rendition.executer.AbstractRenderingEngine
                  extended by org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine
                      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.rendition.executer.AbstractRenderingEngine
AbstractRenderingEngine.RenderingContext
 
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
 
Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionDefinition, applicableTypes, publicAction
 
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
DISPLAY_LABEL, runtimeActionService
 
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
 
Fields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT
 
Constructor Summary
ReformatRenderingEngine()
           
 
Method Summary
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)
           
 
Methods inherited from class org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine
render
 
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 org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParameterDefintions, getTitleKey, setRuntimeActionService, toString
 
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ReformatRenderingEngine

public ReformatRenderingEngine()
Method Detail

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.