ch.busyboxes.agoo.controller.model
Class WebWatchedFile

java.lang.Object
  extended by ch.busyboxes.agoo.controller.model.WebWatchedFile

public class WebWatchedFile
extends java.lang.Object

A representation of a file watched by the Agoo system, this representation contains what needs to be displayed in a view

Author:
julien@busyboxes.ch

Constructor Summary
WebWatchedFile()
           
 
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()
          Get the watched file state
 WebWatchedFolder getWatchedFolder()
          Rerurns he folder containing this file
 void setFilename(java.lang.String filename)
          Sets the file name for this file
 void setId(java.lang.Long id)
          Sets the id
 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(WebWatchedFolder 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

WebWatchedFile

public WebWatchedFile()
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 WebWatchedFolder getWatchedFolder()
Rerurns he folder containing this file

Returns:
the watchedFolder the associated folder

setWatchedFolder

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

Parameters:
watchedFolder - the watchedFolder to set

setId

public void setId(java.lang.Long id)
Sets the id

Parameters:
id - the id to set

getWatchedFileState

public WatchedFileState getWatchedFileState()
Get 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.