Methods Summary |
---|
public java.lang.String | getHome(java.lang.String user)Return an absolute pathname to the home directory for the specified user.
return ((String) homes.get(user));
|
public UserConfig | getUserConfig()Return the UserConfig listener with which we are associated.
// ----------------------------------------------------------- Properties
return (this.userConfig);
|
public java.util.Enumeration | getUsers()Return an enumeration of the usernames defined on this server.
return (homes.keys());
|
private void | init()Initialize our set of users and home directories.
String homeBase = userConfig.getHomeBase();
File homeBaseDir = new File(homeBase);
if (!homeBaseDir.exists() || !homeBaseDir.isDirectory())
return;
String homeBaseFiles[] = homeBaseDir.list();
for (int i = 0; i < homeBaseFiles.length; i++) {
File homeDir = new File(homeBaseDir, homeBaseFiles[i]);
if (!homeDir.isDirectory() || !homeDir.canRead())
continue;
homes.put(homeBaseFiles[i], homeDir.toString());
}
|
public void | setUserConfig(UserConfig userConfig)Set the UserConfig listener with which we are associated.
this.userConfig = userConfig;
init();
|