Package org.apache.catalina.startup
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
-
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 user names defined on this server.void
setUserConfig
(UserConfig userConfig) Set the UserConfig listener with which we are associated.
-
Constructor Details
-
HomesUserDatabase
public HomesUserDatabase()
-
-
Method Details
-
getUserConfig
Return the UserConfig listener with which we are associated.- Specified by:
getUserConfig
in interfaceUserDatabase
- Returns:
- the UserConfig listener with which we are associated.
-
setUserConfig
Set the UserConfig listener with which we are associated.- Specified by:
setUserConfig
in interfaceUserDatabase
- Parameters:
userConfig
- The new UserConfig listener
-
getHome
Return an absolute pathname to the home directory for the specified user.- Specified by:
getHome
in 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
Return an enumeration of the user names defined on this server.- Specified by:
getUsers
in interfaceUserDatabase
- Returns:
- an enumeration of the usernames defined on this server.
-