Index: topia2/src/java/org/codelutin/topia/TopiaContext.java diff -u topia2/src/java/org/codelutin/topia/TopiaContext.java:1.3 topia2/src/java/org/codelutin/topia/TopiaContext.java:1.4 --- topia2/src/java/org/codelutin/topia/TopiaContext.java:1.3 Thu Jan 5 04:50:47 2006 +++ topia2/src/java/org/codelutin/topia/TopiaContext.java Fri Jan 6 12:15:20 2006 @@ -23,15 +23,17 @@ * Created: 3 janv. 2006 21:18:34 * * @author poussin - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ * - * Last update: $Date: 2006/01/05 04:50:47 $ + * Last update: $Date: 2006/01/06 12:15:20 $ * by : $Author: bpoussin $ */ package org.codelutin.topia; import org.codelutin.topia.event.TopiaEntityListener; +import org.codelutin.topia.event.TopiaTransactionListener; +import org.codelutin.topia.event.TopiaVetoableEntityListener; /** * @author poussin @@ -41,6 +43,31 @@ public interface TopiaContext { /** + * Permet d'ajouter un listener sur les fins de transaction d'un context + * @param l + */ + public void addTransactionListener(TopiaTransactionListener l); + + /** + * Permet de supprimer un listener sur les fins de transaction d'un context + * @param l + */ + public void removeTransactionListener(TopiaTransactionListener l); + + /** + * Permet d'ajouter un listener qui pourra interdire certaine action: + * chargement, creation, modification, suppression + * @param l le listener a ajouter + */ + public void addVetoableListener(TopiaVetoableEntityListener l); + + /** + * Enleve un listener qui peut empecher des actions + * @param l le listener a enlever + */ + public void removeVetoableListener(TopiaVetoableEntityListener l); + + /** * Adds a new TopiaEntityListener to the subscribers list. * @param topiaEntityListener - the TopiaEntityListener to add to the subscribers list. */