public interface FileHistoryService
Modifier and Type | Method and Description |
---|---|
void |
eraseLocallyStoredHistory()
Permanently removes all locally stored file history.
|
void |
eraseLocallyStoredHistory(MetaContact contact)
Permanently removes locally stored file history for the metacontact.
|
java.util.Collection<FileRecord> |
findByEndDate(MetaContact contact,
java.util.Date endDate)
Returns all the file transfers made before the given date
|
java.util.Collection<FileRecord> |
findByKeyword(MetaContact contact,
java.lang.String keyword)
Returns all the file transfers having the given keyword in the filename
|
java.util.Collection<FileRecord> |
findByKeyword(MetaContact contact,
java.lang.String keyword,
boolean caseSensitive)
Returns all the file transfers having the given keyword in the filename
|
java.util.Collection<FileRecord> |
findByKeywords(MetaContact contact,
java.lang.String[] keywords)
Returns all the file transfers having the given keywords in the filename
|
java.util.Collection<FileRecord> |
findByKeywords(MetaContact contact,
java.lang.String[] keywords,
boolean caseSensitive)
Returns all the file transfershaving the given keywords in the filename
|
java.util.Collection<FileRecord> |
findByPeriod(MetaContact contact,
java.util.Date startDate,
java.util.Date endDate)
Returns all the file transfers made between the given dates
|
java.util.Collection<FileRecord> |
findByPeriod(MetaContact contact,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String[] keywords)
Returns all the file transfers made between the given dates and
having the given keywords in the filename
|
java.util.Collection<FileRecord> |
findByPeriod(MetaContact contact,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String[] keywords,
boolean caseSensitive)
Returns all the file transfers made between the given dates
and having the given keywords in the filename
|
java.util.Collection<FileRecord> |
findByStartDate(MetaContact contact,
java.util.Date startDate)
Returns all the file transfers made after the given date
|
java.util.Collection<FileRecord> |
findFirstRecordsAfter(MetaContact contact,
java.util.Date date,
int count)
Returns the supplied number of recent file transfers after the given date
|
java.util.Collection<FileRecord> |
findLast(MetaContact contact,
int count)
Returns the supplied number of file transfers
|
java.util.Collection<FileRecord> |
findLastRecordsBefore(MetaContact contact,
java.util.Date date,
int count)
Returns the supplied number of recent file transfers before the given date
|
java.util.Collection<FileRecord> findByStartDate(MetaContact contact, java.util.Date startDate) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filestartDate
- Date the start date of the transfersjava.lang.RuntimeException
java.util.Collection<FileRecord> findByEndDate(MetaContact contact, java.util.Date endDate) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the fileendDate
- Date the end date of the transfersjava.lang.RuntimeException
java.util.Collection<FileRecord> findByPeriod(MetaContact contact, java.util.Date startDate, java.util.Date endDate) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filestartDate
- Date the start date of the transfersendDate
- Date the end date of the transfersjava.lang.RuntimeException
java.util.Collection<FileRecord> findByPeriod(MetaContact contact, java.util.Date startDate, java.util.Date endDate, java.lang.String[] keywords) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filestartDate
- Date the start date of the transfersendDate
- Date the end date of the transferskeywords
- array of keywordsjava.lang.RuntimeException
java.util.Collection<FileRecord> findByPeriod(MetaContact contact, java.util.Date startDate, java.util.Date endDate, java.lang.String[] keywords, boolean caseSensitive) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filestartDate
- Date the start date of the transfersendDate
- Date the end date of the transferskeywords
- array of keywordscaseSensitive
- is keywords search case sensitivejava.lang.RuntimeException
java.util.Collection<FileRecord> findLast(MetaContact contact, int count) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filecount
- filetransfer countjava.lang.RuntimeException
java.util.Collection<FileRecord> findByKeyword(MetaContact contact, java.lang.String keyword) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filekeyword
- keywordjava.lang.RuntimeException
java.util.Collection<FileRecord> findByKeyword(MetaContact contact, java.lang.String keyword, boolean caseSensitive) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filekeyword
- keywordcaseSensitive
- is keywords search case sensitivejava.lang.RuntimeException
java.util.Collection<FileRecord> findByKeywords(MetaContact contact, java.lang.String[] keywords) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filekeywords
- keywordjava.lang.RuntimeException
java.util.Collection<FileRecord> findByKeywords(MetaContact contact, java.lang.String[] keywords, boolean caseSensitive) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filekeywords
- keywordcaseSensitive
- is keywords search case sensitivejava.lang.RuntimeException
java.util.Collection<FileRecord> findFirstRecordsAfter(MetaContact contact, java.util.Date date, int count) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filedate
- transfers after datecount
- transfers countjava.lang.RuntimeException
java.util.Collection<FileRecord> findLastRecordsBefore(MetaContact contact, java.util.Date date, int count) throws java.lang.RuntimeException
contact
- MetaContact the receiver or sender of the filedate
- transfers before datecount
- transfers countjava.lang.RuntimeException
void eraseLocallyStoredHistory() throws java.io.IOException
java.io.IOException
- Thrown if the history could not be removed due to a IO error.void eraseLocallyStoredHistory(MetaContact contact) throws java.io.IOException
java.io.IOException
- Thrown if the history could not be removed due to a IO error.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.