10-16-2006 02:20 AM
public void initialise() {
QName onCreateChildName = QName.createQName(NamespaceService.ALFRESCO_URI, "onCreateChildAssociation");
this.policyComponent.bindAssociationBehaviour(
onCreateChildName,
ContentModel.TYPE_FOLDER,
new JavaBehaviour(this, "onCreateChildAssociation")
);
this.policyComponent.bindAssociationBehaviour(
onCreateChildName,
ContentModel.TYPE_CONTENT,
new JavaBehaviour(this, "onCreateChildAssociation")
);
logger.debug("Behaviours bound");
}
public void onCreateChildAssociation(ChildAssociationRef childAssocRef)
{
logger.debug("Added new child "+childAssocRef.getChildRef().getId()+" to "+childAssocRef.getParentRef().getId());
}
11-08-2006 09:13 AM
11-08-2006 04:57 PM
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.