public class DefaultStoredRenditionManager extends Object implements StoredRenditionManager
StoredRendition
s 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)
StoredRenditionManager
StoredRendition
for the live document or the version document if provided.createStoredRendition
in interface StoredRenditionManager
liveDocument
- the live documentversionDocument
- the version documentrenditionBlob
- the rendition blobrenditionDefinition
- the rendition definitionpublic StoredRendition findStoredRendition(DocumentModel sourceDocument, RenditionDefinition renditionDefinition)
StoredRenditionManager
StoredRendition
associated with a DocumentModel
.findStoredRendition
in interface StoredRenditionManager
sourceDocument
- 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.