net.sourceforge.atunes.kernel.executors
Class BackgroundExecutor

java.lang.Object
  extended by net.sourceforge.atunes.kernel.executors.BackgroundExecutor

public class BackgroundExecutor
extends java.lang.Object

This class is responsible of execute operations in secondary threads.


Constructor Summary
BackgroundExecutor()
           
 
Method Summary
static void addLyrics(java.util.List<AudioFile> files)
          Adds the lyrics.
static void changeAlbumNames(java.util.List<AudioFile> files)
          Change album names.
static void changeGenres(java.util.List<AudioFile> files)
          Change genres.
static void changeTags(java.util.List<AudioFile> files, java.util.Map<java.lang.String,?> properties)
          Change tags.
static void changeTitles(java.util.List<AudioFile> files)
          Change titles.
static void changeTitles(java.util.Map<AudioFile,java.lang.String> filesAndTitles)
          Change titles.
static void changeTrackNumbers(java.util.Map<AudioFile,java.lang.Integer> filesAndTracks)
          Change track numbers.
static void clearTags(java.util.List<AudioFile> files)
          Clear tags.
static ExportFilesProcess exportFiles(java.util.List<AudioFile> songs, int exportStructure, java.lang.String filePattern, java.lang.String path, boolean isMp3Device)
          Exports songs from the repository to an external path.
static void getCoversFromAmazon(Artist artist, CoverNavigatorFrame coverNavigatorFrame, CoverNavigatorController coverNavigatorController)
          Gets the covers from amazon.
static void loadPlayList(java.util.List<java.lang.String> files)
          Load play list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackgroundExecutor

public BackgroundExecutor()
Method Detail

addLyrics

public static void addLyrics(java.util.List<AudioFile> files)
Adds the lyrics.

Parameters:
files - the files

changeAlbumNames

public static void changeAlbumNames(java.util.List<AudioFile> files)
Change album names.

Parameters:
files - the files

changeGenres

public static void changeGenres(java.util.List<AudioFile> files)
Change genres.

Parameters:
files - the files

changeTags

public static void changeTags(java.util.List<AudioFile> files,
                              java.util.Map<java.lang.String,?> properties)
Change tags.

Parameters:
files - the files
properties - the properties

changeTitles

public static void changeTitles(java.util.List<AudioFile> files)
Change titles.

Parameters:
files - the files

changeTitles

public static void changeTitles(java.util.Map<AudioFile,java.lang.String> filesAndTitles)
Change titles.

Parameters:
filesAndTitles - the files and titles

changeTrackNumbers

public static void changeTrackNumbers(java.util.Map<AudioFile,java.lang.Integer> filesAndTracks)
Change track numbers.

Parameters:
filesAndTracks - the files and tracks

clearTags

public static void clearTags(java.util.List<AudioFile> files)
Clear tags.

Parameters:
files - the files

exportFiles

public static ExportFilesProcess exportFiles(java.util.List<AudioFile> songs,
                                             int exportStructure,
                                             java.lang.String filePattern,
                                             java.lang.String path,
                                             boolean isMp3Device)
Exports songs from the repository to an external path.

Parameters:
songs - List of songs to be exported
exportStructure - Folder structure, either 1, 2 or 3
filePattern - Filename pattern
path - Where to export
isMp3Device - If on a non-Windows system it is needed to write on a device/partition with Windows filesystem limitation set to true.
Returns:
Returns a process

getCoversFromAmazon

public static void getCoversFromAmazon(Artist artist,
                                       CoverNavigatorFrame coverNavigatorFrame,
                                       CoverNavigatorController coverNavigatorController)
Gets the covers from amazon.

Parameters:
artist - the artist
coverNavigatorFrame - the cover navigator frame
coverNavigatorController - the cover navigator controller

loadPlayList

public static void loadPlayList(java.util.List<java.lang.String> files)
Load play list.

Parameters:
files - the files


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.