org.alfresco.repo.rendition.executer
Class AbstractTransformationRenderingEngine

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
All Implemented Interfaces:
ActionExecuter, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
ImageRenderingEngine, ReformatRenderingEngine

public abstract class AbstractTransformationRenderingEngine
extends AbstractRenderingEngine


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.rendition.executer.AbstractRenderingEngine
AbstractRenderingEngine.RenderingContext
 
Field Summary
static java.lang.String PARAM_MAX_PAGES
          This optional Integer parameter specifies the maximum number of pages of the source that may be read.
static java.lang.String PARAM_MAX_SOURCE_SIZE_K_BYTES
          This optional Long parameter specifies the maximum number of kbytes of the source may be read.
static java.lang.String PARAM_PAGE_LIMIT
          This optional Integer parameter specifies how many source pages should be read in order to create an image.
static java.lang.String PARAM_READ_LIMIT_K_BYTES
          This optional Long parameter specifies how many kbytes of the source to read in order to create an image.
static java.lang.String PARAM_READ_LIMIT_TIME_MS
          This optional Long parameter specifies how timeout for reading the source before EOF is returned.
static java.lang.String PARAM_TIMEOUT_MS
          This optional Long parameter specifies the timeout for reading the source before an exception is thrown.
 
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
AbstractTransformationRenderingEngine()
           
 
Method Summary
protected abstract  TransformationOptions getTransformOptions(AbstractRenderingEngine.RenderingContext context)
           
protected  TransformationOptions getTransformOptionsImpl(TransformationOptions options, AbstractRenderingEngine.RenderingContext context)
           
protected  void render(AbstractRenderingEngine.RenderingContext context)
           
 
Methods inherited from class org.alfresco.repo.rendition.executer.AbstractRenderingEngine
addParameterDefinitions, checkActionIsRenditionDefinition, checkParameterValues, checkSourceNodeExists, createActionDefinition, executeImpl, executeImpl, executeRenditionImpl, getCheckedParam, getDefaultRenditionContentProp, getDefaultRenditionNodeType, getParamDisplayLabel, getParameterDefinitions, getParamWithDefault, getRenditionContentProperty, getTargetEncoding, getTargetMimeType, 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_TIMEOUT_MS

public static final java.lang.String PARAM_TIMEOUT_MS
This optional Long parameter specifies the timeout for reading the source before an exception is thrown.

See Also:
Constant Field Values

PARAM_READ_LIMIT_TIME_MS

public static final java.lang.String PARAM_READ_LIMIT_TIME_MS
This optional Long parameter specifies how timeout for reading the source before EOF is returned.

See Also:
Constant Field Values

PARAM_MAX_SOURCE_SIZE_K_BYTES

public static final java.lang.String PARAM_MAX_SOURCE_SIZE_K_BYTES
This optional Long parameter specifies the maximum number of kbytes of the source may be read. An exception is thrown before any are read if larger.

See Also:
Constant Field Values

PARAM_READ_LIMIT_K_BYTES

public static final java.lang.String PARAM_READ_LIMIT_K_BYTES
This optional Long parameter specifies how many kbytes of the source to read in order to create an image.

See Also:
Constant Field Values

PARAM_MAX_PAGES

public static final java.lang.String PARAM_MAX_PAGES
This optional Integer parameter specifies the maximum number of pages of the source that may be read. An exception is thrown before any are read if larger.

See Also:
Constant Field Values

PARAM_PAGE_LIMIT

public static final java.lang.String PARAM_PAGE_LIMIT
This optional Integer parameter specifies how many source pages should be read in order to create an image.

See Also:
Constant Field Values
Constructor Detail

AbstractTransformationRenderingEngine

public AbstractTransformationRenderingEngine()
Method Detail

render

protected void render(AbstractRenderingEngine.RenderingContext context)
Specified by:
render in class AbstractRenderingEngine

getTransformOptions

protected abstract TransformationOptions getTransformOptions(AbstractRenderingEngine.RenderingContext context)

getTransformOptionsImpl

protected TransformationOptions getTransformOptionsImpl(TransformationOptions options,
                                                        AbstractRenderingEngine.RenderingContext context)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.