Search in sources :

Example 11 with OpenInstantMessageEvent

use of org.olat.instantMessaging.OpenInstantMessageEvent in project OpenOLAT by OpenOLAT.

the class GroupController method doIm.

private void doIm(UserRequest ureq, Identity identity) {
    Buddy buddy = imService.getBuddyById(identity.getKey());
    OpenInstantMessageEvent e = new OpenInstantMessageEvent(ureq, buddy);
    ureq.getUserSession().getSingleUserEventCenter().fireEventToListenersOf(e, InstantMessagingService.TOWER_EVENT_ORES);
}
Also used : OpenInstantMessageEvent(org.olat.instantMessaging.OpenInstantMessageEvent) Buddy(org.olat.instantMessaging.model.Buddy)

Example 12 with OpenInstantMessageEvent

use of org.olat.instantMessaging.OpenInstantMessageEvent in project OpenOLAT by OpenOLAT.

the class GroupController method doIm.

private void doIm(UserRequest ureq, Identity identity) {
    Buddy buddy = imService.getBuddyById(identity.getKey());
    OpenInstantMessageEvent e = new OpenInstantMessageEvent(ureq, buddy);
    ureq.getUserSession().getSingleUserEventCenter().fireEventToListenersOf(e, InstantMessagingService.TOWER_EVENT_ORES);
}
Also used : OpenInstantMessageEvent(org.olat.instantMessaging.OpenInstantMessageEvent) Buddy(org.olat.instantMessaging.model.Buddy)

Example 13 with OpenInstantMessageEvent

use of org.olat.instantMessaging.OpenInstantMessageEvent in project openolat by klemens.

the class GroupController method doIm.

private void doIm(UserRequest ureq, Identity identity) {
    Buddy buddy = imService.getBuddyById(identity.getKey());
    OpenInstantMessageEvent e = new OpenInstantMessageEvent(ureq, buddy);
    ureq.getUserSession().getSingleUserEventCenter().fireEventToListenersOf(e, InstantMessagingService.TOWER_EVENT_ORES);
}
Also used : OpenInstantMessageEvent(org.olat.instantMessaging.OpenInstantMessageEvent) Buddy(org.olat.instantMessaging.model.Buddy)

Example 14 with OpenInstantMessageEvent

use of org.olat.instantMessaging.OpenInstantMessageEvent in project openolat by klemens.

the class MembersAvatarDisplayRunController method doOpenChat.

private void doOpenChat(Member member, UserRequest ureq) {
    Buddy buddy = imService.getBuddyById(member.getKey());
    OpenInstantMessageEvent e = new OpenInstantMessageEvent(ureq, buddy);
    ureq.getUserSession().getSingleUserEventCenter().fireEventToListenersOf(e, InstantMessagingService.TOWER_EVENT_ORES);
}
Also used : OpenInstantMessageEvent(org.olat.instantMessaging.OpenInstantMessageEvent) Buddy(org.olat.instantMessaging.model.Buddy)

Example 15 with OpenInstantMessageEvent

use of org.olat.instantMessaging.OpenInstantMessageEvent in project openolat by klemens.

the class MembersTableController method doOpenChat.

private void doOpenChat(MemberView member, UserRequest ureq) {
    Buddy buddy = imService.getBuddyById(member.getIdentityKey());
    OpenInstantMessageEvent e = new OpenInstantMessageEvent(ureq, buddy);
    ureq.getUserSession().getSingleUserEventCenter().fireEventToListenersOf(e, InstantMessagingService.TOWER_EVENT_ORES);
}
Also used : OpenInstantMessageEvent(org.olat.instantMessaging.OpenInstantMessageEvent) Buddy(org.olat.instantMessaging.model.Buddy)

Aggregations

OpenInstantMessageEvent (org.olat.instantMessaging.OpenInstantMessageEvent)20 Buddy (org.olat.instantMessaging.model.Buddy)16 UserSessionView (org.olat.admin.sysinfo.model.UserSessionView)2 Link (org.olat.core.gui.components.link.Link)2 TableEvent (org.olat.core.gui.components.table.TableEvent)2 UserSession (org.olat.core.util.UserSession)2 ICourse (org.olat.course.ICourse)2