com.wewebu.ow.server.ui
Class OwUsageCounter

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwUsageCounter

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


Nested Class Summary
static class OwUsageCounter.OwUsageState
           A usage statistic entry.
 
Constructor Summary
OwUsageCounter()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwUsageCounter

public OwUsageCounter()
Method Detail

onLogin

public static void onLogin(String sessionid_p,
                           OwBaseUserInfo userid_p)
called when a user logs in

Parameters:
sessionid_p -
userid_p -

onLogout

public static void onLogout(String sessionid_p,
                            OwBaseUserInfo userid_p)
called when a user logs off

Parameters:
sessionid_p -
userid_p -

getStatistics

public static Collection getStatistics()
get a collection with OwUsageState entries

Returns:
a Collection

getIntervalTime

public static int getIntervalTime()
get interval time in milliseconds

Returns:
int

onSessionCreated

public static void onSessionCreated(String sessionid_p)
called when a session gets created

Parameters:
sessionid_p - String session ID

onSessionDestroyed

public static void onSessionDestroyed(String sessionid_p)
called when a session gets destroyed

Parameters:
sessionid_p - String session ID


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.