Interface StoredRenditionManager

All Known Implementing Classes:
DefaultStoredRenditionManager

public interface StoredRenditionManager
Manages StoredRenditions on behalf of the RenditionService.
Since:
8.1
  • Method Details

    • createStoredRendition

      StoredRendition createStoredRendition(DocumentModel liveDocument, DocumentModel versionDocument, Blob renditionBlob, RenditionDefinition renditionDefinition)
      Creates a StoredRendition for the live document or the version document if provided.
      Parameters:
      liveDocument - the live document
      versionDocument - the version document
      renditionBlob - the rendition blob
      renditionDefinition - the rendition definition
      Returns:
      the created stored rendition
    • findStoredRendition

      StoredRendition findStoredRendition(DocumentModel sourceDocument, RenditionDefinition renditionDefinition)
      Finds the StoredRendition associated with a DocumentModel.
      Parameters:
      sourceDocument - the source document
      renditionDefinition - the rendition definition
      Returns:
      the found stored rendition, or null if not found