Examples of Album


Examples of com.github.hakko.musiccabinet.domain.model.music.Album

  public Album mapRow(ResultSet rs, int rowNum) throws SQLException {
    int artistId = rs.getInt(1);
    String artistName = rs.getString(2);
    int albumId = rs.getInt(3);
    String albumName = rs.getString(4);
    return new Album(new Artist(artistId, artistName), albumId, albumName);
  }
View Full Code Here

Examples of com.github.hakko.musiccabinet.domain.model.music.Album

    if (!coverArtEmbedded) {
      coverArtFile = getFileName(rs.getString(8), rs.getString(9));
    }
    String coverArtURL = rs.getString(10);
    List<Integer> trackIds = asList((Integer[]) rs.getArray(11).getArray());
    return new Album(artistId, artistName, albumId, albumName, year, coverArtFile,
        coverArtEmbedded, coverArtURL, trackIds);
  }
View Full Code Here

Examples of com.github.hakko.musiccabinet.domain.model.music.Album

        String albumName = rs.getString(1);
        ai.setMediumImageUrl(rs.getString(2));
        ai.setLargeImageUrl(rs.getString(3));
        ai.setExtraLargeImageUrl(rs.getString(4));
        String artistName = rs.getString(5);
        ai.setAlbum(new Album(artistName, albumName));
        return ai;
      }
    });

    return albums;
View Full Code Here

Examples of com.github.hakko.musiccabinet.domain.model.music.Album

          String albumName = rs.getString(1);
          ai.setMediumImageUrl(rs.getString(2));
          ai.setLargeImageUrl(rs.getString(3));
          ai.setExtraLargeImageUrl(rs.getString(4));
          int albumId = rs.getInt(5);
          ai.setAlbum(new Album(albumName));
          albumInfos.put(albumId, ai);
        }
      });
    } catch (DataAccessException e) {
      LOG.warn("Could not fetch album infos for paths " + paths + "!", e);
View Full Code Here

Examples of com.github.hakko.musiccabinet.domain.model.music.Album

        + " order by a.id limit 3000";

    List<Album> albums = jdbcTemplate.query(sql, new RowMapper<Album>() {
      @Override
      public Album mapRow(ResultSet rs, int rowNum) throws SQLException {
        return new Album(rs.getString(1), rs.getString(2));
      }
    });

    return albums;
  }
View Full Code Here

Examples of com.groovesquid.model.Album

        if(searchQuery.contains("http://grooveshark.com/")) {
            Pattern p = Pattern.compile(".*/\\s*(.*)");
            Matcher m = p.matcher(searchQuery);
            if(m.find()) {
                final String albumID = m.group(1);
                Album album = searchAlbumByID(albumID);
                if(album != null) {
                    albums.add(album);
                    return albums;
                }
            }
        }
       
        if(Utils.isNumeric(searchQuery)) {
            Album album = searchAlbumByID(searchQuery);
            if(album != null) {
                albums.add(album);
                return albums;
            }
        }
       
        HashMap<String, Object>[] result = gson.fromJson(Grooveshark.sendRequest("getResultsFromSearch", new HashMap<String, Object>(){{
            put("query", searchQuery);
            put("type", new String[] {"Albums"});
            put("guts", "0");
            put("ppOverride", "false");
        }}), SearchResponse.class).getResult().getResult().getAlbums();

        if(result.length < 1) {
            JOptionPane.showMessageDialog(Main.getGui(), "No search results for \"" + searchQuery + "\".");
        }

        for (HashMap<String, Object> hm : result) {
            albums.add(new Album(
                hm.get("AlbumID"),
                hm.get("Name"),
                hm.get("ArtistID"),
                hm.get("ArtistName")
            ));
View Full Code Here

Examples of com.jitcaforwin.extended.api.track.Album

   *            Album artist of the album.
   * @return The (created) album.
   * @throws JitcaException if an error occurs.
   */
  public Album getAlbum(String title, Artist albumArtist){
    Album album = searchForAlbum(title, albumArtist);
    if (album != null)
      return album;
    else
      return addAlbum(title, albumArtist);
  }
View Full Code Here

Examples of com.linkedin.restli.example.Album

    server.start();

    Photo photoEntity = REST_CLIENT.sendRequest(PHOTOS_BUILDERS.get().id(1L).build()).getResponseEntity();
    Assert.assertEquals(photoEntity.getTitle(), "Photo 1");

    Album albumEntity = REST_CLIENT.sendRequest(ALBUMS_BUILDERS.get().id(1L).build()).getResponseEntity();
    Assert.assertEquals(albumEntity.getTitle(), "Awesome Album #1");

    server.stop();
  }
View Full Code Here

Examples of com.pugh.sockso.music.Album

        final Downloader d = new Downloader();
       
        d.setProperties( p );
       
        final Artist artist = TestUtils.getArtist();
        final Album album = TestUtils.getAlbum(artist);
        final Genre genre = TestUtils.getGenre();
        final Track track = new Track.Builder()
                .artist( artist )
                .album( album )
                .genre( genre )
                .id(3)
                .name("track")
                .number(4)
                .path("")
                .dateAdded(new Date())
                .build();

        final String path = d.getTrackZipPath( track );
       
        assertTrue( path.contains(artist.getName()) );
        assertTrue( path.contains(album.getName()) );
        assertTrue( path.contains(track.getName()) );
        assertTrue( path.contains("04") ); // tens should be padded
       
    }
View Full Code Here

Examples of com.skyline.wo.model.Album

    }
    int authority = AuthorityUtil.getAuthority(null, viewerId);

    page.setSize(listPhotoPageSize);

    Album album = albumService.getAlbumById(albumId);
    // 判断权限
    if (album != null) {
      int albumAuth = album.getAuthority();
      if (authority < albumAuth) {
        throw new NoVisitPermissionException("ID为:" + viewerId + "的用户没有访问ID为:"
            + album.getId() + "相册的权限");
      }
    } else {
      throw new NoVisitPermissionException("ID:" + viewerId + "没有访问相册的权限");
    }
    List<Photo> photos = albumService.listPhotosOfAlbum(albumId, viewerId, authority, page,
        addVisitCount);

    ModelAndView mav = new ModelAndView(ViewPaths.ALBUM_VIEWALBUM);
    mav.addObject("ownerId", album.getOwnerId());
    mav.addObject("ownerName", album.getOwnerNickname());
    mav.addObject("albumId", album.getId());
    mav.addObject("page", page);
    mav.addObject("photos", photos);
    mav.addObject("album", album);

    return mav;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.