ch.busyboxes.agoo.dao
Interface WatchedFolderDAO

All Known Implementing Classes:
WatchedFolderDAOImpl

public interface WatchedFolderDAO

Interface for accessing watched folders

Author:
julien@busyboxes.ch

Method Summary
 java.util.List<WatchedFile> addWatchedFilesToFolder(WatchedFolder watchedFolder, java.util.List<java.lang.String> filePaths)
          Add the given paths to the given watched folder
 void addWatchedFileToFolder(WatchedFolder watchedFolder, java.lang.String filePath)
          Add the given path to the given watched folder
 void deleteWatchedFolder(java.lang.Long folderId)
          Delete the watched folder based on its id
 java.util.List<WatchedFolder> getAllWatchedFolders()
          Returns the list of all watched folders
 WatchedFolder getWatchedFolderById(java.lang.Long folderId)
          Gets a watched folder by ID
 void saveWatchedFolder(WatchedFolder watchedFolder)
          Saves the given WatchedFolder
 

Method Detail

getAllWatchedFolders

java.util.List<WatchedFolder> getAllWatchedFolders()
Returns the list of all watched folders

Returns:
a list of watched folders

saveWatchedFolder

void saveWatchedFolder(WatchedFolder watchedFolder)
Saves the given WatchedFolder

Parameters:
watchedFolder - the watched folder to be saved

getWatchedFolderById

WatchedFolder getWatchedFolderById(java.lang.Long folderId)
Gets a watched folder by ID

Parameters:
folderId - the watched folder ID
Returns:
the watched folder

addWatchedFileToFolder

void addWatchedFileToFolder(WatchedFolder watchedFolder,
                            java.lang.String filePath)
Add the given path to the given watched folder

Parameters:
watchedFolder - the watched folder
filePath - the path to the watched file

addWatchedFilesToFolder

java.util.List<WatchedFile> addWatchedFilesToFolder(WatchedFolder watchedFolder,
                                                    java.util.List<java.lang.String> filePaths)
Add the given paths to the given watched folder

Parameters:
watchedFolder - the watched folder
filePaths - the paths to the watched file
Returns:
new watched files created

deleteWatchedFolder

void deleteWatchedFolder(java.lang.Long folderId)
Delete the watched folder based on its id

Parameters:
folderId - the watched folder ID


Copyright © 2009. All Rights Reserved.