org.alfresco.repo.content.transform
Class ContentTransformerRegistry
java.lang.Object
org.alfresco.repo.content.transform.ContentTransformerRegistry
public class ContentTransformerRegistry
- extends java.lang.Object
Holds and provides the most appropriate content transformer for
a particular source and target mimetype transformation request.
The transformers themselves are used to determine the applicability
of a particular transformation.
- See Also:
ContentTransformer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentTransformerRegistry
public ContentTransformerRegistry()
- Parameters:
mimetypeMap
- all the mimetypes available to the system
addTransformer
public void addTransformer(ContentTransformer transformer)
- Registers an individual transformer that can be queried to check for applicability.
- Parameters:
transformer
- a content transformer
getTransformer
public ContentTransformer getTransformer(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
- Gets the best transformer possible. This is a combination of the most reliable
and the most performant transformer.
getActiveTransformers
public java.util.List getActiveTransformers(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
- Since:
- 3.5
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.