public class AutomationRenderer extends Object
| Constructor and Description |
|---|
AutomationRenderer() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getFilenameWithExtension(String filename,
String mimeType,
String defaultExtension)
Generate a revised filename whose extension is either based on the supplied mimeType if applicable or the
supplied default extension.
|
static List<Blob> |
render(DocumentModel doc,
RenditionDefinition definition,
CoreSession session)
Generate the rendition Blobs for a given
RenditionDefinition. |
public AutomationRenderer()
public static List<Blob> render(DocumentModel doc, RenditionDefinition definition, CoreSession session)
RenditionDefinition. Return is a List of Blob for bigger
flexibility (typically HTML rendition with resources)doc - the target DocumentModeldefinition - the RenditionDefinition to usesession - the CoreSession to usepublic static String getFilenameWithExtension(String filename, String mimeType, String defaultExtension)
filename - the filename to usemimeType - the mimeType from which the assigned extension is deriveddefaultExtension - the default extension to be assigned if the mimeType has no corresponding extensionCopyright © 2019 Nuxeo. All rights reserved.