01: /*
02: * This software is OSI Certified Open Source Software.
03: * OSI Certified is a certification mark of the Open Source Initiative. The
04: * license (Mozilla version 1.0) can be read at the MMBase site. See
05: * http://www.MMBase.org/license
06: */
07: package org.mmbase.core.event;
08:
09: /**
10: * Very generic event type, which only adds an 'id' property. This can be used for events on all
11: * kind of objects which are somehow identified by an ID. Of course, the default event types like
12: * 'NEW', 'CHANGE' and 'DELETE' can very well make sense.
13: *
14: * @author Michiel Meeuwissen
15: * @since MMBase-1.8
16: * @version $Id: IdEvent.java,v 1.4 2007/07/26 11:45:54 michiel Exp $
17: */
18: public class IdEvent extends Event {
19:
20: private static final long serialVersionUID = 1L;
21:
22: private String id;
23:
24: public IdEvent(String machineName, int type, String id) {
25: super (machineName, type);
26: this .id = id;
27: }
28:
29: public String getId() {
30: return id;
31: }
32:
33: public String toString() {
34: return id + " " + eventType;
35: }
36:
37: }
|