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
  • Constructor Details

    • SimpleThumbnailer

      public SimpleThumbnailer()
      Deprecated.
  • Method Details

    • setPolicyComponent

      public void setPolicyComponent(PolicyComponent policyComponent)
      Deprecated.
      Sets the policy component.
      Parameters:
      policyComponent - used for registrations
    • setNodeService

      public void setNodeService(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:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • onContentUpdate

      public void onContentUpdate(NodeRef nodeRef, boolean newContent)
      Deprecated.
      When content changes, thumbnails are (re)generated.
      Specified by:
      onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicy
      Parameters:
      nodeRef - the node ref
      newContent - is the content new?
    • afterCommit

      public void afterCommit()
      Deprecated.
      Description copied from class: TransactionListenerAdapter
      Invoked 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:
      afterCommit in interface TransactionListener
      Specified by:
      afterCommit in interface org.alfresco.util.transaction.TransactionListener
      Overrides:
      afterCommit in class TransactionListenerAdapter