|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.importer.ImporterImpl
public class ImporterImpl
Implements Importer interface for importing music archives into the music database.
Constructor Summary | |
---|---|
ImporterImpl()
|
Method Summary | |
---|---|
Dao |
getDao()
Getter for the Dao. |
McService |
getMcService()
Getter for the McService. |
void |
importMusic(MusicArchiveBean bean)
Import the music described in the MusicArchiveBean into the database. |
static java.lang.String |
moveMP3ToLibrary(MusicArchiveEntryBean entryToImport)
Moves an entry to its final destination. |
void |
setDao(Dao dao)
Setter for the Dao. |
void |
setMcService(McService mcService)
Setter for the McService. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImporterImpl()
Method Detail |
---|
public void setDao(Dao dao)
dao
- The Dao.public Dao getDao()
public McService getMcService()
public void setMcService(McService mcService)
mcService
- public void importMusic(MusicArchiveBean bean) throws ImporterException
Importer
importMusic
in interface Importer
bean
- Contains the information about the music to be imported. If this
is null nothing happens.
ImporterException
- Could not extract the archive to temporary directory.public static java.lang.String moveMP3ToLibrary(MusicArchiveEntryBean entryToImport) throws ImporterException
entryToImport
- The entry to import.
ImporterException
- when the move failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |