Package org.olat.instantMessaging

Examples of org.olat.instantMessaging.InstantMessagingClient.sendPresence()


               * last access was more than five minutes ago
               * so set instant messaging presence to away
               */
              if ((client != null && client.isConnected())
                  && (client.getPresenceMode() == Presence.Mode.away || client.getPresenceMode() == Presence.Mode.xa)) {
                client.sendPresence(Presence.Type.available, null, 0, Presence.Mode.valueOf(client.getRecentPresenceStatusMode()));
                // inform the GUI
                InstantMessagingModule.getAdapter().getClientManager().sendPresenceEvent(Presence.Type.available, username);
                if (log.isDebug()) {
                  log.debug("change presence for user " + client.getUsername() + " back to recent presence.");
                }
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.