Package org.nuxeo.ecm.core.api.thumbnail
Class ThumbnailServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.core.api.thumbnail.ThumbnailServiceImpl
- All Implemented Interfaces:
ThumbnailService
,Adaptable
,Component
,Extensible
,TimestampedService
Thumbnail service providing 3 kind of factories: by facet, by doctype, and thumbnail default one
- Since:
- 5.7
-
Field Summary
Modifier and TypeFieldDescriptionprotected ThumbnailFactory
protected final Map<String,
ThumbnailFactory> protected final Map<String,
ThumbnailFactory> static final String
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeThumbnail
(DocumentModel doc, CoreSession session) Compute the thumbnail (related to the document type/facet)getThumbnail
(DocumentModel doc, CoreSession session) Get the document thumbnail (related to the doc type/facet)getThumbnailFactory
(DocumentModel doc, CoreSession session) void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) void
unregisterContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
THUMBNAILFACTORY_EP
- See Also:
-
defaultFactory
-
factoriesByDocType
-
factoriesByFacets
-
-
Constructor Details
-
ThumbnailServiceImpl
public ThumbnailServiceImpl()
-
-
Method Details
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContribution
in classDefaultComponent
-
getFactoryByDocTypeNames
-
getFactoryByFacetNames
-
getDefaultFactory
-
getThumbnail
Description copied from interface:ThumbnailService
Get the document thumbnail (related to the doc type/facet)- Specified by:
getThumbnail
in interfaceThumbnailService
-
computeThumbnail
Description copied from interface:ThumbnailService
Compute the thumbnail (related to the document type/facet)- Specified by:
computeThumbnail
in interfaceThumbnailService
-
getThumbnailFactory
-