@Transactional public List<Playlist> getAllLists( User user, boolean copySongs ) { List<MDOPlaylist> playlists = daoPlaylist.getAll( user.getLogin() ); List<Playlist> result = new ArrayList<Playlist>(); for ( MDOPlaylist mdoPlaylist : playlists ) { Playlist pl = new Playlist( mdoPlaylist, copySongs ); result.add( pl ); } return result; }
@Transactional public Playlist getPlaylist( User user, long playlistSid, boolean copySongs ) throws ResourceNotFoundMessicException { MDOPlaylist mdoPlaylist = daoPlaylist.get( user.getLogin(), playlistSid ); if ( mdoPlaylist != null ) { Playlist pl = new Playlist( mdoPlaylist, copySongs ); return pl; } else { throw new ResourceNotFoundMessicException( "Playlist not found!" ); } }
List<MDOPlaylist> playlists = this.daoPlaylist.getAllDLNA();
throws IOException, SidNotFoundMessicException MDOPlaylist mdoplaylist = daoPlaylist.get( user.getLogin(), playlistSid ); if ( mdoplaylist == null )