Index: topia2/src/java/org/codelutin/topia/event/TopiaEntitiesEvent.java diff -u /dev/null topia2/src/java/org/codelutin/topia/event/TopiaEntitiesEvent.java:1.1 --- /dev/null Thu Dec 20 14:29:34 2007 +++ topia2/src/java/org/codelutin/topia/event/TopiaEntitiesEvent.java Thu Dec 20 14:29:29 2007 @@ -0,0 +1,45 @@ +/* + * *##% Copyright (C) 2005 Code Lutin, Cédric Pineau, Benjamin Poussin + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place - Suite 330, Boston, MA 02111-1307, USA. ##% + */ + + package org.codelutin.topia.event; + +import java.util.EventObject; +import java.util.List; + +import org.codelutin.topia.TopiaContext; +import org.codelutin.topia.persistence.TopiaEntity; + +public class TopiaEntitiesEvent extends EventObject { + + private static final long serialVersionUID = 1L; + + private List entities; + + public TopiaEntitiesEvent(Object source, List entities) { + super(source); + this.entities = entities; + } + + public List getEntities() { + return entities; + } + + public TopiaContext getSource() { + return (TopiaContext) super.getSource(); + } +} Index: topia2/src/java/org/codelutin/topia/event/TopiaEntitiesVetoable.java diff -u /dev/null topia2/src/java/org/codelutin/topia/event/TopiaEntitiesVetoable.java:1.1 --- /dev/null Thu Dec 20 14:29:34 2007 +++ topia2/src/java/org/codelutin/topia/event/TopiaEntitiesVetoable.java Thu Dec 20 14:29:29 2007 @@ -0,0 +1,36 @@ +/* + * *##% Copyright (C) 2005 Code Lutin, Cédric Pineau, Benjamin Poussin + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place - Suite 330, Boston, MA 02111-1307, USA. ##% + */ + +package org.codelutin.topia.event; + +import java.util.EventListener; +import java.util.List; + +import org.codelutin.topia.persistence.TopiaEntity; + +/** + * Permet de lancer des événements liés au récupération des données + * + * @author julien + * + */ +public interface TopiaEntitiesVetoable extends EventListener { + + public List load(TopiaEntitiesEvent event); + +}