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