/**
  * Describe <code>addUser</code> method here.
  *
  * @param user a <code>String</code> value
  * @param password a <code>String</code> value
  * @exception UserExistsException if an error occurs
  * @exception TigaseDBException if an error occurs
  */
 @Override
 public void addUser(BareJID user, final String password)
     throws UserExistsException, TigaseDBException {
   repo.addUser(user);
   log.info("Repo user added: " + user);
   updatePassword(user, password);
   log.info("Password updated: " + user + ":" + password);
 }
 private String getPassword(BareJID user) throws UserNotFoundException, TigaseDBException {
   return repo.getData(user, PASSWORD_KEY);
 }
 /**
  * Describe <code>updatePassword</code> method here.
  *
  * @param user a <code>String</code> value
  * @param password a <code>String</code> value
  * @exception TigaseDBException if an error occurs
  */
 @Override
 public void updatePassword(BareJID user, final String password) throws TigaseDBException {
   repo.setData(user, PASSWORD_KEY, password);
 }
 /**
  * Describe <code>removeUser</code> method here.
  *
  * @param user a <code>String</code> value
  * @exception UserNotFoundException if an error occurs
  * @exception TigaseDBException if an error occurs
  */
 @Override
 public void removeUser(BareJID user) throws UserNotFoundException, TigaseDBException {
   repo.removeUser(user);
 }
 /**
  * Method description
  *
  * @param domain
  * @return
  */
 @Override
 public long getUsersCount(String domain) {
   return repo.getUsersCount(domain);
 }
 /**
  * Method description
  *
  * @return
  */
 @Override
 public long getUsersCount() {
   return repo.getUsersCount();
 }
 /**
  * Method description
  *
  * @return
  */
 @Override
 public String getResourceUri() {
   return repo.getResourceUri();
 }