public class DefaultAutomationRenditionProvider extends Object implements RenditionProvider
| Modifier and Type | Field and Description | 
|---|---|
static String | 
VARIANT_POLICY_USER  | 
| Constructor and Description | 
|---|
DefaultAutomationRenditionProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getVariant(DocumentModel doc,
          RenditionDefinition definition)
Gets the optional  
RENDITION_VARIANT_PROPERTY value for a given RenditionDefinition. | 
boolean | 
isAvailable(DocumentModel doc,
           RenditionDefinition def)
Test if the Rendition is available on the given DocumentModel 
 | 
List<Blob> | 
render(DocumentModel doc,
      RenditionDefinition definition)
Generate the rendition Blobs for a given  
RenditionDefinition. | 
public static final String VARIANT_POLICY_USER
public DefaultAutomationRenditionProvider()
public boolean isAvailable(DocumentModel doc, RenditionDefinition def)
RenditionProviderisAvailable in interface RenditionProviderpublic List<Blob> render(DocumentModel doc, RenditionDefinition definition)
RenditionProviderRenditionDefinition. Return is a List of Blob for bigger
 flexibility (typically HTML rendition with resources)render in interface RenditionProviderdoc - the target DocumentModeldefinition - the RenditionDefinition to usepublic String getVariant(DocumentModel doc, RenditionDefinition definition)
RENDITION_VARIANT_PROPERTY value for a given RenditionDefinition.getVariant in interface RenditionProviderdoc - the target documentdefinition - the rendition definition to useRENDITION_VARIANT_PROPERTY value, or nullCopyright © 2019 Nuxeo. All rights reserved.