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