public class FailedThumbnailSourceAspect extends java.lang.Object implements NodeServicePolicies.OnDeleteNodePolicy, ContentServicePolicies.OnContentUpdatePolicy
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.Policy.ArgQNAMEQNAME| Constructor and Description |
|---|
FailedThumbnailSourceAspect() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public void setPolicyComponent(PolicyComponent policyComponent)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setThumbnailService(ThumbnailService thumbnailService)
public void setLockService(LockService lockService)
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void init()
public void onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean isNodeArchived)
NodeServicePolicies.OnDeleteNodePolicyonDeleteNode in interface NodeServicePolicies.OnDeleteNodePolicychildAssocRef - the primary parent-child association of the deleted nodeisNodeArchived - indicates whether the node has been archived rather than purgedpublic void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent)
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicynodeRef - the node referenceCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.