ch.busyboxes.agoo.dao
Interface WatchedFileDAO

All Known Implementing Classes:
WatchedFileDAOImpl

public interface WatchedFileDAO

Interface for accessing watched files

Author:
julien@busyboxes.ch

Method Summary
 long getTotalFilesWatched()
          Returns the total number of files watched
 WatchedFile getWatchedFileById(java.lang.Long fileId)
          Gets a watched file by ID
 java.util.List<WatchedFile> getWatchedFilesByFolderPaged(java.lang.Long folderId, int filesPerPage, int page)
          Returns the files associated with the given folder using paging
 void saveWatchedFile(WatchedFile file)
          Saves the given watched file
 

Method Detail

getWatchedFileById

WatchedFile getWatchedFileById(java.lang.Long fileId)
Gets a watched file by ID

Parameters:
fileId - the watched file ID
Returns:
the watched file

saveWatchedFile

void saveWatchedFile(WatchedFile file)
Saves the given watched file

Parameters:
file - the watched file to be saved

getTotalFilesWatched

long getTotalFilesWatched()
Returns the total number of files watched

Returns:
total number of files watched

getWatchedFilesByFolderPaged

java.util.List<WatchedFile> getWatchedFilesByFolderPaged(java.lang.Long folderId,
                                                         int filesPerPage,
                                                         int page)
Returns the files associated with the given folder using paging

Parameters:
folderId - the folder's id
filesPerPage - the number of files per page
page - the page number
Returns:
the list of watched files


Copyright © 2009. All Rights Reserved.