Class FailedThumbnailSourceAspect

java.lang.Object
org.alfresco.repo.thumbnail.FailedThumbnailSourceAspect
All Implemented Interfaces:
ContentServicePolicies.OnContentUpdatePolicy, NodeServicePolicies.OnDeleteNodePolicy, ClassPolicy, Policy

Deprecated.
The thumbnails code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
Behaviour/Policies for the ContentModel.ASPECT_FAILED_THUMBNAIL_SOURCE aspect. When the last ContentModel.TYPE_FAILED_THUMBNAIL child is deleted from under a source node, then all failures are considered removed and the ContentModel.ASPECT_FAILED_THUMBNAIL_SOURCE aspect can be removed.

Also, any failed thumbnails should be removed from the model onUpdateProperties as the new content may have become thumbnailable.

Since:
3.5.0
Author:
Neil Mc Erlean
  • Constructor Details

    • FailedThumbnailSourceAspect

      public FailedThumbnailSourceAspect()
      Deprecated.
  • Method Details

    • setPolicyComponent

      public void setPolicyComponent(PolicyComponent policyComponent)
      Deprecated.
    • setNodeService

      public void setNodeService(NodeService nodeService)
      Deprecated.
    • setThumbnailService

      public void setThumbnailService(ThumbnailService thumbnailService)
      Deprecated.
    • setLockService

      public void setLockService(LockService lockService)
      Deprecated.
    • setBehaviourFilter

      public void setBehaviourFilter(BehaviourFilter behaviourFilter)
      Deprecated.
    • init

      public void init()
      Deprecated.
      Initialise method
    • onDeleteNode

      public void onDeleteNode(ChildAssociationRef childAssocRef, boolean isNodeArchived)
      Deprecated.
      Description copied from interface: NodeServicePolicies.OnDeleteNodePolicy
      Called after a node is deleted. The reference given is for an association which has been deleted and cannot be used to retrieve node or associaton information from any of the services.
      Specified by:
      onDeleteNode in interface NodeServicePolicies.OnDeleteNodePolicy
      Parameters:
      childAssocRef - the primary parent-child association of the deleted node
      isNodeArchived - indicates whether the node has been archived rather than purged
    • onContentUpdate

      public void onContentUpdate(NodeRef nodeRef, boolean newContent)
      Deprecated.
      Specified by:
      onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicy
      Parameters:
      nodeRef - the node reference