Class AutomationRenderer
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendition.extension.AutomationRenderer
-
-
Constructor Summary
Constructors Constructor Description AutomationRenderer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetFilenameWithExtension(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 givenRenditionDefinition.
-
-
-
Method Detail
-
render
public static List<Blob> render(DocumentModel doc, RenditionDefinition definition, CoreSession session)
Generate the rendition Blobs for a givenRenditionDefinition. Return is a List of Blob for bigger flexibility (typically HTML rendition with resources)- Parameters:
doc- the targetDocumentModeldefinition- theRenditionDefinitionto usesession- theCoreSessionto use- Returns:
- The list of Blobs
-
getFilenameWithExtension
public 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.- Parameters:
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 extension- Returns:
- the filename with the revised extension
- Since:
- 7.4
-
-