Package org.opencms.cmis
Interface I_CmsCmisRenditionProvider
public interface I_CmsCmisRenditionProvider
Rendition provider interface used to generate alternative renditions for resources.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getContent(CmsObject cms, CmsResource resource) Gets the rendition content stream for the resource.getId()Gets the rendition stream id.getKind()Gets the rendition kind.Gets the rendition mimetype.org.apache.chemistry.opencmis.commons.data.RenditionDatagetRendition(CmsObject cms, CmsResource resource) Gets the rendition data for a resource.
-
Method Details
-
getContent
Gets the rendition content stream for the resource.- Parameters:
cms- the CMS contextresource- 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 contextresource- the resource- Returns:
- the rendition data for the resource
-