Methods Summary |
---|
public boolean | addUser(User user)Adds a user to the repository with the specified User object.
|
public void | addUser(java.lang.String name, java.lang.Object attributes)Adds a user to the repository with the specified attributes. In current
implementations, the Object attributes is generally a String password.
|
public boolean | addUser(java.lang.String username, java.lang.String password)Adds a user to the repository with the specified password
|
public boolean | contains(java.lang.String name)Returns whether or not this user is in the repository
|
public boolean | containsCaseInsensitive(java.lang.String name)Returns whether or not this user is in the repository. Names are
matched on a case insensitive basis.
|
public int | countUsers()Returns a count of the users in the repository.
|
public java.lang.String | getRealName(java.lang.String name)Returns the user name of the user matching name on an equalsIgnoreCase
basis. Returns null if no match.
|
public User | getUserByName(java.lang.String name)Get the user object with the specified user name. Return null if no
such user.
|
public User | getUserByNameCaseInsensitive(java.lang.String name)Get the user object with the specified user name. Match user naems on
a case insensitive basis. Return null if no such user.
|
public java.util.Iterator | list()List users in repository.
|
public void | removeUser(java.lang.String name)Removes a user from the repository
|
public boolean | test(java.lang.String name, java.lang.String password)Test if user with name 'name' has password 'password'.
|
public boolean | updateUser(User user)Update the repository with the specified user object. A user object
with this username must already exist.
|