public interface DLPreviewRendererProvider
DLPreviewRenderer.
Implementations must specify at least one value for the OSGi property content.type, and can be called only for those supported content types. For
example, a DLPreviewRendererProvider that can provide previews for
PDF files would have the content type settings content.type=application/pdf and content.type=application/x-pdf.
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<DLPreviewRenderer> |
getPreviewDLPreviewRendererOptional(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
Returns the DL preview renderer responsible for rendering the file
preview.
|
java.util.Optional<DLPreviewRenderer> |
getThumbnailDLPreviewRendererOptional(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
Returns the DL preview renderer responsible for rendering the file
thumbnail in the card view.
|
java.util.Optional<DLPreviewRenderer> getPreviewDLPreviewRendererOptional(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
fileVersion - the file version to previewjava.util.Optional<DLPreviewRenderer> getThumbnailDLPreviewRendererOptional(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
fileVersion - the file version to preview