ch.busyboxes.agoo.service
Interface WatchedFolderService

All Known Implementing Classes:
WatchedFolderServiceImpl

public interface WatchedFolderService

Interface to Watched folder Service

Author:
julien@busyboxes.ch

Method Summary
 WebWatchedFolder createWatchedFolderByPath(java.lang.String folderPath)
          Creates a new watched folder with the given path
 void deleteWatchedFolder(java.lang.Long folderId)
          Deletes the given watched folder
 java.util.List<WebWatchedFolder> getAllWatchedFolders()
          Returns the list of all watched folders
 WebWatchedFolder getWatchedFolderById(java.lang.Long folderId)
          Gets a watched folder by ID
 void refreshWatchedFilesInWatchedFolder(java.lang.Long folderId)
          Refreshes the files present in the given folder
 

Method Detail

getAllWatchedFolders

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

Returns:
the list of all watched folders

createWatchedFolderByPath

WebWatchedFolder createWatchedFolderByPath(java.lang.String folderPath)
Creates a new watched folder with the given path

Parameters:
folderPath - a folder's path
Returns:
the created watched folder

getWatchedFolderById

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

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

refreshWatchedFilesInWatchedFolder

void refreshWatchedFilesInWatchedFolder(java.lang.Long folderId)
Refreshes the files present in the given folder

Parameters:
folderId - the watched folder ID

deleteWatchedFolder

void deleteWatchedFolder(java.lang.Long folderId)
Deletes the given watched folder

Parameters:
folderId - the watched folder ID


Copyright © 2009. All Rights Reserved.