public class ThumbnailServiceImpl extends DefaultComponent implements ThumbnailService
Modifier and Type | Field and Description |
---|---|
protected static ThumbnailFactory |
defaultFactory |
protected static Map<String,ThumbnailFactory> |
factoriesByDocType |
protected static Map<String,ThumbnailFactory> |
factoriesByFacets |
static String |
THUMBNAILFACTORY_EP |
lastModified
Constructor and Description |
---|
ThumbnailServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Blob |
computeThumbnail(DocumentModel doc,
CoreSession session)
Compute the thumbnail (related to the document type/facet)
|
ThumbnailFactory |
getDefaultFactory() |
Set<String> |
getFactoryByDocTypeNames() |
Set<String> |
getFactoryByFacetNames() |
Blob |
getThumbnail(DocumentModel doc,
CoreSession session)
Get the document thumbnail (related to the doc type/facet)
|
ThumbnailFactory |
getThumbnailFactory(DocumentModel doc,
CoreSession session) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
public static final String THUMBNAILFACTORY_EP
protected static ThumbnailFactory defaultFactory
protected static final Map<String,ThumbnailFactory> factoriesByDocType
protected static final Map<String,ThumbnailFactory> factoriesByFacets
public ThumbnailServiceImpl()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public Set<String> getFactoryByDocTypeNames()
public Set<String> getFactoryByFacetNames()
public ThumbnailFactory getDefaultFactory()
public Blob getThumbnail(DocumentModel doc, CoreSession session)
ThumbnailService
getThumbnail
in interface ThumbnailService
public Blob computeThumbnail(DocumentModel doc, CoreSession session)
ThumbnailService
computeThumbnail
in interface ThumbnailService
public ThumbnailFactory getThumbnailFactory(DocumentModel doc, CoreSession session)
Copyright © 2015 Nuxeo SA. All rights reserved.