Пример #1
0
  public List<PlaceWs2> getFirstPlaceListPage() {

    if (getArea() == null) return null;
    getIncludes().setPlaces(true);
    if (placeBrowse == null) initBrowses();
    if (placeBrowse == null) return null;

    List<PlaceWs2> list = placeBrowse.getFirstPage();

    for (PlaceWs2 rel : list) {
      getArea().addPlace(rel);
    }

    return list;
  }
Пример #2
0
  // Places --------------------------------------------------------------------//
  public List<PlaceWs2> getFullPlaceList() {

    if (getArea() == null) return null;
    getIncludes().setPlaces(true);
    if (placeBrowse == null) initBrowses();
    if (placeBrowse == null) return null;
    if (!hasMorePlaces()) return getArea().getPlaces();

    List<PlaceWs2> list = placeBrowse.getFullList();

    for (PlaceWs2 rel : list) {
      getArea().addPlace(rel);
    }

    return list;
  }
Пример #3
0
 public boolean hasMorePlaces() {
   if (getArea() == null) return true;
   if (placeBrowse == null) return true;
   return placeBrowse.hasMore();
 }