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