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 -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Invoked after transaction commit.voidDeprecated.Registers the policy behaviour methods.voidonContentUpdate(NodeRef nodeRef, boolean newContent) Deprecated.When content changes, thumbnails are (re)generated.voidsetNodeService(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, flushMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.util.transaction.TransactionListener
getCustomOrder
-
Constructor Details
-
SimpleThumbnailer
public SimpleThumbnailer()Deprecated.
-
-
Method Details
-
setPolicyComponent
Deprecated.Sets the policy component.- Parameters:
policyComponent- used for registrations
-
setNodeService
Deprecated.Sets the node service.- Parameters:
nodeService- the node service
-
setTransactionService
Deprecated.Sets the transaction service.- Parameters:
transactionService- the transaction service
-
setThumbnailService
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
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
-