ch.busyboxes.agoo.service.impl
Class WatchedFileServiceImpl

java.lang.Object
  extended by ch.busyboxes.agoo.service.impl.WatchedFileServiceImpl
All Implemented Interfaces:
WatchedFileService

public class WatchedFileServiceImpl
extends java.lang.Object
implements WatchedFileService

Implementation of the watched file service

Author:
julien@busyboxes.ch

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

WatchedFileServiceImpl

public WatchedFileServiceImpl()
Method Detail

getNumberOfFilesWatched

public long getNumberOfFilesWatched()
Returns the total number of files watched

Specified by:
getNumberOfFilesWatched in interface WatchedFileService
Returns:
total number of files watched

setWatchedFileDAO

public void setWatchedFileDAO(WatchedFileDAO watchedFileDAO)
The watched files DAO used in this service

Parameters:
watchedFileDAO - the watched files DAO

checkWatchedFile

public void checkWatchedFile(long fileId)
Description copied from interface: WatchedFileService
Checks a watched file

Specified by:
checkWatchedFile in interface WatchedFileService
Parameters:
fileId - the watched file id
See Also:
WatchedFileService.checkWatchedFile(long)

setFileSystemDAO

public void setFileSystemDAO(FileSystemDAO fileSystemDAO)
Sets the file system DAO

Parameters:
fileSystemDAO - the fileSystemDAO to set

getWatchedFilesByFolderPaged

public java.util.List<WebWatchedFile> getWatchedFilesByFolderPaged(java.lang.Long folderId,
                                                                   int filesPerPage,
                                                                   int page)
Description copied from interface: WatchedFileService
Returns the files associated with the given folder using paging

Specified by:
getWatchedFilesByFolderPaged in interface WatchedFileService
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
See Also:
WatchedFileService#getWatchedFilesByFolderPaged(Long, int, Integer)

getWatchedFileById

public WebWatchedFile getWatchedFileById(java.lang.Long fileId)
Description copied from interface: WatchedFileService
Return the file based on its ID

Specified by:
getWatchedFileById in interface WatchedFileService
Parameters:
fileId - the id of the watched file
Returns:
the watched file information
See Also:
WatchedFileService.getWatchedFileById(Long)


Copyright © 2009. All Rights Reserved.