com.im.df.api 5.9

com.im.df.api.support
Class DFUserLoginInfos

java.lang.Object
  extended by com.im.df.api.support.DFUserLoginInfos

public final class DFUserLoginInfos
extends Object

Helper utilities related to DFUserLoginInfo class.


Method Summary
static Iterable<DFUserLoginInfo> filterLogins(Iterable<DFUserLoginInfo> allLogins, boolean includeConnected, boolean includeDisconnected, String excludeThisUsername)
          Filter logins.
static Iterable<String> getUsernames(Iterable<DFUserLoginInfo> logins)
          Convert logins to usernames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

filterLogins

public static Iterable<DFUserLoginInfo> filterLogins(Iterable<DFUserLoginInfo> allLogins,
                                                     boolean includeConnected,
                                                     boolean includeDisconnected,
                                                     String excludeThisUsername)
Filter logins.

Parameters:
allLogins - All login infos
includeConnected - should connected be included in result?
includeDisconnected - should disconnected be included in result?
excludeThisUsername - ignore this username - it will be never included if defined. Can be null.
Returns:
Filtered list of logins

getUsernames

public static Iterable<String> getUsernames(Iterable<DFUserLoginInfo> logins)
Convert logins to usernames

Parameters:
logins - logins
Returns:
usernames

com.im.df.api 5.9