01-27-2011 08:52 AM
this.policyComponent.bindClassBehaviour(QName.createQName(
NamespaceService.ALFRESCO_URI, "onCreateNode"),
ContentModel.TYPE_CONTENT, new JavaBehaviour(this,
"onCreateNode"));
Also I implemented and bound the policies ContentServicePolicies.OnContentReadPolicy, NodeServicePolicies.OnDeleteNodePolicy and some the others. When it works with regular content, all is OK. When the node is being deleted, I need to intercept creation of an archived node. But as I see, onCreateNode() is not triggered for archived nodes. OnCreateNode() is implemented like this:@Override
public void onCreateNode(ChildAssociationRef childAssocRef) {
log.debug("onCreateNode()");
// some code
}
I have never seen calls of onCreateNode() for archived nodes in the log file. Besides, afrer deleting a node (i. e. after call of onDeleteNode()), I can see call of onContentRead() for just created archived node.01-27-2011 09:14 AM
01-27-2011 09:19 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.