Package hec.model

Class UserInfo

All Implemented Interfaces:
hec.io.AsciiSerializable, Serializable, Cloneable, Comparable, Observer, Modifiable

public class UserInfo extends NamedType
See Also:
  • Field Details

  • Constructor Details

    • UserInfo

      public UserInfo(String hostId)
  • Method Details

    • addUser

      public String addUser(String userName, String app, long edipi, String clientHost)
    • removeUser

      public boolean removeUser(String userId)
    • findUserName

      public String findUserName(String userId)
      return the username for a given userid
    • findUserIds

      public String[] findUserIds(String userName)
      return the userIds for a given userName
    • setKeyForUser

      public boolean setKeyForUser(String userId, long key)
    • isLoggedIn

      public boolean isLoggedIn(String userId)
      see if the given userId is logged in
    • getName

      public String getName()
      Description copied from class: NamedType
      get the NameType's name
      Overrides:
      getName in class NamedType
      Returns:
      the name
    • getLoggedInUsers

      public String[] getLoggedInUsers()
      return a list of user names
    • getUserList

      public Vector<UserLoginInfo> getUserList()
    • size

      public int size()
    • getFieldObject

      public Object getFieldObject(Field fld)
      Specified by:
      getFieldObject in interface hec.io.AsciiSerializable
      Overrides:
      getFieldObject in class NamedType
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Specified by:
      setFieldObject in interface hec.io.AsciiSerializable
      Overrides:
      setFieldObject in class NamedType
    • getClientsForUser

      public List getClientsForUser(String userName)
      get the list of clients that belong to the User with the login of userName
      Parameters:
      userName - the User's login
      Returns:
      the list of clients. If no clients are found the list will be empty.
    • getUserLoginInfo

      public UserLoginInfo getUserLoginInfo(String userId)