Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
526a5608
Commit
526a5608
authored
12 years ago
by
srosse
Browse files
Options
Downloads
Plain Diff
Merge OpenOLAT default branch to OpenOLAT 9.0a with 2fa92bb6678389f0d49b6b6863697ffc437a291c
parents
e788fcfd
d13f771b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/olat/admin/sysinfo/UserSessionController.java
+3
-2
3 additions, 2 deletions
...in/java/org/olat/admin/sysinfo/UserSessionController.java
src/main/java/org/olat/admin/sysinfo/model/UserSessionView.java
+8
-0
8 additions, 0 deletions
...in/java/org/olat/admin/sysinfo/model/UserSessionView.java
with
11 additions
and
2 deletions
src/main/java/org/olat/admin/sysinfo/UserSessionController.java
+
3
−
2
View file @
526a5608
...
@@ -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
);
UserSession
View
usess
w
=
(
UserSession
View
)
tableCtr
.
getTableDataModel
().
getObject
(
selRow
);
if
(
"sess.chat"
.
equals
(
te
.
getActionId
()))
{
if
(
"sess.chat"
.
equals
(
te
.
getActionId
()))
{
Buddy
buddy
=
imService
.
getBuddyById
(
usess
.
getIdentity
().
get
Key
());
Buddy
buddy
=
imService
.
getBuddyById
(
usess
w
.
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
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/admin/sysinfo/model/UserSessionView.java
+
8
−
0
View file @
526a5608
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment