01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/chat/tags/sakai_2-4-1/chat-api/api/src/java/org/sakaiproject/chat2/model/RoomObserver.java $
03: * $Id: RoomObserver.java 23077 2007-03-21 18:15:46Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2007 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.chat2.model;
21:
22: /**
23: * Any classes that want to observer the messages in a room needs to implement this
24: * and then add itself to the ChatManager
25: * @author andersjb
26: *
27: */
28: public interface RoomObserver {
29:
30: /**
31: *
32: * @param toolId String of the tool receiving the message
33: * @param roomId String of the room receiving the masseg
34: * @param message ChatMessage the message being received
35: */
36: public void receivedMessage(String roomId, Object message);
37:
38: /**
39: *
40: * @param toolId
41: * @param roomId
42: */
43: public void roomDeleted(String roomId);
44:
45: }
|