transform
void transform(org.alfresco.service.cmr.repository.ContentReader reader,
org.alfresco.service.cmr.repository.ContentWriter writer,
java.util.Map<java.lang.String,java.lang.String> transformOptions,
java.lang.String renditionName,
org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
throws UnsupportedTransformationException,
org.alfresco.service.cmr.repository.ContentIOException
Requests a synchronous transform.
- Parameters:
reader - of the source content
writer - to the target node's content
transformOptions - 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.
sourceNodeRef - the source node
- Throws:
UnsupportedTransformationException - if there is an unexpected failure to transform, normally in a
pipeline, where an intermediate transform may not be performed after all because an intermediate
converion is too big.
org.alfresco.service.cmr.repository.ContentIOException - there is an unexpected communication or transformation failure.