Exemple #1
0
  /**
   * Gets the list of com.redhat.rhn.domain.user.User objects taking in DataResult. Do we need to
   * make this public?
   *
   * @param dataresult the dataresult object containing the results of a query
   * @return Returns the userList
   */
  private List<User> getUsers(DataResult dataresult) {
    List userList = new ArrayList();
    Collection userIds = getListFromResult(dataresult, USER_ID_KEY);

    if (!userIds.isEmpty()) {
      userList = UserFactory.lookupByIds(userIds);
    }
    return userList;
  }