01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10: package org.mmbase.module.core;
11:
12: /**
13: * Event/changes interface for MMObjectNodes this is a callback
14: * interface thats need to be implemented when a object wants to add
15: * itself as a change listener on Builder to recieve signals if nodes change.
16: *
17: * @author Daniel Ockeloen
18: * @version $Id: MMBaseObserver.java,v 1.9 2005/10/07 18:30:40 michiel Exp $
19: * @deprecated Use {@link org.mmbase.core.event.NodeEventListener}
20: */
21: public interface MMBaseObserver {
22: /**
23: * Called when a remote node is changed.
24: *
25: * @param machine Name of the machine that changed the node.
26: * @param number Number of the changed node as a <code>String</code>
27: * @param builder Type of the changed node
28: * @param ctype command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=new
29: * @return always <code>true</code>
30: * @todo javadoc is copied from MMObjectBuilder, but MMObjectBuilder is not an MMBaseObserver
31: */
32: public boolean nodeRemoteChanged(String machine, String number,
33: String builder, String ctype);
34:
35: /**
36: * Called when a local node is changed.
37: *
38: * @param machine Name of the machine that changed the node.
39: * @param number Number of the changed node as a <code>String</code>
40: * @param builder Type of the changed node
41: * @param ctype command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=new
42: * @return always <code>true</code>
43: * @todo javadoc is copied from MMObjectBuilder, but MMObjectBuilder is not an MMBaseObserver
44: */
45:
46: public boolean nodeLocalChanged(String machine, String number,
47: String builder, String ctype);
48: }
|