@Scriptable public final class LoggedOnUsers extends Object
Modifier and Type | Field and Description |
---|---|
static IFilter<IUser> |
FILTER_ACCEPT_ALL |
static IFilter<IUser> |
FILTER_ACCEPT_ANONYMOUS |
Modifier and Type | Method and Description |
---|---|
static int |
getActiveSessionCount()
Get the number of active sessions.
|
static List<IUser> |
getLoggedOnUsers(boolean p_bIncludeAnonymous)
Get a list of users that are currently logged in.
|
static List<IUser> |
getLoggedOnUsers(boolean p_bIncludeAnonymous,
groovy.lang.Closure<?> p_closure)
Get a list of users that are currently logged in.
|
static List<IUser> |
getLoggedOnUsers(IFilter<IUser> p_filter,
boolean p_bIncludeAnonymous)
Get a list of users that are currently logged in.
|
static List<IUser> |
getLoggedOnUsersDistinct()
Get a distinct list of non-anonymous users that are currently logged in.
|
static List<IUser> |
getLoggedOnUsersDistinct(groovy.lang.Closure<?> p_closure)
Get a distinct list of non-anonymous users that pass the given filter and
that are currently logged in.
|
static List<IUser> |
getLoggedOnUsersDistinct(IFilter<IUser> p_filter)
Get a distinct list of non-anonymous users that pass the given filter and
that are currently logged in.
|
static int |
getNonAnonymousActiveSessionCount()
Get the number of non-anonymous active sessions.
|
static boolean |
isUserOnline(String p_strUserId)
Test if the specified user is online, i.e. if she or he has an associated session.
|
public static int getActiveSessionCount()
public static int getNonAnonymousActiveSessionCount()
public static boolean isUserOnline(String p_strUserId)
p_strUserId
- The user's unique identifier.true
if the user is online, false
otherwise.public static List<IUser> getLoggedOnUsers(boolean p_bIncludeAnonymous)
If a user is logged in multiple times, the list contains an entry for each active user session.
p_bIncludeAnonymous
- true
if the list should include
anonymous users, or false
otherwise.public static List<IUser> getLoggedOnUsers(boolean p_bIncludeAnonymous, groovy.lang.Closure<?> p_closure)
If a user is logged in multiple times, the list contains an entry for each active user session.
p_bIncludeAnonymous
- true
if the list should include
anonymous users, or false
otherwise.p_closure
- A closure that filters users.public static List<IUser> getLoggedOnUsers(IFilter<IUser> p_filter, boolean p_bIncludeAnonymous)
If a user is logged in multiple times, the list contains an entry for each active user session.
p_bIncludeAnonymous
- true
if the list should include
anonymous users, or false
otherwise.p_filter
- A filter for users.public static List<IUser> getLoggedOnUsersDistinct()
public static List<IUser> getLoggedOnUsersDistinct(groovy.lang.Closure<?> p_closure)
p_closure
- A closure that filters users.public static List<IUser> getLoggedOnUsersDistinct(IFilter<IUser> p_filter)
p_filter
- A filter for users.