org.apache.catalina.startup

Class HomesUserDatabase

public final class HomesUserDatabase extends Object implements 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.

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig R. McClanahan

Constructor Summary
HomesUserDatabase()
Initialize a new instance of this user database component.
Method Summary
StringgetHome(String user)
Return an absolute pathname to the home directory for the specified user.
UserConfiggetUserConfig()
Return the UserConfig listener with which we are associated.
EnumerationgetUsers()
Return an enumeration of the usernames defined on this server.
voidsetUserConfig(UserConfig userConfig)
Set the UserConfig listener with which we are associated.

Constructor Detail

HomesUserDatabase

public HomesUserDatabase()
Initialize a new instance of this user database component.

Method Detail

getHome

public String getHome(String user)
Return an absolute pathname to the home directory for the specified user.

Parameters: user User for which a home directory should be retrieved

getUserConfig

public UserConfig getUserConfig()
Return the UserConfig listener with which we are associated.

getUsers

public Enumeration getUsers()
Return an enumeration of the usernames defined on this server.

setUserConfig

public void setUserConfig(UserConfig userConfig)
Set the UserConfig listener with which we are associated.

Parameters: userConfig The new UserConfig listener

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.