Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 private String getPassword(BareJID user) throws UserNotFoundException, TigaseDBException {
   return repo.getData(user, PASSWORD_KEY);
 }
Exemplo n.º 3
0
 /**
  * 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);
 }
Exemplo n.º 4
0
 /**
  * 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);
 }
Exemplo n.º 5
0
 /**
  * Method description
  *
  * @param domain
  * @return
  */
 @Override
 public long getUsersCount(String domain) {
   return repo.getUsersCount(domain);
 }
Exemplo n.º 6
0
 /**
  * Method description
  *
  * @return
  */
 @Override
 public long getUsersCount() {
   return repo.getUsersCount();
 }
Exemplo n.º 7
0
 /**
  * Method description
  *
  * @return
  */
 @Override
 public String getResourceUri() {
   return repo.getResourceUri();
 }