ch.busyboxes.agoo.service
Interface WatchedFileService

All Known Implementing Classes:
WatchedFileServiceImpl

public interface WatchedFileService

Interface to Watched files Service

Author:
julien@busyboxes.ch

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
 

Method Detail

getNumberOfFilesWatched

long getNumberOfFilesWatched()
Returns the total number of files watched

Returns:
total number of files watched

checkWatchedFile

void checkWatchedFile(long fileId)
Checks a watched file

Parameters:
fileId - the watched file id

getWatchedFilesByFolderPaged

java.util.List<WebWatchedFile> 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 for web display

getWatchedFileById

WebWatchedFile getWatchedFileById(java.lang.Long fileId)
Return the file based on its ID

Parameters:
fileId - the id of the watched file
Returns:
the watched file information


Copyright © 2009. All Rights Reserved.