Class DFUserLoginInfos


  • public final class DFUserLoginInfos
    extends java.lang.Object
    Helper utilities related to DFUserLoginInfo 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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 java.lang.Iterable<java.lang.String> getUsernames​(java.lang.Iterable<DFUserLoginInfo> logins)
        Convert logins to usernames
        Parameters:
        logins - logins
        Returns:
        usernames