Examples of broadcastPresence()


Examples of chatroom.server.dataclass.Room.broadcastPresence()

                User user = server.getUserByConnection(connection);
                if (status != null) {
                    user.setStatus(status);
                }
                user.setShow(show);
                room.broadcastPresence(jid.getName(), null);
            }
        }
    }

    @Override
View Full Code Here

Examples of chatroom.server.dataclass.Room.broadcastPresence()

                    for (String other : room.getUserList()) {
                        if (!other.equals(jid.getName())) {
                            user.sendPresence(room, jid.getName(), other, null);
                        }
                    }
                    room.broadcastPresence(jid.getName(), null);
                } else if (ret == 0) {
                    // The nick already existed, send a conflict.
                    user.sendPresenceConflict(room, to);
                    return false;
                }
View Full Code Here

Examples of chatroom.server.dataclass.Room.broadcastPresence()

        if (to != null) {
            Jid jid = new Jid(to);
            if (jid.isUser()) {
                Room room = server.getRoom(jid.getRoom());
                User user = server.getUserByConnection(connection);
                room.broadcastPresence(jid.getName(), "unavailable");
                user.exitRoom(room);
            }
        }
    }
View Full Code Here

Examples of org.jivesoftware.openfire.roster.Roster.broadcastPresence()

            // Local updates can simply run through the roster of the local user
            String name = update.getFrom().getNode();
            try {
                if (name != null && !"".equals(name)) {
                    Roster roster = rosterManager.getRoster(name);
                    roster.broadcastPresence(update);
                }
            }
            catch (UserNotFoundException e) {
                Log.warn("Presence being sent from unknown user " + name, e);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.