org.apache.james.user.hbase
Class HBaseUsersRepository
java.lang.Object
org.apache.james.user.lib.AbstractUsersRepository
org.apache.james.user.hbase.HBaseUsersRepository
- All Implemented Interfaces:
- Configurable, LogEnabled, UsersRepository
public class HBaseUsersRepository
- extends AbstractUsersRepository
Implementation of the UserRepository for a HBase persistence.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HBaseUsersRepository
public HBaseUsersRepository()
doConfigure
public void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config)
throws org.apache.commons.configuration.ConfigurationException
- Overrides:
doConfigure in class AbstractUsersRepository
- Throws:
org.apache.commons.configuration.ConfigurationException- See Also:
AbstractUsersRepository.doConfigure(HierarchicalConfiguration)
getUserByName
public User getUserByName(String name)
throws UsersRepositoryException
- Throws:
UsersRepositoryException- See Also:
UsersRepository.getUserByName(String)
updateUser
public void updateUser(User user)
throws UsersRepositoryException
- Throws:
UsersRepositoryException- See Also:
UsersRepository.updateUser(User)
removeUser
public void removeUser(String name)
throws UsersRepositoryException
- Throws:
UsersRepositoryException- See Also:
UsersRepository.removeUser(String)
contains
public boolean contains(String name)
throws UsersRepositoryException
- Throws:
UsersRepositoryException- See Also:
UsersRepository.contains(String)
test
public boolean test(String name,
String password)
throws UsersRepositoryException
- Throws:
UsersRepositoryException- See Also:
UsersRepository.test(String, String)
countUsers
public int countUsers()
throws UsersRepositoryException
- Throws:
UsersRepositoryException- See Also:
UsersRepository.countUsers()
list
public Iterator<String> list()
throws UsersRepositoryException
- Throws:
UsersRepositoryException- See Also:
UsersRepository.list()
doAddUser
protected void doAddUser(String username,
String password)
throws UsersRepositoryException
- Specified by:
doAddUser in class AbstractUsersRepository
- Throws:
UsersRepositoryException- See Also:
AbstractUsersRepository.doAddUser(String, String)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.