public class FailedThumbnailSourceAspect extends 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(NodeRef nodeRef,
boolean newContent) |
void |
onDeleteNode(ChildAssociationRef childAssocRef,
boolean isNodeArchived)
Called after a node is deleted.
|
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setLockService(LockService lockService) |
void |
setNodeService(NodeService nodeService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setThumbnailService(ThumbnailService thumbnailService) |
public void setPolicyComponent(PolicyComponent policyComponent)
public void setNodeService(NodeService nodeService)
public void setThumbnailService(ThumbnailService thumbnailService)
public void setLockService(LockService lockService)
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void init()
public void onDeleteNode(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(NodeRef nodeRef, boolean newContent)
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicynodeRef - the node referenceCopyright © 2005–2021 Alfresco Software. All rights reserved.