Class HomesUserDatabase

java.lang.Object
org.apache.catalina.startup.HomesUserDatabase
All Implemented Interfaces:
UserDatabase

public final class HomesUserDatabase extends Object implements UserDatabase
Concrete implementation of the UserDatabase interface that considers all directories in a specified base directory to be "home" directories for those users.
  • Constructor Details

    • HomesUserDatabase

      public HomesUserDatabase()
      Constructs a new HomesUserDatabase.
  • Method Details

    • getUserConfig

      public UserConfig getUserConfig()
      Description copied from interface: UserDatabase
      Return the UserConfig listener with which we are associated.
      Specified by:
      getUserConfig in interface UserDatabase
      Returns:
      the UserConfig listener
    • setUserConfig

      public void setUserConfig(UserConfig userConfig)
      Description copied from interface: UserDatabase
      Set the UserConfig listener with which this UserDatabase is associated.
      Specified by:
      setUserConfig in interface UserDatabase
      Parameters:
      userConfig - The new UserConfig listener
    • getHome

      public String getHome(String user)
      Description copied from interface: UserDatabase
      Return an absolute pathname to the home directory for the specified user.
      Specified by:
      getHome in interface UserDatabase
      Parameters:
      user - User for which a home directory should be retrieved
      Returns:
      the home directory path
    • getUsers

      public Enumeration<String> getUsers()
      Description copied from interface: UserDatabase
      Return an enumeration of the usernames defined on this server.
      Specified by:
      getUsers in interface UserDatabase
      Returns:
      the enumeration of usernames