Association Policies

Association policies provide places where you can hook in behaviors that trigger when associations are created
or removed between two nodes in the Cloud CMS content graph. When two nodes are connected together via
an association or an association is broken, these policies trigger and may fire into your custom handlers.

The following policies are available:

Policy QName Description
p:beforeAssociate Raised before an association is created between two nodes
p:afterAssociate Raised after an association has been created between two nodes and the association has been committed to the branch
p:beforeUnassociate Raised before an association is created between two nodes
p:afterUnassociate Raised after an association has been deleted between two nodes and the association deletion has been committed to the branch

Method Signatures

The following method signatures apply for the policies mentioned above:

p:beforeAssociate

(JavaScript)    
function beforeAssociate(association);

(Java)          
public void beforeAssociate(Association association);

p:afterAssociate

(JavaScript)    
function afterAssociate(association);

(Java)          
public void afterAssociate(Association association);

p:beforeUnassociate

(JavaScript)    
function beforeUnassociate(association);

(Java)          
public void beforeUnassociate(Association association);

p:afterUnassociate

(JavaScript)    
function afterUnassociate(association);

(Java)          
public void afterUnassociate(Association association);