ch.busyboxes.agoo.model
Class WatchedFile

java.lang.Object
  extended by ch.busyboxes.agoo.model.WatchedFile

public class WatchedFile
extends java.lang.Object

A file watched by the Agoo system

Author:
julien@busyboxes.ch

Constructor Summary
WatchedFile()
           
 
Method Summary
 java.lang.String getFilename()
          Returns the file name relative to the folder
 java.lang.Long getId()
          Returns the id of the watched file
 java.util.Date getLastCheck()
          Returns the last check date for this file
 java.lang.String getMd5Hash()
          Returns the md5 hash for this file
 WatchedFileState getWatchedFileState()
          Gets the watched file state
 WatchedFolder getWatchedFolder()
          Rerurns he folder containing this file
 void setFilename(java.lang.String filename)
          Sets the file name for this file
 void setLastCheck(java.util.Date lastCheck)
          Sets the last check date for this file
 void setMd5Hash(java.lang.String md5Hash)
          Sets the md5 hash for this files
 void setWatchedFileState(WatchedFileState watchedFileState)
          Sets the watched file state
 void setWatchedFolder(WatchedFolder watchedFolder)
          Sets the associated folder to this file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatchedFile

public WatchedFile()
Method Detail

getId

public java.lang.Long getId()
Returns the id of the watched file

Returns:
the id of the watched file

getFilename

public java.lang.String getFilename()
Returns the file name relative to the folder

Returns:
the filename

setFilename

public void setFilename(java.lang.String filename)
Sets the file name for this file

Parameters:
filename - the file name to set

getMd5Hash

public java.lang.String getMd5Hash()
Returns the md5 hash for this file

Returns:
the md5Hash for this file

setMd5Hash

public void setMd5Hash(java.lang.String md5Hash)
Sets the md5 hash for this files

Parameters:
md5Hash - the md5 hash to set

getLastCheck

public java.util.Date getLastCheck()
Returns the last check date for this file

Returns:
the lastCheck the last date

setLastCheck

public void setLastCheck(java.util.Date lastCheck)
Sets the last check date for this file

Parameters:
lastCheck - the last check date to set

getWatchedFolder

public WatchedFolder getWatchedFolder()
Rerurns he folder containing this file

Returns:
the watchedFolder the associated folder

setWatchedFolder

public void setWatchedFolder(WatchedFolder watchedFolder)
Sets the associated folder to this file

Parameters:
watchedFolder - the watchedFolder to set

getWatchedFileState

public WatchedFileState getWatchedFileState()
Gets the watched file state

Returns:
the watchedFileState

setWatchedFileState

public void setWatchedFileState(WatchedFileState watchedFileState)
Sets the watched file state

Parameters:
watchedFileState - the watchedFileState to set


Copyright © 2009. All Rights Reserved.