Package com.flowable.rendition
Class DefaultContentRenditionManager
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<JobServiceConfiguration>
-
- org.flowable.job.service.impl.ServiceImpl
-
- com.flowable.rendition.DefaultContentRenditionManager
-
- All Implemented Interfaces:
ContentRenditionManager
public class DefaultContentRenditionManager extends ServiceImpl implements ContentRenditionManager
- Author:
- Yvo Swillens
-
-
Field Summary
Fields Modifier and Type Field Description protected List<RenditionConverter>
contentConverters
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
-
Constructor Summary
Constructors Constructor Description DefaultContentRenditionManager(List<RenditionConverter> contentConverters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentRendition
createPdfRendition(String name, InputStream inputStream)
ContentRendition
createThumbnailRendition(String name, InputStream inputStream)
protected String
getMediaSubType(String name, InputStream inputStream)
String
getMediaType(String name, InputStream inputStream)
String
getPdfRenditionDefaultMimeType()
String
getThumbnailRenditionDefaultMimeType()
protected RenditionConverter
handleTypeConversions(String mimeType)
boolean
isPdfRenditionSupported(String mimeType)
boolean
isThumbnailRenditionSupported(String mimeType)
-
Methods inherited from class org.flowable.job.service.impl.ServiceImpl
getCommandExecutor, getDeadLetterJobEntityManager, getEventDispatcher, getExternalWorkerJobEntityManager, getHistoryJobEntityManager, getJobEntityManager, getJobManager, getSuspendedJobEntityManager, getTimerJobEntityManager
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
-
-
-
Field Detail
-
contentConverters
protected List<RenditionConverter> contentConverters
-
-
Constructor Detail
-
DefaultContentRenditionManager
public DefaultContentRenditionManager(List<RenditionConverter> contentConverters)
-
-
Method Detail
-
createPdfRendition
public ContentRendition createPdfRendition(String name, InputStream inputStream)
- Specified by:
createPdfRendition
in interfaceContentRenditionManager
-
createThumbnailRendition
public ContentRendition createThumbnailRendition(String name, InputStream inputStream)
- Specified by:
createThumbnailRendition
in interfaceContentRenditionManager
-
isPdfRenditionSupported
public boolean isPdfRenditionSupported(String mimeType)
- Specified by:
isPdfRenditionSupported
in interfaceContentRenditionManager
-
isThumbnailRenditionSupported
public boolean isThumbnailRenditionSupported(String mimeType)
- Specified by:
isThumbnailRenditionSupported
in interfaceContentRenditionManager
-
getPdfRenditionDefaultMimeType
public String getPdfRenditionDefaultMimeType()
- Specified by:
getPdfRenditionDefaultMimeType
in interfaceContentRenditionManager
-
getThumbnailRenditionDefaultMimeType
public String getThumbnailRenditionDefaultMimeType()
- Specified by:
getThumbnailRenditionDefaultMimeType
in interfaceContentRenditionManager
-
handleTypeConversions
protected RenditionConverter handleTypeConversions(String mimeType)
-
getMediaType
public String getMediaType(String name, InputStream inputStream)
- Specified by:
getMediaType
in interfaceContentRenditionManager
-
getMediaSubType
protected String getMediaSubType(String name, InputStream inputStream)
-
-