org.alfresco.repo.thumbnail
Class FailedThumbnailSourceAspect

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

public class FailedThumbnailSourceAspect
extends java.lang.Object
implements NodeServicePolicies.OnDeleteNodePolicy, ContentServicePolicies.OnContentUpdatePolicy

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

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.node.NodeServicePolicies.OnDeleteNodePolicy
QNAME
 
Fields inherited from interface org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy
QNAME
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Constructor Summary
FailedThumbnailSourceAspect()
           
 
Method Summary
 void init()
          Initialise method
 void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)
           
 void onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, boolean isNodeArchived)
          Called after a node is deleted.
 void setBehaviourFilter(BehaviourFilter behaviourFilter)
           
 void setLockService(LockService lockService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setPolicyComponent(PolicyComponent policyComponent)
           
 void setThumbnailService(ThumbnailService thumbnailService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FailedThumbnailSourceAspect

public FailedThumbnailSourceAspect()
Method Detail

setPolicyComponent

public void setPolicyComponent(PolicyComponent policyComponent)

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

setThumbnailService

public void setThumbnailService(ThumbnailService thumbnailService)

setLockService

public void setLockService(LockService lockService)

setBehaviourFilter

public void setBehaviourFilter(BehaviourFilter behaviourFilter)

init

public void init()
Initialise method


onDeleteNode

public void onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
                         boolean isNodeArchived)
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(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                            boolean newContent)
Specified by:
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicy
Parameters:
nodeRef - the node reference


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.