|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.content.transform.ContentTransformerHelper
org.alfresco.repo.content.transform.AbstractContentTransformer2
org.alfresco.repo.content.transform.ComplexContentTransformer
public class ComplexContentTransformer
Transformer that passes a document through several nested transformations in order to accomplish its goal.
| Constructor Summary | |
|---|---|
ComplexContentTransformer()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Ensures that required properties have been set |
boolean |
isTransformable(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
Check we can transform all the way along the chain of mimetypes |
void |
setIntermediateMimetypes(java.util.List intermediateMimetypes)
Set the intermediate mimetypes that the transformer must take the content through. |
void |
setTransformers(java.util.List transformers)
The list of transformers to use. |
void |
transformInternal(org.alfresco.service.cmr.repository.ContentReader reader,
org.alfresco.service.cmr.repository.ContentWriter writer,
TransformationOptions options)
Method to be implemented by subclasses wishing to make use of the common infrastructural code provided by this class. |
| Methods inherited from class org.alfresco.repo.content.transform.AbstractContentTransformer2 |
|---|
checkTransformable, getTransformationTime, recordTime, register, setRegistry, toString, transform, transform, transform |
| Methods inherited from class org.alfresco.repo.content.transform.ContentTransformerHelper |
|---|
getMimetype, getMimetypeService, isExplicitTransformation, setExplicitTransformations, setMimetypeService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.alfresco.repo.content.transform.ContentTransformer |
|---|
isExplicitTransformation |
| Constructor Detail |
|---|
public ComplexContentTransformer()
| Method Detail |
|---|
public void setTransformers(java.util.List transformers)
If a single transformer is supplied, then it will still be used.
transformers - list of at least one transformerpublic void setIntermediateMimetypes(java.util.List intermediateMimetypes)
transformers taking part in the
transformation.
intermediateMimetypes - intermediate mimetypes to transition the content
through.
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
public boolean isTransformable(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
isTransformable in interface ContentTransformersourceMimetype - the source mimetypeoptions - the transformation options
ContentTransformer.isTransformable(java.lang.String, java.lang.String, org.alfresco.service.cmr.repository.TransformationOptions)
public void transformInternal(org.alfresco.service.cmr.repository.ContentReader reader,
org.alfresco.service.cmr.repository.ContentWriter writer,
TransformationOptions options)
throws java.lang.Exception
AbstractContentTransformer2
transformInternal in class AbstractContentTransformer2reader - the source of the content to transformwriter - the target to which to write the transformed contentoptions - a map of options to use when performing the transformation. The map
will never be null.
java.lang.Exception - exceptions will be handled by this class - subclasses can throw anythingAbstractContentTransformer2.transformInternal(org.alfresco.service.cmr.repository.ContentReader, org.alfresco.service.cmr.repository.ContentWriter, org.alfresco.service.cmr.repository.TransformationOptions)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||