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, supportVirtualHosting
public void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config) throws org.apache.commons.configuration.ConfigurationException
doConfigure
in class AbstractUsersRepository
org.apache.commons.configuration.ConfigurationException
AbstractUsersRepository.doConfigure(HierarchicalConfiguration)
public User getUserByName(String name) throws UsersRepositoryException
UsersRepository
name
- the name of the user to retrieveUsersRepositoryException
- if errorUsersRepository.getUserByName(String)
public void updateUser(User user) throws UsersRepositoryException
UsersRepository
UsersRepositoryException
- if errorUsersRepository.updateUser(User)
public void removeUser(String name) throws UsersRepositoryException
UsersRepository
name
- the user to remove from the repositoryUsersRepositoryException
- if errorUsersRepository.removeUser(String)
public boolean contains(String name) throws UsersRepositoryException
UsersRepository
name
- the name to check in the repositoryUsersRepositoryException
- if errorUsersRepository.contains(String)
public boolean test(String name, String password) throws UsersRepositoryException
UsersRepository
name
- the name of the user to be testedpassword
- the password to be testedUsersRepositoryException
- if errorUsersRepository.test(String, String)
public int countUsers() throws UsersRepositoryException
UsersRepository
UsersRepositoryException
- if errorUsersRepository.countUsers()
public Iterator<String> list() throws UsersRepositoryException
UsersRepository
UsersRepositoryException
- if errorUsersRepository.list()
protected void doAddUser(String username, String password) throws UsersRepositoryException
AbstractUsersRepository
doAddUser
in class AbstractUsersRepository
UsersRepositoryException
- If an error occurredAbstractUsersRepository.doAddUser(String, String)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.