public void init() { policyComponent.bindClassBehaviour( POLICY_BEFORE_CREATE_VERSION, TYPE_VERSION_BASELINED_CONTENT, new JavaBehaviour(this, "beforeCreateVersion")); policyComponent.bindClassBehaviour( POLICY_CALCULATE_VERSION_LABEL, TYPE_VERSION_BASELINED_CONTENT, new JavaBehaviour(this, "calculateVersionLabel")); }
public void init() { policyComponent.bindClassBehaviour( BeforeDeleteNodePolicy.QNAME, ContentModel.TYPE_PERSON, new JavaBehaviour(this, "beforeDeleteNodePerson")); deletePersonTransactionListener = new FeedCleanerDeletePersonTransactionListener(); policyComponent.bindClassBehaviour( BeforeDeleteNodePolicy.QNAME, SiteModel.TYPE_SITE, new JavaBehaviour(this, "beforeDeleteNodeSite")); deleteSiteTransactionListener = new FeedCleanerDeleteSiteTransactionListener(); }