Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.empeg.emplode
Class EmplodeSyncManager  view EmplodeSyncManager download EmplodeSyncManager.java

java.lang.Object
  extended byorg.jempeg.empeg.emplode.EmplodeSyncManager

public class EmplodeSyncManager
extends java.lang.Object

Contains the set of Emplode methods that control uploading and downloading.

Version:
$Revision: 1.1 $

Nested Class Summary
protected  class EmplodeSyncManager.DownloadRunnable
           
protected  class EmplodeSyncManager.SynchronizeRunnable
           
protected  class EmplodeSyncManager.UploadFilesRunnable
           
 
Field Summary
private  Emplode myEmplode
           
 
Constructor Summary
EmplodeSyncManager(Emplode _emplode)
          Instantiantes an Emplode
 
Method Summary
 void download()
          Downloads the current databases from the Empeg
 void downloadFile(org.jempeg.empeg.emplode.model.EmpegTreeNodeIfc _treeNode, java.io.File _targetDir, org.jempeg.empeg.emplode.action.ConfirmationListenerIfc _confirmationListener, org.jempeg.empeg.emplode.model.FIDChangeSet _changeSet)
          Downloads the given node from the Empeg onto your local machine.
 void downloadFiles(org.jempeg.empeg.emplode.model.EmpegTreeNodeIfc[] _treeNodes)
          Downloads the given nodes from the Empeg onto your local machine into a directory called "JEmplode Downloads".
 void downloadFiles(org.jempeg.empeg.emplode.model.EmpegTreeNodeIfc[] _treeNodes, java.io.File _targetDir)
          Downloads the given nodes from the Empeg onto your local machine using a dialog-box confirmation
 void downloadInBackground()
          Downloads the database from the Empeg in the background
 void synchronize()
          Synchronizes all pending changes to the Empeg
 void synchronizeInBackground()
          Synchronizes all pending changes to the Empeg in the background
 org.jempeg.empeg.emplode.model.FIDChangeSet uploadFiles(org.jempeg.empeg.emplode.model.EmpegPlaylistTreeNodeIfc _playlistTreeNode, org.jempeg.empeg.emptool.ImportFileIfc[] _files)
          Uploads the given _files into the given _playlist tree node.
 void uploadFiles(org.jempeg.empeg.emplode.model.EmpegPlaylistTreeNodeIfc _playlistTreeNode, org.jempeg.empeg.emptool.ImportFileIfc[] _files, org.jempeg.empeg.emplode.model.FIDChangeSet _changeSet)
          Uploads the given _files into the given _playlist tree node.
 void uploadFilesInBackground(org.jempeg.empeg.emplode.model.EmpegPlaylistTreeNodeIfc _playlistTreeNode, org.jempeg.empeg.emptool.ImportFileIfc[] _files)
          Upload files in the background
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myEmplode

private Emplode myEmplode
Constructor Detail

EmplodeSyncManager

public EmplodeSyncManager(Emplode _emplode)
                   throws java.io.IOException
Instantiantes an Emplode

Method Detail

synchronizeInBackground

public void synchronizeInBackground()
Synchronizes all pending changes to the Empeg in the background


downloadInBackground

public void downloadInBackground()
Downloads the database from the Empeg in the background


uploadFilesInBackground

public void uploadFilesInBackground(org.jempeg.empeg.emplode.model.EmpegPlaylistTreeNodeIfc _playlistTreeNode,
                                    org.jempeg.empeg.emptool.ImportFileIfc[] _files)
Upload files in the background


synchronize

public void synchronize()
                 throws java.io.IOException
Synchronizes all pending changes to the Empeg


download

public void download()
              throws java.io.IOException
Downloads the current databases from the Empeg


uploadFiles

public org.jempeg.empeg.emplode.model.FIDChangeSet uploadFiles(org.jempeg.empeg.emplode.model.EmpegPlaylistTreeNodeIfc _playlistTreeNode,
                                                               org.jempeg.empeg.emptool.ImportFileIfc[] _files)
Uploads the given _files into the given _playlist tree node. This will upload recursively, so if one of the Files is a directory, a playlist of that name will be created and added to the given playlist. This will not throw any exceptions, so as to not abort a large upload.


uploadFiles

public void uploadFiles(org.jempeg.empeg.emplode.model.EmpegPlaylistTreeNodeIfc _playlistTreeNode,
                        org.jempeg.empeg.emptool.ImportFileIfc[] _files,
                        org.jempeg.empeg.emplode.model.FIDChangeSet _changeSet)
Uploads the given _files into the given _playlist tree node. This will upload recursively, so if one of the Files is a directory, a playlist of that name will be created and added to the given playlist. This will not throw any exceptions, so as to not abort a large upload.


downloadFiles

public void downloadFiles(org.jempeg.empeg.emplode.model.EmpegTreeNodeIfc[] _treeNodes)
                   throws java.io.IOException
Downloads the given nodes from the Empeg onto your local machine into a directory called "JEmplode Downloads".


downloadFiles

public void downloadFiles(org.jempeg.empeg.emplode.model.EmpegTreeNodeIfc[] _treeNodes,
                          java.io.File _targetDir)
                   throws java.io.IOException
Downloads the given nodes from the Empeg onto your local machine using a dialog-box confirmation


downloadFile

public void downloadFile(org.jempeg.empeg.emplode.model.EmpegTreeNodeIfc _treeNode,
                         java.io.File _targetDir,
                         org.jempeg.empeg.emplode.action.ConfirmationListenerIfc _confirmationListener,
                         org.jempeg.empeg.emplode.model.FIDChangeSet _changeSet)
                  throws java.io.IOException
Downloads the given node from the Empeg onto your local machine.