public class AutomationLazyRenditionProvider extends AbstractLazyCachableRenditionProvider
CACHE_NAME, log, WORKERID_KEY
Constructor and Description |
---|
AutomationLazyRenditionProvider() |
Modifier and Type | Method and Description |
---|---|
protected Work |
getRenditionWork(String key,
DocumentModel doc,
RenditionDefinition def)
|
boolean |
isAvailable(DocumentModel doc,
RenditionDefinition def)
Test if the Rendition is available on the given DocumentModel
|
protected boolean |
perUserRendition()
Define if rendition caching key should include the user login
|
buildRenditionKey, getDigest, render, toHexString
public AutomationLazyRenditionProvider()
public boolean isAvailable(DocumentModel doc, RenditionDefinition def)
RenditionProvider
protected boolean perUserRendition()
AbstractLazyCachableRenditionProvider
perUserRendition
in class AbstractLazyCachableRenditionProvider
protected Work getRenditionWork(String key, DocumentModel doc, RenditionDefinition def)
AbstractLazyCachableRenditionProvider
Work
that will compute the Rendition
. AbstractRenditionBuilderWork
can be used
as a base classgetRenditionWork
in class AbstractLazyCachableRenditionProvider
key
- the key used to renditiondoc
- the target DocumentModel
def
- the RenditionDefinition
Copyright © 2015 Nuxeo SA. All rights reserved.