cluster5.terminal.utils
Class FileDatabase

java.lang.Object
  extended by cluster5.terminal.utils.FileDatabase

public class FileDatabase
extends java.lang.Object


Constructor Summary
FileDatabase()
           
 
Method Summary
 java.util.List<SharedFile> listFiles()
           
 java.util.List<SharedFile> listFilesToUpdate(java.util.List<SharedFile> newList)
          Compares new list with a list of currently stored files.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDatabase

public FileDatabase()
Method Detail

listFilesToUpdate

public java.util.List<SharedFile> listFilesToUpdate(java.util.List<SharedFile> newList)
Compares new list with a list of currently stored files. Files which are older or are not present at all are updated in the inner list and also returned to be downloaded.

Parameters:
newList -
Returns:
list of files to update

listFiles

public java.util.List<SharedFile> listFiles()