Index: topia2/src/java/org/codelutin/topia/event/TopiaTransactionEvents.java diff -u /dev/null topia2/src/java/org/codelutin/topia/event/TopiaTransactionEvents.java:1.1 --- /dev/null Thu Feb 23 14:20:41 2006 +++ topia2/src/java/org/codelutin/topia/event/TopiaTransactionEvents.java Thu Feb 23 14:20:36 2006 @@ -0,0 +1,78 @@ +/* *##% + * Copyright (C) 2006 + * 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. + *##%*/ + +/* * + * TopiaTransactionEvents.java + * + * Created: 20 févr. 2006 16:13:16 + * + * @author poussin + * @version $Revision: 1.1 $ + * + * Last update: $Date: 2006/02/23 14:20:36 $ + * by : $Author: bpoussin $ + */ + +package org.codelutin.topia.event; + +import java.util.ArrayList; +import java.util.Date; +import java.util.EventObject; +import java.util.List; + + +/** + * @author poussin + * + */ + +public class TopiaTransactionEvents extends EventObject { + + protected long date = 0; + + protected List events = null; + + /** + * @param source l'objet d'ou provient l'event + * @param events la liste de tous les TopiaTransactionEvent + */ + public TopiaTransactionEvents(Object source, List events) { + super(source); + this.events = new ArrayList(events); + date = System.currentTimeMillis(); + } + + + /** + * @return Returns the events. + */ + public List getEvents() { + return this.events; + } + + /** + * Le moment ou l'event a ete créé. + */ + public Date getCreationDate() { + return new Date(date); + } + +} + +