Package org.alfresco.repo.rendition2
Class LegacyTransformServiceRegistry
- java.lang.Object
-
- org.alfresco.repo.rendition2.AbstractTransformServiceRegistry
-
- org.alfresco.repo.rendition2.LegacyTransformServiceRegistry
-
- All Implemented Interfaces:
TransformServiceRegistry,org.springframework.beans.factory.InitializingBean
@Deprecated public class LegacyTransformServiceRegistry extends AbstractTransformServiceRegistry implements org.springframework.beans.factory.InitializingBean
Deprecated.ImplementsTransformServiceRegistryproviding a mechanism of validating if a legacy transformation (based onAbstractContentTransformer2request is supported.- Author:
- adavis
-
-
Constructor Summary
Constructors Constructor Description LegacyTransformServiceRegistry()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterPropertiesSet()Deprecated.longgetMaxSize(java.lang.String sourceMimetype, java.lang.String targetMimetype, java.util.Map<java.lang.String,java.lang.String> options, java.lang.String renditionName)Deprecated.Returns the maximun size (in bytes) of the source content that can be transformed.voidsetContentService(ContentService contentService)Deprecated.voidsetConverter(TransformationOptionsConverter converter)Deprecated.voidsetEnabled(boolean enabled)Deprecated.voidsetTransformerDebug(TransformerDebug transformerDebug)Deprecated.-
Methods inherited from class org.alfresco.repo.rendition2.AbstractTransformServiceRegistry
isSupported
-
-
-
-
Method Detail
-
setContentService
public void setContentService(ContentService contentService)
Deprecated.
-
setConverter
public void setConverter(TransformationOptionsConverter converter)
Deprecated.
-
setEnabled
public void setEnabled(boolean enabled)
Deprecated.
-
setTransformerDebug
public void setTransformerDebug(TransformerDebug transformerDebug)
Deprecated.
-
afterPropertiesSet
public void afterPropertiesSet()
Deprecated.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getMaxSize
public long getMaxSize(java.lang.String sourceMimetype, java.lang.String targetMimetype, java.util.Map<java.lang.String,java.lang.String> options, java.lang.String renditionName)Deprecated.Description copied from interface:TransformServiceRegistryReturns the maximun size (in bytes) of the source content that can be transformed.- Specified by:
getMaxSizein interfaceTransformServiceRegistry- Parameters:
sourceMimetype- the mimetype of the source contenttargetMimetype- the mimetype of the targetoptions- the actual name value pairs available that could be passed to the Transform Service.renditionName- (optional) name for the set of options and target mimetype. If supplied is used to cache results to avoid having to work out if a given transformation is supported a second time. The sourceMimetype and sourceSizeInBytes may still change. In the case of ACS this is the rendition name.- Returns:
- the maximum size (in bytes) of the source content that can be transformed. If
-1there is no limit, but if0the transform is not supported.
-
-