KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > module > core > MMBaseObserver


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

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 JavaDoc machine, String JavaDoc number, String JavaDoc builder, String JavaDoc ctype);
33
34     /**
35      * Called when a local node is changed.
36      *
37      * @param machine Name of the machine that changed the node.
38      * @param number Number of the changed node as a <code>String</code>
39      * @param builder Type of the changed node
40      * @param ctype command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=new
41      * @return always <code>true</code>
42      * @todo javadoc is copied from MMObjectBuilder, but MMObjectBuilder is not an MMBaseObserver
43      */

44
45     public boolean nodeLocalChanged(String JavaDoc machine, String JavaDoc number, String JavaDoc builder, String JavaDoc ctype);
46 }
47
Popular Tags