Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.repo.content.transform
Class ContentTransformerRegistry
java.lang.Object
  org.alfresco.repo.content.transform.ContentTransformerRegistry

@org.alfresco.api.AlfrescoPublicApi
public class ContentTransformerRegistry
extends 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.

The actual selection of a transformer is done by the injected TransformerSelector.

Author:
Derek Hulley
See Also:
ContentTransformer

Constructor Summary
ContentTransformerRegistry(TransformerSelector transformerSelector)
Method Summary
void
addComponentTransformer(ContentTransformer transformer)
          Records a transformer that can NOT be queried for applicability, but may be included as a component of complex transformers.
void
addTransformer(ContentTransformer transformer)
          Registers an individual transformer that can be queried to check for applicability.
getActiveTransformers(String sourceMimetype, long sourceSize, String targetMimetype, TransformationOptions options)
getAllTransformers()
getTransformer(String transformerName)
          Returns a transformer identified by name.
getTransformer(String sourceMimetype, long sourceSize, String targetMimetype, TransformationOptions options)
          Gets the best transformer possible.
getTransformer(String sourceMimetype, String targetMimetype, TransformationOptions options)
          Deprecated. use overloaded version with sourceSize parameter.
getTransformers()
void
removeTransformer(ContentTransformer transformer)
          Removes a dynamically created transformer.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
ContentTransformerRegistry
public ContentTransformerRegistry(TransformerSelector transformerSelector)
Parameters:
transformerSelector - Transformer selector
Method Detail
addTransformer
public void addTransformer(ContentTransformer transformer)
Registers an individual transformer that can be queried to check for applicability.
Parameters:
transformer - a content transformer

addComponentTransformer
public void addComponentTransformer(ContentTransformer transformer)
Records a transformer that can NOT be queried for applicability, but may be included as a component of complex transformers.
Parameters:
transformer - a content transformer

removeTransformer
public void removeTransformer(ContentTransformer transformer)
Removes a dynamically created transformer.
Parameters:
transformer - to be removed.

getTransformers
public List<ContentTransformergetTransformers()
Returns:
a list of transformers that may be queried to check for applicability.

getAllTransformers
public List<ContentTransformergetAllTransformers()
Returns:
a list of all transformers, including those that only exist as a component of another transformer.

getTransformer
public ContentTransformer getTransformer(String transformerName)
Returns a transformer identified by name.
Throws:
IllegalArgumentException - if transformerName is not found.

getTransformer
public ContentTransformer getTransformer(String sourceMimetype,
                                         String targetMimetype,
                                         TransformationOptions options)
Deprecated. use overloaded version with sourceSize parameter.

getTransformer
public ContentTransformer getTransformer(String sourceMimetype,
                                         long sourceSize,
                                         String targetMimetype,
                                         TransformationOptions options)
Gets the best transformer possible. This is a combination of the most reliable and the most performant transformer.

getActiveTransformers
public List<ContentTransformergetActiveTransformers(String sourceMimetype,
                                                      long sourceSize,
                                                      String targetMimetype,
                                                      TransformationOptions options)
Since:
3.5

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2018 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.