public class DefaultStoredRenditionManager extends Object implements StoredRenditionManager
StoredRenditions on behalf of the
RenditionService.| Constructor and Description |
|---|
DefaultStoredRenditionManager() |
| Modifier and Type | Method and Description |
|---|---|
StoredRendition |
createStoredRendition(DocumentModel liveDocument,
DocumentModel versionDocument,
Blob renditionBlob,
RenditionDefinition renditionDefinition)
Creates a
StoredRendition for the live document or the version document if provided. |
StoredRendition |
findStoredRendition(DocumentModel sourceDocument,
RenditionDefinition renditionDefinition)
Finds the
StoredRendition associated with a DocumentModel. |
protected StoredRendition |
toStoredRendition(DocumentModel storedDoc,
RenditionDefinition def,
String sessionId)
Wraps the re-attached stored document in a
StoredRendition. |
public DefaultStoredRenditionManager()
public StoredRendition createStoredRendition(DocumentModel liveDocument, DocumentModel versionDocument, Blob renditionBlob, RenditionDefinition renditionDefinition)
StoredRenditionManagerStoredRendition for the live document or the version document if provided.createStoredRendition in interface StoredRenditionManagerliveDocument - the live documentversionDocument - the version documentrenditionBlob - the rendition blobrenditionDefinition - the rendition definitionpublic StoredRendition findStoredRendition(DocumentModel sourceDocument, RenditionDefinition renditionDefinition)
StoredRenditionManagerStoredRendition associated with a DocumentModel.findStoredRendition in interface StoredRenditionManagersourceDocument - the source documentrenditionDefinition - the rendition definitionnull if not foundprotected StoredRendition toStoredRendition(DocumentModel storedDoc, RenditionDefinition def, String sessionId)
StoredRendition.storedDoc - the stored documentdef - the rendition definitionsessionId - the session idCopyright © 2016 Nuxeo SA. All rights reserved.