public class ThumbnailServiceImpl extends DefaultComponent implements ThumbnailService
Modifier and Type | Field and Description |
---|---|
static String |
THUMBNAILFACTORY_EP |
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, unregisterExtension
public static final String THUMBNAILFACTORY_EP
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 ThumbnailFactory getDefaultFactory()
public Blob getThumbnail(DocumentModel doc, CoreSession session) throws ClientException
ThumbnailService
getThumbnail
in interface ThumbnailService
ClientException
public Blob computeThumbnail(DocumentModel doc, CoreSession session) throws ClientException
ThumbnailService
computeThumbnail
in interface ThumbnailService
ClientException
public ThumbnailFactory getThumbnailFactory(DocumentModel doc, CoreSession session) throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.