UserDatabase interface considers all directories in a directory whose
pathname is specified to our constructor to be "home" directories for those users.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | homes
The set of home directories for all defined users, keyed by username. |
| private UserConfig | userConfig
The UserConfig listener with which we are associated. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getHome(String
User for which a home directory should be retrieved user)Implements org. Return an absolute pathname to the home directory for the specified user. |
| public UserConfig | getUserConfig()
Implements org. Return the UserConfig listener with which we are associated. |
| public Enumeration | getUsers()
Implements org. Return an enumeration of the user names defined on this server. |
| private void | |
| public void | setUserConfig(UserConfig
The new UserConfig listener userConfig)Implements org. Set the UserConfig listener with which we are associated. |
| homes | back to summary |
|---|---|
| private final Map<String, String> homes The set of home directories for all defined users, keyed by username. | |
| userConfig | back to summary |
|---|---|
| private UserConfig userConfig The UserConfig listener with which we are associated. | |
| HomesUserDatabase | back to summary |
|---|---|
| public HomesUserDatabase() | |
| getHome | back to summary |
|---|---|
| public String getHome(String user) Implements org. Return an absolute pathname to the home directory for the specified user.
| |
| getUserConfig | back to summary |
|---|---|
| public UserConfig getUserConfig() Implements org. Return the UserConfig listener with which we are associated.
| |
| getUsers | back to summary |
|---|---|
| public Enumeration Implements org. Return an enumeration of the user names defined on this server.
| |
| init | back to summary |
|---|---|
| private void init() Initialize our set of users and home directories. | |
| setUserConfig | back to summary |
|---|---|
| public void setUserConfig(UserConfig userConfig) Implements org. Set the UserConfig listener with which we are associated.
| |