|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface to be implemented by all sources which exist as filesystem objects.
Corresponds to Mfiles table in the JReceiver database.
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 |
public static final java.lang.String HKEY_FOLDER_ID
public static final java.lang.String HKEY_FILE_SIZE
public static final java.lang.String HKEY_LAST_MODIFIED
Method Detail |
public int getFolderId()
public void setFolderId(int folder_id)
public long getFileSize()
public void setFileSize(long file_size)
public long getLastModified()
Units are in milliseconds.
public void setLastModified(long last_modified)
Units are in milliseconds.
public void setLastModifiedISO(java.lang.String iso_date)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |