Пример #1
0
  public List<ArtistWs2> getFirstArtistListPage() {

    if (getArea() == null) return null;
    getIncludes().setArtists(true);
    if (artistBrowse == null) initBrowses();
    if (artistBrowse == null) return null;

    List<ArtistWs2> list = artistBrowse.getFirstPage();

    for (ArtistWs2 rel : list) {
      getArea().addArtist(rel);
    }

    return list;
  }
Пример #2
0
  public List<ArtistWs2> getNextArtistListPage() {

    if (getArea() == null) return null;
    getIncludes().setArtists(true);
    if (artistBrowse == null) initBrowses();
    if (artistBrowse == null) return null;
    if (!hasMoreArtists()) return new ArrayList<ArtistWs2>();

    List<ArtistWs2> list = artistBrowse.getNextPage();

    for (ArtistWs2 rel : list) {
      getArea().addArtist(rel);
    }

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