Skip to content
Snippets Groups Projects
Commit 526a5608 authored by srosse's avatar srosse
Browse files

Merge OpenOLAT default branch to OpenOLAT 9.0a with 2fa92bb6678389f0d49b6b6863697ffc437a291c

parents e788fcfd d13f771b
No related branches found
No related tags found
No related merge requests found
...@@ -159,12 +159,13 @@ public class UserSessionController extends BasicController implements StackedCon ...@@ -159,12 +159,13 @@ public class UserSessionController extends BasicController implements StackedCon
TableEvent te = (TableEvent)event; TableEvent te = (TableEvent)event;
int selRow = te.getRowId(); int selRow = te.getRowId();
// session info (we only have authenticated sessions here // session info (we only have authenticated sessions here
UserSession usess = (UserSession) tableCtr.getTableDataModel().getObject(selRow); UserSessionView usessw = (UserSessionView)tableCtr.getTableDataModel().getObject(selRow);
if("sess.chat".equals(te.getActionId())) { if("sess.chat".equals(te.getActionId())) {
Buddy buddy = imService.getBuddyById(usess.getIdentity().getKey()); Buddy buddy = imService.getBuddyById(usessw.getIdentityKey());
OpenInstantMessageEvent e = new OpenInstantMessageEvent(ureq, buddy); OpenInstantMessageEvent e = new OpenInstantMessageEvent(ureq, buddy);
ureq.getUserSession().getSingleUserEventCenter().fireEventToListenersOf(e, InstantMessagingService.TOWER_EVENT_ORES); ureq.getUserSession().getSingleUserEventCenter().fireEventToListenersOf(e, InstantMessagingService.TOWER_EVENT_ORES);
} else if("sess.details".equals(te.getActionId())) { } else if("sess.details".equals(te.getActionId())) {
UserSession usess = usessw.getUserSession();
UserSessionDetailsController detailsCtrl = new UserSessionDetailsController(ureq, getWindowControl(), usess); UserSessionDetailsController detailsCtrl = new UserSessionDetailsController(ureq, getWindowControl(), usess);
listenTo(detailsCtrl); listenTo(detailsCtrl);
......
...@@ -21,7 +21,11 @@ public class UserSessionView { ...@@ -21,7 +21,11 @@ public class UserSessionView {
private long sessionDuration; private long sessionDuration;
private String mode; private String mode;
private UserSession userSession;
public UserSessionView(UserSession usess) { public UserSessionView(UserSession usess) {
userSession = usess;
SessionInfo sessInfo = usess.getSessionInfo(); SessionInfo sessInfo = usess.getSessionInfo();
authenticated = usess.isAuthenticated(); authenticated = usess.isAuthenticated();
if (authenticated) { if (authenticated) {
...@@ -54,6 +58,10 @@ public class UserSessionView { ...@@ -54,6 +58,10 @@ public class UserSessionView {
} }
} }
public UserSession getUserSession() {
return userSession;
}
public boolean isAuthenticated() { public boolean isAuthenticated() {
return authenticated; return authenticated;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment