private void postRecreate() { final EventListenerGroup<PostCollectionRecreateEventListener> listenerGroup = listenerGroup( EventType.POST_COLLECTION_RECREATE ); if ( listenerGroup.isEmpty() ) { return; } final PostCollectionRecreateEvent event = new PostCollectionRecreateEvent( getPersister(), getCollection(), eventSource() ); for ( PostCollectionRecreateEventListener listener : listenerGroup.listeners() ) { listener.onPostRecreateCollection( event ); } }
@Override public void onPostRecreateCollection(PostCollectionRecreateEvent event) { String entityName = event.getAffectedOwnerEntityName(); if (!Context.internalRequestScope().isAuditedByEnvers()) { log.debug(entityName + " owner entity NOT audited by Cibet configuration"); return; } else { log.debug(entityName + " owner entity audited by Cibet configuration"); } super.onPostRecreateCollection(event); }
@Override public void onPostRecreateCollection(PostCollectionRecreateEvent event) { processCollectionEvent( event ); }