AnsweredAssumed Answered

onAddAspect for all aspects of a particular type?

Question asked by hbf on Jan 29, 2008
Hi list,

Does anybody know how to catch "addAspect" and "removeAspect" events for any aspects on a single content type?

I see in the sample ContentHitsAspect.java how you can listen to these events for a particular aspect (on any content type).

The code

    behaviour = new JavaBehaviour(this, "onAddAspect", NotificationFrequency.TRANSACTION_COMMIT);
    policy = QName.createQName(NamespaceService.ALFRESCO_URI, "onAddAspect");
    this.policyComponent.bindClassBehaviour(policy, MyModel.MY_TYPE, behaviour);

does not seem to achieve this.

Thanks for a hint!
Kaspar

Outcomes