Interface StoredRenditionManager
- All Known Implementing Classes:
DefaultStoredRenditionManager
public interface StoredRenditionManager
Manages
StoredRenditions on behalf of the RenditionService.- Since:
- 8.1
-
Method Summary
Modifier and TypeMethodDescriptioncreateStoredRendition(DocumentModel liveDocument, DocumentModel versionDocument, Blob renditionBlob, RenditionDefinition renditionDefinition) Creates aStoredRenditionfor the live document or the version document if provided.findStoredRendition(DocumentModel sourceDocument, RenditionDefinition renditionDefinition) Finds theStoredRenditionassociated with aDocumentModel.
-
Method Details
-
createStoredRendition
StoredRendition createStoredRendition(DocumentModel liveDocument, DocumentModel versionDocument, Blob renditionBlob, RenditionDefinition renditionDefinition) Creates aStoredRenditionfor 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 theStoredRenditionassociated with aDocumentModel.- Parameters:
sourceDocument- the source documentrenditionDefinition- the rendition definition- Returns:
- the found stored rendition, or
nullif not found
-