Interface I_CmsCmisRenditionProvider


Rendition provider interface used to generate alternative renditions for resources.

  • Method Details

    • getContent

      byte[] getContent(CmsObject cms, CmsResource resource)
      Gets the rendition content stream for the resource.

      Parameters:
      cms - the CMS context
      resource - the resource
      Returns:
      the content stream for the rendition of the resource
    • getId

      Gets the rendition stream id.

      Returns:
      the rendition stream id
    • getKind

      Gets the rendition kind.

      Returns:
      the rendition kind
    • getMimeType

      Gets the rendition mimetype.

      Returns:
      the rendition mimetype
    • getRendition

      org.apache.chemistry.opencmis.commons.data.RenditionData getRendition(CmsObject cms, CmsResource resource)
      Gets the rendition data for a resource.

      This method may return null to signal that a rendition can not be generated for the resource.

      Parameters:
      cms - the current CMS context
      resource - the resource
      Returns:
      the rendition data for the resource