|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.busyboxes.agoo.service.impl.WatchedFolderServiceImpl
public class WatchedFolderServiceImpl
Implementation of the watched folder service
Constructor Summary | |
---|---|
WatchedFolderServiceImpl()
|
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 |
void |
setFileSystemDAO(FileSystemDAO fileSystemDAO)
The file system DAO used in this service |
void |
setWatchedFolderDAO(WatchedFolderDAO watchedFolderDAO)
The watched folders DAO used in this service |
void |
setWatcherTaskService(WatcherTaskService watcherTaskService)
The service used to create new task |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WatchedFolderServiceImpl()
Method Detail |
---|
public java.util.List<WebWatchedFolder> getAllWatchedFolders()
WatchedFolderService
getAllWatchedFolders
in interface WatchedFolderService
WatchedFolderService.getAllWatchedFolders()
public WebWatchedFolder createWatchedFolderByPath(java.lang.String folderPath)
WatchedFolderService
createWatchedFolderByPath
in interface WatchedFolderService
folderPath
- a folder's path
WatchedFolderService.createWatchedFolderByPath(String)
public void setWatchedFolderDAO(WatchedFolderDAO watchedFolderDAO)
watchedFolderDAO
- the watched files DAOpublic WebWatchedFolder getWatchedFolderById(java.lang.Long folderId)
WatchedFolderService
getWatchedFolderById
in interface WatchedFolderService
folderId
- the watched folder ID
WatchedFolderService.getWatchedFolderById(Long)
public void refreshWatchedFilesInWatchedFolder(java.lang.Long folderId)
WatchedFolderService
refreshWatchedFilesInWatchedFolder
in interface WatchedFolderService
folderId
- the watched folder IDWatchedFolderService.refreshWatchedFilesInWatchedFolder(Long)
public void setFileSystemDAO(FileSystemDAO fileSystemDAO)
fileSystemDAO
- the fileSystemDAO to setpublic void deleteWatchedFolder(java.lang.Long folderId)
WatchedFolderService
deleteWatchedFolder
in interface WatchedFolderService
folderId
- the watched folder IDWatchedFolderService.deleteWatchedFolder(Long)
public void setWatcherTaskService(WatcherTaskService watcherTaskService)
taskTaskService
- the taskTaskService to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |