01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/chat/tags/sakai_2-4-1/chat-api/api/src/java/org/sakaiproject/chat2/model/PresenceObserver.java $
03: * $Id: PresenceObserver.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 class that wants to observer users joining and leaving a location should
24: * implement this class and then open a new PresenceObserverHelper(this, "location")
25: * @author andersjb
26: *
27: */
28: public interface PresenceObserver {
29:
30: /**
31: * This is called by the PresenceObserverHelper when a user joins a location
32: * @param location the user is joining this location
33: * @param user the user joining
34: */
35: public void userJoined(String location, String user);
36:
37: /**
38: * This is called by the PresenceObserverHelper when a user leaves a location
39: * @param location the user is leaving this location
40: * @param user the user leaving
41: */
42: public void userLeft(String location, String user);
43:
44: }
|