Interface StoredRenditionManager
-
- All Known Implementing Classes:
DefaultStoredRenditionManager
public interface StoredRenditionManagerManagesStoredRenditions on behalf of theRenditionService.- Since:
- 8.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StoredRenditioncreateStoredRendition(DocumentModel liveDocument, DocumentModel versionDocument, Blob renditionBlob, RenditionDefinition renditionDefinition)Creates aStoredRenditionfor the live document or the version document if provided.StoredRenditionfindStoredRendition(DocumentModel sourceDocument, RenditionDefinition renditionDefinition)Finds theStoredRenditionassociated with aDocumentModel.
-
-
-
Method Detail
-
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
-
-