public class OwUsageCounter extends Object
Tracks the user usage.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Class and Description |
---|---|
static class |
OwUsageCounter.OwUsageState
A usage statistic entry.
|
Constructor and Description |
---|
OwUsageCounter() |
Modifier and Type | Method and Description |
---|---|
static int |
getIntervalTime()
get interval time in milliseconds
|
static Collection |
getStatistics()
get a collection with OwUsageState entries
|
static void |
onLogin(String sessionid_p,
OwBaseUserInfo userid_p)
called when a user logs in
|
static void |
onLogout(String sessionid_p,
OwBaseUserInfo userid_p)
called when a user logs off
|
static void |
onSessionCreated(String sessionid_p)
called when a session gets created
|
static void |
onSessionDestroyed(String sessionid_p)
called when a session gets destroyed
|
public static void onLogin(String sessionid_p, OwBaseUserInfo userid_p)
sessionid_p
- userid_p
- public static void onLogout(String sessionid_p, OwBaseUserInfo userid_p)
sessionid_p
- userid_p
- public static Collection getStatistics()
Collection
public static int getIntervalTime()
public static void onSessionCreated(String sessionid_p)
sessionid_p
- String session IDpublic static void onSessionDestroyed(String sessionid_p)
sessionid_p
- String session IDCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.