public class HBaseUsersRepository extends AbstractUsersRepository
| Constructor and Description |
|---|
HBaseUsersRepository() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String name)
Returns whether or not this user is in the repository
|
int |
countUsers()
Returns a count of the users in the repository.
|
protected void |
doAddUser(String username,
String password)
Add the user with the given username and password
|
void |
doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config) |
User |
getUserByName(String name)
Get the user object with the specified user name.
|
Iterator<String> |
list()
List users in repository.
|
void |
removeUser(String name)
Removes a user from the repository
|
boolean |
test(String name,
String password)
Test if user with name 'name' has password 'password'.
|
void |
updateUser(User user)
Update the repository with the specified user object.
|
addUser, configure, getLogger, isValidUsername, setDomainList, setEnableVirtualHosting, setLog, supportVirtualHostingpublic void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config)
throws org.apache.commons.configuration.ConfigurationException
doConfigure in class AbstractUsersRepositoryorg.apache.commons.configuration.ConfigurationExceptionAbstractUsersRepository.doConfigure(HierarchicalConfiguration)public User getUserByName(String name) throws UsersRepositoryException
UsersRepositoryname - the name of the user to retrieveUsersRepositoryException - if errorUsersRepository.getUserByName(String)public void updateUser(User user) throws UsersRepositoryException
UsersRepositoryUsersRepositoryException - if errorUsersRepository.updateUser(User)public void removeUser(String name) throws UsersRepositoryException
UsersRepositoryname - the user to remove from the repositoryUsersRepositoryException - if errorUsersRepository.removeUser(String)public boolean contains(String name) throws UsersRepositoryException
UsersRepositoryname - the name to check in the repositoryUsersRepositoryException - if errorUsersRepository.contains(String)public boolean test(String name, String password) throws UsersRepositoryException
UsersRepositoryname - the name of the user to be testedpassword - the password to be testedUsersRepositoryException - if errorUsersRepository.test(String, String)public int countUsers()
throws UsersRepositoryException
UsersRepositoryUsersRepositoryException - if errorUsersRepository.countUsers()public Iterator<String> list() throws UsersRepositoryException
UsersRepositoryUsersRepositoryException - if errorUsersRepository.list()protected void doAddUser(String username, String password) throws UsersRepositoryException
AbstractUsersRepositorydoAddUser in class AbstractUsersRepositoryUsersRepositoryException - If an error occurredAbstractUsersRepository.doAddUser(String, String)Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.