Interface UserDatabase

  • All Known Implementing Classes:
    HomesUserDatabase, PasswdUserDatabase

    public interface UserDatabase
    Abstraction of the set of users defined by the operating system on the current server platform.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getHome​(java.lang.String user)
      Return an absolute pathname to the home directory for the specified user.
      UserConfig getUserConfig()
      Return the UserConfig listener with which we are associated.
      java.util.Enumeration<java.lang.String> getUsers()
      Return an enumeration of the usernames defined on this server.
      void setUserConfig​(UserConfig userConfig)
      Set the UserConfig listener with which this UserDatabase is associated.
    • Method Detail

      • getUserConfig

        UserConfig getUserConfig()
        Return the UserConfig listener with which we are associated.
        Returns:
        the UserConfig listener
      • setUserConfig

        void setUserConfig​(UserConfig userConfig)
        Set the UserConfig listener with which this UserDatabase is associated.
        Parameters:
        userConfig - The new UserConfig listener
      • getHome

        java.lang.String getHome​(java.lang.String user)
        Return an absolute pathname to the home directory for the specified user.
        Parameters:
        user - User for which a home directory should be retrieved
        Returns:
        the home directory path
      • getUsers

        java.util.Enumeration<java.lang.String> getUsers()
        Return an enumeration of the usernames defined on this server.
        Returns:
        the enumeration of usernames