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