Interface StoredRenditionManager
- All Known Implementing Classes:
DefaultStoredRenditionManager
public interface StoredRenditionManager
Manages
StoredRendition
s on behalf of the RenditionService
.- Since:
- 8.1
-
Method Summary
Modifier and TypeMethodDescriptioncreateStoredRendition
(DocumentModel liveDocument, DocumentModel versionDocument, Blob renditionBlob, RenditionDefinition renditionDefinition) Creates aStoredRendition
for the live document or the version document if provided.findStoredRendition
(DocumentModel sourceDocument, RenditionDefinition renditionDefinition) Finds theStoredRendition
associated with aDocumentModel
.
-
Method Details
-
createStoredRendition
StoredRendition createStoredRendition(DocumentModel liveDocument, DocumentModel versionDocument, Blob renditionBlob, RenditionDefinition renditionDefinition) Creates aStoredRendition
for the live document or the version document if provided.- Parameters:
liveDocument
- the live documentversionDocument
- the version documentrenditionBlob
- the rendition blobrenditionDefinition
- the rendition definition- Returns:
- the created stored rendition
-
findStoredRendition
StoredRendition findStoredRendition(DocumentModel sourceDocument, RenditionDefinition renditionDefinition) Finds theStoredRendition
associated with aDocumentModel
.- Parameters:
sourceDocument
- the source documentrenditionDefinition
- the rendition definition- Returns:
- the found stored rendition, or
null
if not found
-