public interface ISeenDatabase
Modifier and Type | Method and Description |
---|---|
java.util.Collection<SeenEntry> |
getEntries()
Uses to get a list of seen entries
|
boolean |
isSeen(java.io.File mediaDirectory,
java.io.File file)
Used to work out if a file has been seen already
|
void |
markAsSeen(java.io.File mediaDirectory,
java.io.File file)
Used to mark a file as seen after actions have seen it
|
void |
read(IProgressMonitor progress)
Used to read the database from disk
|
void |
removeFile(java.io.File mediaDirectory,
java.io.File file)
Used to remove files from the Seen database
|
void |
renamedFile(java.io.File mediaDirectory,
java.io.File oldFile,
java.io.File newFile)
Used to notify the seen database when a file has been renamed
|
void |
write(IProgressMonitor parentMonitor)
Used to write the database to disc
|
boolean isSeen(java.io.File mediaDirectory, java.io.File file) throws SeenDBException
mediaDirectory
- The media directory the file lives infile
- The fileSeenDBException
- Thrown if their is a problemvoid markAsSeen(java.io.File mediaDirectory, java.io.File file) throws SeenDBException
mediaDirectory
- The media directory the file lives infile
- The fileSeenDBException
- Thrown if their is a problemvoid write(IProgressMonitor parentMonitor) throws SeenDBException
parentMonitor
- Parent progress monitorSeenDBException
- Thrown if their is a problemvoid read(IProgressMonitor progress) throws SeenDBException
progress
- Progress monitorSeenDBException
- Thrown if their is a problemvoid renamedFile(java.io.File mediaDirectory, java.io.File oldFile, java.io.File newFile) throws SeenDBException
mediaDirectory
- The media directory the file is located inoldFile
- The old filenamenewFile
- The new filenameSeenDBException
- Thrown if their is a problemvoid removeFile(java.io.File mediaDirectory, java.io.File file) throws SeenDBException
mediaDirectory
- The media directory of the file to removefile
- The file to removeSeenDBException
- Thrown if their is a problemjava.util.Collection<SeenEntry> getEntries()