|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.busyboxes.agoo.service.impl.WatchedFileServiceImpl
public class WatchedFileServiceImpl
Implementation of the watched file service
Constructor Summary | |
---|---|
WatchedFileServiceImpl()
|
Method Summary | |
---|---|
void |
checkWatchedFile(long fileId)
Checks a watched file |
long |
getNumberOfFilesWatched()
Returns the total number of files watched |
WebWatchedFile |
getWatchedFileById(java.lang.Long fileId)
Return the file based on its ID |
java.util.List<WebWatchedFile> |
getWatchedFilesByFolderPaged(java.lang.Long folderId,
int filesPerPage,
int page)
Returns the files associated with the given folder using paging |
void |
setFileSystemDAO(FileSystemDAO fileSystemDAO)
Sets the file system DAO |
void |
setWatchedFileDAO(WatchedFileDAO watchedFileDAO)
The watched files DAO used in this service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WatchedFileServiceImpl()
Method Detail |
---|
public long getNumberOfFilesWatched()
getNumberOfFilesWatched
in interface WatchedFileService
public void setWatchedFileDAO(WatchedFileDAO watchedFileDAO)
watchedFileDAO
- the watched files DAOpublic void checkWatchedFile(long fileId)
WatchedFileService
checkWatchedFile
in interface WatchedFileService
fileId
- the watched file idWatchedFileService.checkWatchedFile(long)
public void setFileSystemDAO(FileSystemDAO fileSystemDAO)
fileSystemDAO
- the fileSystemDAO to setpublic java.util.List<WebWatchedFile> getWatchedFilesByFolderPaged(java.lang.Long folderId, int filesPerPage, int page)
WatchedFileService
getWatchedFilesByFolderPaged
in interface WatchedFileService
folderId
- the folder's idfilesPerPage
- the number of files per pagepage
- the page number
WatchedFileService#getWatchedFilesByFolderPaged(Long, int, Integer)
public WebWatchedFile getWatchedFileById(java.lang.Long fileId)
WatchedFileService
getWatchedFileById
in interface WatchedFileService
fileId
- the id of the watched file
WatchedFileService.getWatchedFileById(Long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |