예제 #1
0
 /**
  * Constructor to initialize iterator.
  *
  * @throws Exception
  */
 public UIInvitations() throws Exception {
   uiProfileUserSearch = createUIComponent(UIProfileUserSearch.class, null, "UIProfileUserSearch");
   uiProfileUserSearch.setTypeOfRelation(INCOMING_STATUS);
   setHasPeopleTab(true);
   uiProfileUserSearch.setHasConnectionLink(false);
   uiProfileUserSearch.setLoadFromSearch(false);
   addChild(uiProfileUserSearch);
   init();
 }
예제 #2
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;
  }