Class HomesUserDatabase
java.lang.Object
org.apache.catalina.startup.HomesUserDatabase
- All Implemented Interfaces:
UserDatabase
Concrete implementation of the
UserDatabase interface considers all directories in a directory whose
pathname is specified to our constructor to be "home" directories for those users.- Author:
- Craig R. McClanahan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUsers()voidsetUserConfig(UserConfig userConfig) Set the UserConfig listener with which we are associated.
-
Constructor Details
-
HomesUserDatabase
public HomesUserDatabase()
-
-
Method Details
-
getUserConfig
- Specified by:
getUserConfigin interfaceUserDatabase- Returns:
- the UserConfig listener with which we are associated.
-
setUserConfig
Description copied from interface:UserDatabaseSet the UserConfig listener with which we are associated.- Specified by:
setUserConfigin interfaceUserDatabase- Parameters:
userConfig- The new UserConfig listener
-
getHome
- Specified by:
getHomein interfaceUserDatabase- Parameters:
user- User for which a home directory should be retrieved- Returns:
- an absolute pathname to the home directory for the specified user.
-
getUsers
- Specified by:
getUsersin interfaceUserDatabase- Returns:
- an enumeration of the usernames defined on this server.
-