Package org.alfresco.repo.rendition2
Class AbstractTransformServiceRegistry
- java.lang.Object
-
- org.alfresco.repo.rendition2.AbstractTransformServiceRegistry
-
- All Implemented Interfaces:
TransformServiceRegistry
- Direct Known Subclasses:
LegacyTransformServiceRegistry,SwitchingTransformServiceRegistry
public abstract class AbstractTransformServiceRegistry extends java.lang.Object implements TransformServiceRegistry
Contains common code used in TransformServiceRegistries.- Author:
- adavis
-
-
Constructor Summary
Constructors Constructor Description AbstractTransformServiceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSupported(java.lang.String sourceMimetype, long size, java.lang.String targetMimetype, java.util.Map<java.lang.String,java.lang.String> options, java.lang.String renditionName)Works out if the Transform Server should be able to transform content of a given source mimetype and size into a target mimetype given a list of actual transform option names and values (Strings) plus the data contained in the objects registered with this class.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.transform.client.model.config.TransformServiceRegistry
getMaxSize
-
-
-
-
Method Detail
-
isSupported
public boolean isSupported(java.lang.String sourceMimetype, long size, java.lang.String targetMimetype, java.util.Map<java.lang.String,java.lang.String> options, java.lang.String renditionName)Description copied from interface:TransformServiceRegistryWorks out if the Transform Server should be able to transform content of a given source mimetype and size into a target mimetype given a list of actual transform option names and values (Strings) plus the data contained in the objects registered with this class.- Specified by:
isSupportedin interfaceTransformServiceRegistry- Parameters:
sourceMimetype- the mimetype of the source contentsize- the size in bytes of the source content. Ignored if negative.targetMimetype- 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.
-
-