org.apache.james.user.hbase
Class HBaseUsersRepository

java.lang.Object
  extended by org.apache.james.user.lib.AbstractUsersRepository
      extended by 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.


Constructor Summary
HBaseUsersRepository()
           
 
Method Summary
 boolean contains(String name)
           
 int countUsers()
           
protected  void doAddUser(String username, String password)
           
 void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config)
           
 User getUserByName(String name)
           
 Iterator<String> list()
           
 void removeUser(String name)
           
 boolean test(String name, String password)
           
 void updateUser(User user)
           
 
Methods inherited from class org.apache.james.user.lib.AbstractUsersRepository
addUser, configure, getLogger, isValidUsername, setDomainList, setEnableVirtualHosting, setLog, supportVirtualHosting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HBaseUsersRepository

public HBaseUsersRepository()
Method Detail

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.