jreceiver.common.rec.source
Interface Mfile

All Superinterfaces:
Hashable, Rec, Source
All Known Implementing Classes:
FplaylistRec, FtuneRec, MfileRec

public interface Mfile
extends Source

An interface to be implemented by all sources which exist as filesystem objects.

Corresponds to Mfiles table in the JReceiver database.

Version:
$Revision: 1.2 $ $Date: 2002/09/24 18:20:44 $
Author:
Reed Esau

Field Summary
static java.lang.String HKEY_FILE_SIZE
           
static java.lang.String HKEY_FOLDER_ID
           
static java.lang.String HKEY_LAST_MODIFIED
           
 
Fields inherited from interface jreceiver.common.rec.source.Source
DEFAULT_URL, FORCE_PLAYLIST_URL, HKEY_CONTENT_URL, HKEY_DIRECT_URI, HKEY_DST_MIME, HKEY_DURATION, HKEY_MIME, HKEY_SITE_ID, HKEY_SRC_ID, HKEY_SRC_TYPE, HKEY_TITLE, MAX_SRC_ID, MIN_SRC_ID, POPULATE_CONTENT_URL, POPULATE_DIRECT_URI, POPULATE_MEXTERNAL, POPULATE_MFILE, SRCTYPE_PLAYLIST, SRCTYPE_TUNE, SRCTYPE_UNDEFINED
 
Fields inherited from interface jreceiver.common.rec.Rec
HKEY_KEY, NO_LIMIT
 
Method Summary
 long getFileSize()
          Obtain the file size
 int getFolderId()
          Obtain the folder id
 long getLastModified()
          Obtain the unix epoc timestamp of the last time the file was modified
 void setFileSize(long file_size)
          Assign the file size
 void setFolderId(int folder_id)
          Assign the folder_id
 void setLastModified(long last_modified)
          Assign the unix epoc timestamp of the last time the file was modified
 void setLastModifiedISO(java.lang.String iso_date)
          Assign the timestamp of the last time the file was modified
 
Methods inherited from interface jreceiver.common.rec.source.Source
getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setMime, setSrcId, setTitle
 
Methods inherited from interface jreceiver.common.rec.Rec
getKey, setKey
 
Methods inherited from interface jreceiver.common.rec.Hashable
toHash, toString
 

Field Detail

HKEY_FOLDER_ID

public static final java.lang.String HKEY_FOLDER_ID

HKEY_FILE_SIZE

public static final java.lang.String HKEY_FILE_SIZE

HKEY_LAST_MODIFIED

public static final java.lang.String HKEY_LAST_MODIFIED
Method Detail

getFolderId

public int getFolderId()
Obtain the folder id

setFolderId

public void setFolderId(int folder_id)
Assign the folder_id

getFileSize

public long getFileSize()
Obtain the file size

setFileSize

public void setFileSize(long file_size)
Assign the file size

getLastModified

public long getLastModified()
Obtain the unix epoc timestamp of the last time the file was modified

Units are in milliseconds.


setLastModified

public void setLastModified(long last_modified)
Assign the unix epoc timestamp of the last time the file was modified

Units are in milliseconds.


setLastModifiedISO

public void setLastModifiedISO(java.lang.String iso_date)
Assign the timestamp of the last time the file was modified

Provide a date in ISO-8601 format (yyyy-MM-dd'T'HH:mm:ss)

Note that we have to use a different name than 'setLastModified' as Struts/BeanUtils gets confused and thinks that getLastModified should return a string.



Copyright © 2001-2002 Reed Esau, All Rights Reserved.