Package org.apache.catalina.startup
Class HomesUserDatabase
- java.lang.Object
-
- org.apache.catalina.startup.HomesUserDatabase
-
- All Implemented Interfaces:
UserDatabase
public final class HomesUserDatabase extends java.lang.Object implements UserDatabase
Concrete implementation of theUserDatabase
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 Constructor Description HomesUserDatabase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHome(java.lang.String user)
UserConfig
getUserConfig()
java.util.Enumeration<java.lang.String>
getUsers()
void
setUserConfig(UserConfig userConfig)
Set the UserConfig listener with which we are associated.
-
-
-
Method Detail
-
getUserConfig
public UserConfig getUserConfig()
- Specified by:
getUserConfig
in interfaceUserDatabase
- Returns:
- the UserConfig listener with which we are associated.
-
setUserConfig
public void setUserConfig(UserConfig userConfig)
Description copied from interface:UserDatabase
Set the UserConfig listener with which we are associated.- Specified by:
setUserConfig
in interfaceUserDatabase
- Parameters:
userConfig
- The new UserConfig listener
-
getHome
public java.lang.String getHome(java.lang.String 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
public java.util.Enumeration<java.lang.String> getUsers()
- Specified by:
getUsers
in interfaceUserDatabase
- Returns:
- an enumeration of the usernames defined on this server.
-
-