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 Classes Modifier and Type Class Description protected classThumbnailRegistry.RegistryLifecycleDeprecated.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
Fields Modifier and Type Field Description protected RenditionServicerenditionServiceDeprecated.Rendition serviceprotected TenantAdminServicetenantAdminServiceDeprecated.protected TransactionServicetransactionServiceDeprecated.Transaction service
-
Constructor Summary
Constructors Constructor Description ThumbnailRegistry()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddThumbnailDefinition(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.ThumbnailDefinitiongetThumbnailDefinition(String thumbnailName)Deprecated.Get the definition of a named thumbnailList<ThumbnailDefinition>getThumbnailDefinitions()Deprecated.Get a list of all the thumbnail definitionsList<ThumbnailDefinition>getThumbnailDefinitions(String mimetype)Deprecated.use overloaded version with sourceSize parameter.List<ThumbnailDefinition>getThumbnailDefinitions(String mimetype, long sourceSize)Deprecated.ThumbnailRenditionConvertorgetThumbnailRenditionConvertor()Deprecated.List<ThumbnailDefinition>getThumnailDefintions(String mimetype)Deprecated.UsegetThumbnailDefinitions(String)instead.voidinitThumbnailDefinitions()Deprecated.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.client.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.client.registry.TransformServiceRegistry transformServiceRegistry)Deprecated.
-
-
-
Field Detail
-
transactionService
protected TransactionService transactionService
Deprecated.Transaction service
-
renditionService
protected RenditionService renditionService
Deprecated.Rendition service
-
tenantAdminService
protected TenantAdminService tenantAdminService
Deprecated.
-
-
Method Detail
-
setThumbnailRenditionConvertor
public void setThumbnailRenditionConvertor(ThumbnailRenditionConvertor thumbnailRenditionConvertor)
Deprecated.
-
getThumbnailRenditionConvertor
public ThumbnailRenditionConvertor getThumbnailRenditionConvertor()
Deprecated.
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
Deprecated.Transaction service- Parameters:
transactionService- transaction service
-
setRenditionService
public void setRenditionService(RenditionService renditionService)
Deprecated.Rendition service- Parameters:
renditionService- rendition service
-
setTenantAdminService
public void setTenantAdminService(TenantAdminService tenantAdminService)
Deprecated.
-
setRedeployStaticDefsOnStartup
public void setRedeployStaticDefsOnStartup(boolean redeployStaticDefsOnStartup)
Deprecated.
-
setJobLockService
public void setJobLockService(JobLockService jobLockService)
Deprecated.
-
setTransformServiceRegistry
public void setTransformServiceRegistry(org.alfresco.transform.client.registry.TransformServiceRegistry transformServiceRegistry)
Deprecated.
-
setLocalTransformServiceRegistry
public void setLocalTransformServiceRegistry(org.alfresco.transform.client.registry.TransformServiceRegistry localTransformServiceRegistry)
Deprecated.
-
setConverter
public void setConverter(TransformationOptionsConverter converter)
Deprecated.
-
setRenditionDefinitionRegistry2
public void setRenditionDefinitionRegistry2(RenditionDefinitionRegistry2 renditionDefinitionRegistry2)
Deprecated.
-
setThumbnailDefinitions
public void setThumbnailDefinitions(List<ThumbnailDefinition> thumbnailDefinitions)
Deprecated.This method is used to inject the thumbnail definitions.
-
initThumbnailDefinitions
public void initThumbnailDefinitions()
Deprecated.
-
getThumbnailDefinitions
public List<ThumbnailDefinition> getThumbnailDefinitions()
Deprecated.Get a list of all the thumbnail definitions- Returns:
- collection of thumbnail definitions
-
getThumbnailDefinitions
public List<ThumbnailDefinition> getThumbnailDefinitions(String mimetype)
Deprecated.use overloaded version with sourceSize parameter.
-
getThumbnailDefinitions
public List<ThumbnailDefinition> getThumbnailDefinitions(String mimetype, long sourceSize)
Deprecated.
-
getThumnailDefintions
@Deprecated public List<ThumbnailDefinition> getThumnailDefintions(String mimetype)
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
public long getMaxSourceSizeBytes(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.- 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
public void addThumbnailDefinition(ThumbnailDefinition thumbnailDetails)
Deprecated.Add a thumbnail details- Parameters:
thumbnailDetails- thumbnail details
-
getThumbnailDefinition
public ThumbnailDefinition getThumbnailDefinition(String thumbnailName)
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.BeansExceptionDeprecated.- 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.
-
-