Package org.alfresco.repo.thumbnail
Class ThumbnailRegistry
java.lang.Object
org.alfresco.repo.thumbnail.ThumbnailRegistry
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
@Deprecated
public class ThumbnailRegistry
extends Object
implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
Deprecated.
The thumbnails code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
Registry of all the thumbnail details available
- Author:
- Roy Wetherall, Neil McErlean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classDeprecated.This class hooks in to the spring application lifecycle and ensures that any ThumbnailDefinitions injected by spring are converted to RenditionDefinitions and saved. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RenditionServiceDeprecated.Rendition serviceprotected TenantAdminServiceDeprecated.protected TransactionServiceDeprecated.Transaction service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddThumbnailDefinition(ThumbnailDefinition thumbnailDetails) Deprecated.Add a thumbnail detailslonggetMaxSourceSizeBytes(String sourceMimetype, ThumbnailDefinition thumbnailDefinition) Deprecated.Returns the maximum source size of any content that may transformed between the supplied sourceMimetype and thumbnailDefinition's targetMimetype using its transformation options.getThumbnailDefinition(String thumbnailName) Deprecated.Get the definition of a named thumbnailDeprecated.Get a list of all the thumbnail definitionsgetThumbnailDefinitions(String mimetype) Deprecated.use overloaded version with sourceSize parameter.getThumbnailDefinitions(String mimetype, long sourceSize) Deprecated.Deprecated.getThumnailDefintions(String mimetype) Deprecated.UsegetThumbnailDefinitions(String)instead.voidDeprecated.booleanisThumbnailDefinitionAvailable(String sourceUrl, String sourceMimeType, long sourceSize, ThumbnailDefinition thumbnailDefinition) Deprecated.Checks to see if at this moment in time, the specifiedThumbnailDefinitionis able to thumbnail the source mimetype.booleanisThumbnailDefinitionAvailable(String sourceUrl, String sourceMimetype, long sourceSize, NodeRef sourceNodeRef, ThumbnailDefinition thumbnailDefinition) Deprecated.Checks to see if at this moment in time, the specifiedThumbnailDefinitionis able to thumbnail the source mimetype.voidonApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) Deprecated.protected booleanredeploy()Deprecated.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Deprecated.voidsetConverter(TransformationOptionsConverter converter) Deprecated.voidsetJobLockService(JobLockService jobLockService) Deprecated.voidsetLocalTransformServiceRegistry(org.alfresco.transform.registry.TransformServiceRegistry localTransformServiceRegistry) Deprecated.voidsetRedeployStaticDefsOnStartup(boolean redeployStaticDefsOnStartup) Deprecated.voidsetRenditionDefinitionRegistry2(RenditionDefinitionRegistry2 renditionDefinitionRegistry2) Deprecated.voidsetRenditionService(RenditionService renditionService) Deprecated.Rendition servicevoidsetTenantAdminService(TenantAdminService tenantAdminService) Deprecated.voidsetThumbnailDefinitions(List<ThumbnailDefinition> thumbnailDefinitions) Deprecated.This method is used to inject the thumbnail definitions.voidsetThumbnailRenditionConvertor(ThumbnailRenditionConvertor thumbnailRenditionConvertor) Deprecated.voidsetTransactionService(TransactionService transactionService) Deprecated.Transaction servicevoidsetTransformServiceRegistry(org.alfresco.transform.registry.TransformServiceRegistry transformServiceRegistry) Deprecated.
-
Field Details
-
transactionService
Deprecated.Transaction service -
renditionService
Deprecated.Rendition service -
tenantAdminService
Deprecated.
-
-
Constructor Details
-
ThumbnailRegistry
public ThumbnailRegistry()Deprecated.
-
-
Method Details
-
setThumbnailRenditionConvertor
Deprecated. -
getThumbnailRenditionConvertor
Deprecated. -
setTransactionService
Deprecated.Transaction service- Parameters:
transactionService- transaction service
-
setRenditionService
Deprecated.Rendition service- Parameters:
renditionService- rendition service
-
setTenantAdminService
Deprecated. -
setRedeployStaticDefsOnStartup
public void setRedeployStaticDefsOnStartup(boolean redeployStaticDefsOnStartup) Deprecated. -
setJobLockService
Deprecated. -
setTransformServiceRegistry
public void setTransformServiceRegistry(org.alfresco.transform.registry.TransformServiceRegistry transformServiceRegistry) Deprecated. -
setLocalTransformServiceRegistry
public void setLocalTransformServiceRegistry(org.alfresco.transform.registry.TransformServiceRegistry localTransformServiceRegistry) Deprecated. -
setConverter
Deprecated. -
setRenditionDefinitionRegistry2
public void setRenditionDefinitionRegistry2(RenditionDefinitionRegistry2 renditionDefinitionRegistry2) Deprecated. -
setThumbnailDefinitions
Deprecated.This method is used to inject the thumbnail definitions. -
initThumbnailDefinitions
public void initThumbnailDefinitions()Deprecated. -
getThumbnailDefinitions
Deprecated.Get a list of all the thumbnail definitions- Returns:
- collection of thumbnail definitions
-
getThumbnailDefinitions
Deprecated.use overloaded version with sourceSize parameter. -
getThumbnailDefinitions
Deprecated. -
getThumnailDefintions
Deprecated.UsegetThumbnailDefinitions(String)instead.- Parameters:
mimetype- String
-
isThumbnailDefinitionAvailable
public boolean isThumbnailDefinitionAvailable(String sourceUrl, String sourceMimetype, long sourceSize, NodeRef sourceNodeRef, ThumbnailDefinition thumbnailDefinition) Deprecated.Checks to see if at this moment in time, the specifiedThumbnailDefinitionis able to thumbnail the source mimetype. Typically used with Thumbnail Definitions retrieved by name, and/or when dealing with transientContentTransformers.- Parameters:
sourceUrl- The URL of the source (optional)sourceMimetype- The source mimetypesourceSize- the size (in bytes) of the source. Use -1 if unknown.sourceNodeRef- which is set in a copy of the thumbnailDefinition transformation options, so that it may be used by transformers and debug.thumbnailDefinition- TheThumbnailDefinitionto check for
-
isThumbnailDefinitionAvailable
public boolean isThumbnailDefinitionAvailable(String sourceUrl, String sourceMimeType, long sourceSize, ThumbnailDefinition thumbnailDefinition) Deprecated.Checks to see if at this moment in time, the specifiedThumbnailDefinitionis able to thumbnail the source mimetype. Typically used with Thumbnail Definitions retrieved by name, and/or when dealing with transientContentTransformers.- Parameters:
sourceUrl- The URL of the source (optional)sourceMimeType- The source mimetypesourceSize- the size (in bytes) of the source. Use -1 if unknown.thumbnailDefinition- TheThumbnailDefinitionto check for
-
getMaxSourceSizeBytes
Deprecated.Returns the maximum source size of any content that may transformed between the supplied sourceMimetype and thumbnailDefinition's targetMimetype using its transformation options.- Parameters:
sourceMimetype- StringthumbnailDefinition- ThumbnailDefinition- Returns:
- 0 if there are no transformers, -1 if there is no limit or if positive the size in bytes.
-
addThumbnailDefinition
Deprecated.Add a thumbnail details- Parameters:
thumbnailDetails- thumbnail details
-
getThumbnailDefinition
Deprecated.Get the definition of a named thumbnail- Parameters:
thumbnailName- the thumbnail name- Returns:
- ThumbnailDetails the details of the thumbnail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException Deprecated.- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) Deprecated.- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
-
redeploy
protected boolean redeploy()Deprecated.
-