Package com.im.df.api.support
Class DFUserLoginInfos
- java.lang.Object
-
- com.im.df.api.support.DFUserLoginInfos
-
public final class DFUserLoginInfos extends java.lang.Object
Helper utilities related toDFUserLoginInfo
class.- Author:
- Petr Hamernik
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Iterable<DFUserLoginInfo>
filterLogins(java.lang.Iterable<DFUserLoginInfo> allLogins, boolean includeConnected, boolean includeDisconnected, java.lang.String excludeThisUsername)
Filter logins.static java.lang.Iterable<java.lang.String>
getUsernames(java.lang.Iterable<DFUserLoginInfo> logins)
Convert logins to usernames
-
-
-
Method Detail
-
filterLogins
public static java.lang.Iterable<DFUserLoginInfo> filterLogins(java.lang.Iterable<DFUserLoginInfo> allLogins, boolean includeConnected, boolean includeDisconnected, java.lang.String excludeThisUsername)
Filter logins.- Parameters:
allLogins
- All login infosincludeConnected
- 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 java.lang.Iterable<java.lang.String> getUsernames(java.lang.Iterable<DFUserLoginInfo> logins)
Convert logins to usernames- Parameters:
logins
- logins- Returns:
- usernames
-
-