Package org.alfresco.repo.rendition2
Class LegacySynchronousTransformClient
- java.lang.Object
-
- org.alfresco.repo.rendition2.ContentTransformServiceImpl
-
- org.alfresco.repo.rendition2.LegacySynchronousTransformClient
-
- All Implemented Interfaces:
SynchronousTransformClient,org.springframework.beans.factory.InitializingBean
@Deprecated public class LegacySynchronousTransformClient extends ContentTransformServiceImpl implements SynchronousTransformClient
Deprecated.Request synchronous transforms. Used in refactoring deprecated code, which called Legacy transforms, so that it will first try a Local transform, falling back to Legacy if not available. Transforms take place using transforms available on the local machine (based onAbstractContentTransformer2).- Author:
- adavis
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.rendition2.ContentTransformServiceImpl
logger
-
-
Constructor Summary
Constructors Constructor Description LegacySynchronousTransformClient()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetName()Deprecated.booleanisSupported(String sourceMimetype, long sourceSizeInBytes, String contentUrl, String targetMimetype, Map<String,String> actualOptions, String transformName, NodeRef sourceNodeRef)Deprecated.Works out if it is possible to transform content of a given source mimetype and size into a target mimetype given a list of actual transform option names and values.voidsetConverter(TransformationOptionsConverter converter)Deprecated.voidtransform(ContentReader reader, ContentWriter writer, Map<String,String> actualOptions, String transformName, NodeRef sourceNodeRef)Deprecated.Requests a synchronous transform.-
Methods inherited from class org.alfresco.repo.rendition2.ContentTransformServiceImpl
afterPropertiesSet, getActiveTransformers, getMaxSourceSizeBytes, getTransformer, getTransformers, setMimetypeService, setTransformerDebug, setTransformerFailover, setTransformerRegistry, transform
-
-
-
-
Method Detail
-
setConverter
public void setConverter(TransformationOptionsConverter converter)
Deprecated.
-
isSupported
public boolean isSupported(String sourceMimetype, long sourceSizeInBytes, String contentUrl, String targetMimetype, Map<String,String> actualOptions, String transformName, NodeRef sourceNodeRef)
Deprecated.Description copied from interface:SynchronousTransformClientWorks out if it is possible to transform content of a given source mimetype and size into a target mimetype given a list of actual transform option names and values. Ideally, just call the transform method and catch the UnsupportedTransformationException to avoid extra work.- Specified by:
isSupportedin interfaceSynchronousTransformClient- Parameters:
sourceMimetype- the mimetype of the source contentsourceSizeInBytes- the size in bytes of the source content. Ignored if negative.contentUrl- The url of the content. Optional as it is only used in debug messages.targetMimetype- the mimetype of the targetactualOptions- the actual name value pairs available that could be passed to the Transform Service.transformName- (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.sourceNodeRef- (optional) NodeRef of the source content. Only used in debug messages.- Returns:
- true if it is supported.
-
transform
public void transform(ContentReader reader, ContentWriter writer, Map<String,String> actualOptions, String transformName, NodeRef sourceNodeRef)
Deprecated.Description copied from interface:SynchronousTransformClientRequests a synchronous transform.- Specified by:
transformin interfaceSynchronousTransformClient- Parameters:
reader- of the source contentwriter- to the target node's contentactualOptions- the actual name value pairs available that could be passed to the Transform Service.transformName- (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.sourceNodeRef- the source node
-
getName
public String getName()
Deprecated.- Specified by:
getNamein interfaceSynchronousTransformClient- Returns:
- type of transform (Local, Legacy) for use in debug.
-
-