Package org.alfresco.repo.thumbnail
Class ThumbnailRegistry
- java.lang.Object
-
- org.alfresco.repo.thumbnail.ThumbnailRegistry
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
@Deprecated public class ThumbnailRegistry extends java.lang.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(java.lang.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(java.lang.String thumbnailName)Deprecated.Get the definition of a named thumbnailjava.util.List<ThumbnailDefinition>getThumbnailDefinitions()Deprecated.Get a list of all the thumbnail definitionsjava.util.List<ThumbnailDefinition>getThumbnailDefinitions(java.lang.String mimetype)Deprecated.use overloaded version with sourceSize parameter.java.util.List<ThumbnailDefinition>getThumbnailDefinitions(java.lang.String mimetype, long sourceSize)Deprecated.java.util.List<ThumbnailDefinition>getThumbnailDefinitions(java.lang.String sourceUrl, java.lang.String mimetype, long sourceSize)Deprecated.ThumbnailRenditionConvertorgetThumbnailRenditionConvertor()Deprecated.java.util.List<ThumbnailDefinition>getThumnailDefintions(java.lang.String mimetype)Deprecated.UsegetThumbnailDefinitions(String)instead.voidinitThumbnailDefinitions()Deprecated.booleanisThumbnailDefinitionAvailable(java.lang.String sourceUrl, java.lang.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(java.lang.String sourceUrl, java.lang.String sourceMimetype, long sourceSize, org.alfresco.service.cmr.repository.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.voidsetContentService(ContentService contentService)Deprecated.Content servicevoidsetJobLockService(JobLockService jobLockService)Deprecated.voidsetRedeployStaticDefsOnStartup(boolean redeployStaticDefsOnStartup)Deprecated.voidsetRenditionDefinitionRegistry2(RenditionDefinitionRegistry2 renditionDefinitionRegistry2)Deprecated.voidsetRenditionService(RenditionService renditionService)Deprecated.Rendition servicevoidsetTenantAdminService(TenantAdminService tenantAdminService)Deprecated.voidsetThumbnailDefinitions(java.util.List<ThumbnailDefinition> thumbnailDefinitions)Deprecated.This method is used to inject the thumbnail definitions.voidsetThumbnailRenditionConvertor(ThumbnailRenditionConvertor thumbnailRenditionConvertor)Deprecated.voidsetTransactionService(TransactionService transactionService)Deprecated.Transaction servicevoidsetTransformServiceRegistry(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.
-
setContentService
public void setContentService(ContentService contentService)
Deprecated.Content service- Parameters:
contentService- content service
-
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(TransformServiceRegistry transformServiceRegistry)
Deprecated.
-
setRenditionDefinitionRegistry2
public void setRenditionDefinitionRegistry2(RenditionDefinitionRegistry2 renditionDefinitionRegistry2)
Deprecated.
-
setThumbnailDefinitions
public void setThumbnailDefinitions(java.util.List<ThumbnailDefinition> thumbnailDefinitions)
Deprecated.This method is used to inject the thumbnail definitions.
-
initThumbnailDefinitions
public void initThumbnailDefinitions()
Deprecated.
-
getThumbnailDefinitions
public java.util.List<ThumbnailDefinition> getThumbnailDefinitions()
Deprecated.Get a list of all the thumbnail definitions- Returns:
- collection of thumbnail definitions
-
getThumbnailDefinitions
public java.util.List<ThumbnailDefinition> getThumbnailDefinitions(java.lang.String mimetype)
Deprecated.use overloaded version with sourceSize parameter.
-
getThumbnailDefinitions
public java.util.List<ThumbnailDefinition> getThumbnailDefinitions(java.lang.String mimetype, long sourceSize)
Deprecated.
-
getThumbnailDefinitions
public java.util.List<ThumbnailDefinition> getThumbnailDefinitions(java.lang.String sourceUrl, java.lang.String mimetype, long sourceSize)
Deprecated.
-
getThumnailDefintions
@Deprecated public java.util.List<ThumbnailDefinition> getThumnailDefintions(java.lang.String mimetype)
Deprecated.UsegetThumbnailDefinitions(String)instead.- Parameters:
mimetype- String
-
isThumbnailDefinitionAvailable
public boolean isThumbnailDefinitionAvailable(java.lang.String sourceUrl, java.lang.String sourceMimetype, long sourceSize, org.alfresco.service.cmr.repository.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(java.lang.String sourceUrl, java.lang.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(java.lang.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(java.lang.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.
-
-