public final class HomesUserDatabase extends java.lang.Object implements UserDatabase
UserDatabase
interface
considers all directories in a directory whose pathname is specified
to our constructor to be "home" directories for those users.Constructor and Description |
---|
HomesUserDatabase()
Initialize a new instance of this user database component.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHome(java.lang.String user)
Return an absolute pathname to the home directory for the specified user.
|
UserConfig |
getUserConfig()
Return the UserConfig listener with which we are associated.
|
java.util.Enumeration<java.lang.String> |
getUsers()
Return an enumeration of the usernames defined on this server.
|
void |
setUserConfig(UserConfig userConfig)
Set the UserConfig listener with which we are associated.
|
public HomesUserDatabase()
public UserConfig getUserConfig()
getUserConfig
in interface UserDatabase
public void setUserConfig(UserConfig userConfig)
setUserConfig
in interface UserDatabase
userConfig
- The new UserConfig listenerpublic java.lang.String getHome(java.lang.String user)
getHome
in interface UserDatabase
user
- User for which a home directory should be retrievedpublic java.util.Enumeration<java.lang.String> getUsers()
getUsers
in interface UserDatabase
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.