Package org.alfresco.repo.thumbnail
Class SimpleThumbnailer
- java.lang.Object
-
- org.alfresco.repo.transaction.TransactionListenerAdapter
-
- org.alfresco.repo.thumbnail.SimpleThumbnailer
-
- All Implemented Interfaces:
ContentServicePolicies.OnContentUpdatePolicy,ClassPolicy,Policy,TransactionListener,org.alfresco.util.transaction.TransactionListener,org.springframework.beans.factory.InitializingBean
@Deprecated public class SimpleThumbnailer extends TransactionListenerAdapter implements ContentServicePolicies.OnContentUpdatePolicy, org.springframework.beans.factory.InitializingBean
Deprecated.The thumbnails code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.A simplistic policy that generates all applicable thumbnails for content as it is added or updated. As this is done synchronously, this is not recommended for production use.- Author:
- dward
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
-
-
Field Summary
-
Fields inherited from interface org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy
QNAME
-
-
Constructor Summary
Constructors Constructor Description SimpleThumbnailer()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterCommit()Deprecated.Invoked after transaction commit.voidafterPropertiesSet()Deprecated.Registers the policy behaviour methods.voidonContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)Deprecated.When content changes, thumbnails are (re)generated.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Deprecated.Sets the node service.voidsetPolicyComponent(PolicyComponent policyComponent)Deprecated.Sets the policy component.voidsetThumbnailService(ThumbnailService thumbnailService)Deprecated.Sets the thumbnail service.voidsetTransactionService(TransactionService transactionService)Deprecated.Sets the transaction service.-
Methods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter
afterRollback, beforeCommit, beforeCompletion, flush
-
-
-
-
Method Detail
-
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
Deprecated.Sets the policy component.- Parameters:
policyComponent- used for registrations
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Deprecated.Sets the node service.- Parameters:
nodeService- the node service
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
Deprecated.Sets the transaction service.- Parameters:
transactionService- the transaction service
-
setThumbnailService
public void setThumbnailService(ThumbnailService thumbnailService)
Deprecated.Sets the thumbnail service.- Parameters:
thumbnailService- the thumbnail service
-
afterPropertiesSet
public void afterPropertiesSet()
Deprecated.Registers the policy behaviour methods.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
onContentUpdate
public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)Deprecated.When content changes, thumbnails are (re)generated.- Specified by:
onContentUpdatein interfaceContentServicePolicies.OnContentUpdatePolicy- Parameters:
nodeRef- the node refnewContent- is the content new?
-
afterCommit
public void afterCommit()
Deprecated.Description copied from class:TransactionListenerAdapterInvoked after transaction commit.Any exceptions generated here will only be logged and will have no effect on the state of the transaction.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.
- Specified by:
afterCommitin interfaceTransactionListener- Specified by:
afterCommitin interfaceorg.alfresco.util.transaction.TransactionListener- Overrides:
afterCommitin classTransactionListenerAdapter
-
-