Exemple #1
0
 /**
  * Validate login
  *
  * @param username
  */
 public int getUserId(String username, String password) {
   return userTable.getUserIdByCredentials(username, password);
 }
Exemple #2
0
 /**
  * Validate group
  *
  * @param id
  */
 public int getGroupId(int id) {
   return userTable.getGroupId(id);
 }
Exemple #3
0
 /**
  * Validate login
  *
  * @param username, password
  * @return check - return true or false
  */
 public Boolean login(String username, String password) {
   return userTable.userExists(username, password);
 }