Esempio n. 1
0
  /**
   * Gets list of all type of people.
   *
   * @return the peopleList
   * @throws Exception
   * @since 1.2.2
   */
  public List<Identity> getPeopleList() throws Exception {
    if (!uiProfileUserSearch.isLoadFromSearch()) {
      this.peopleList = loadPeople(0, currentLoadIndex + loadingCapacity);
    }
    uiProfileUserSearch.setLoadFromSearch(false);

    int realPeopleListSize = this.peopleList.size();

    setEnableLoadNext(
        (realPeopleListSize >= RECEIVED_INVITATION_PER_PAGE)
            && (realPeopleListSize < getPeopleNum()));

    return this.peopleList;
  }