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; }
// 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; }
public boolean hasMorePlaces() { if (getArea() == null) return true; if (placeBrowse == null) return true; return placeBrowse.hasMore(); }