public class CascadeUpdateAspect extends Object implements NodeServicePolicies.OnCreateChildAssociationPolicy, NodeServicePolicies.OnDeleteChildAssociationPolicy, NodeServicePolicies.OnMoveNodePolicy
Policy.Arg
QNAME
QNAME
QNAME
Constructor and Description |
---|
CascadeUpdateAspect() |
Modifier and Type | Method and Description |
---|---|
void |
init()
Initialise method
|
void |
onCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean isNewNode)
Called after a node child association has been created.
|
void |
onDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Called after a node child association has been deleted.
|
void |
onMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef,
org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef)
Called when a node has been moved.
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setSolrTrackingComponent(SOLRTrackingComponent solrTrackingComponent) |
public void setPolicyComponent(PolicyComponent policyComponent)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setSolrTrackingComponent(SOLRTrackingComponent solrTrackingComponent)
public void init()
public void onMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef, org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef)
NodeServicePolicies.OnMoveNodePolicy
onMoveNode
in interface NodeServicePolicies.OnMoveNodePolicy
oldChildAssocRef
- the child association reference prior to the movenewChildAssocRef
- the child association reference after the movepublic void onDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
NodeServicePolicies.OnDeleteChildAssociationPolicy
onDeleteChildAssociation
in interface NodeServicePolicies.OnDeleteChildAssociationPolicy
childAssocRef
- the child association that has been deletedpublic void onCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, boolean isNewNode)
NodeServicePolicies.OnCreateChildAssociationPolicy
onCreateChildAssociation
in interface NodeServicePolicies.OnCreateChildAssociationPolicy
childAssocRef
- the child association that has been createdisNewNode
- true if the node is new or false if the node is being linked inCopyright © 2005–2017 Alfresco Software. All rights reserved.