Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.filehistory
Interface FileHistoryService

All Known Implementing Classes:
FileHistoryServiceImpl

public interface FileHistoryService

File History Service stores info for file transfers from various protocols.

Author:
Damian Minkov

Method Summary
 Collection<FileRecord> findByEndDate(MetaContact contact, Date endDate)
          Returns all the file transfers made before the given date
 Collection<FileRecord> findByKeyword(MetaContact contact, String keyword)
          Returns all the file transfers having the given keyword in the filename
 Collection<FileRecord> findByKeyword(MetaContact contact, String keyword, boolean caseSensitive)
          Returns all the file transfers having the given keyword in the filename
 Collection<FileRecord> findByKeywords(MetaContact contact, String[] keywords)
          Returns all the file transfers having the given keywords in the filename
 Collection<FileRecord> findByKeywords(MetaContact contact, String[] keywords, boolean caseSensitive)
          Returns all the file transfershaving the given keywords in the filename
 Collection<FileRecord> findByPeriod(MetaContact contact, Date startDate, Date endDate)
          Returns all the file transfers made between the given dates
 Collection<FileRecord> findByPeriod(MetaContact contact, Date startDate, Date endDate, String[] keywords)
          Returns all the file transfers made between the given dates and having the given keywords in the filename
 Collection<FileRecord> findByPeriod(MetaContact contact, Date startDate, Date endDate, String[] keywords, boolean caseSensitive)
          Returns all the file transfers made between the given dates and having the given keywords in the filename
 Collection<FileRecord> findByStartDate(MetaContact contact, Date startDate)
          Returns all the file transfers made after the given date
 Collection<FileRecord> findFirstRecordsAfter(MetaContact contact, Date date, int count)
          Returns the supplied number of recent file transfers after the given date
 Collection<FileRecord> findLast(MetaContact contact, int count)
          Returns the supplied number of file transfers
 Collection<FileRecord> findLastRecordsBefore(MetaContact contact, Date date, int count)
          Returns the supplied number of recent file transfers before the given date
 

Method Detail

findByStartDate

Collection<FileRecord> findByStartDate(MetaContact contact,
                                       Date startDate)
                                       throws RuntimeException
Returns all the file transfers made after the given date

Parameters:
contact - MetaContact the receiver or sender of the file
startDate - Date the start date of the transfers
Returns:
Collection of FileRecords
Throws:
RuntimeException

findByEndDate

Collection<FileRecord> findByEndDate(MetaContact contact,
                                     Date endDate)
                                     throws RuntimeException
Returns all the file transfers made before the given date

Parameters:
contact - MetaContact the receiver or sender of the file
endDate - Date the end date of the transfers
Returns:
Collection of FileRecords
Throws:
RuntimeException

findByPeriod

Collection<FileRecord> findByPeriod(MetaContact contact,
                                    Date startDate,
                                    Date endDate)
                                    throws RuntimeException
Returns all the file transfers made between the given dates

Parameters:
contact - MetaContact the receiver or sender of the file
startDate - Date the start date of the transfers
endDate - Date the end date of the transfers
Returns:
Collection of FileRecords
Throws:
RuntimeException

findByPeriod

Collection<FileRecord> findByPeriod(MetaContact contact,
                                    Date startDate,
                                    Date endDate,
                                    String[] keywords)
                                    throws RuntimeException
Returns all the file transfers made between the given dates and having the given keywords in the filename

Parameters:
contact - MetaContact the receiver or sender of the file
startDate - Date the start date of the transfers
endDate - Date the end date of the transfers
keywords - array of keywords
Returns:
Collection of FileRecords
Throws:
RuntimeException

findByPeriod

Collection<FileRecord> findByPeriod(MetaContact contact,
                                    Date startDate,
                                    Date endDate,
                                    String[] keywords,
                                    boolean caseSensitive)
                                    throws RuntimeException
Returns all the file transfers made between the given dates and having the given keywords in the filename

Parameters:
contact - MetaContact the receiver or sender of the file
startDate - Date the start date of the transfers
endDate - Date the end date of the transfers
keywords - array of keywords
caseSensitive - is keywords search case sensitive
Returns:
Collection of FileRecords
Throws:
RuntimeException

findLast

Collection<FileRecord> findLast(MetaContact contact,
                                int count)
                                throws RuntimeException
Returns the supplied number of file transfers

Parameters:
contact - MetaContact the receiver or sender of the file
count - filetransfer count
Returns:
Collection of FileRecords
Throws:
RuntimeException

findByKeyword

Collection<FileRecord> findByKeyword(MetaContact contact,
                                     String keyword)
                                     throws RuntimeException
Returns all the file transfers having the given keyword in the filename

Parameters:
contact - MetaContact the receiver or sender of the file
keyword - keyword
Returns:
Collection of FileRecords
Throws:
RuntimeException

findByKeyword

Collection<FileRecord> findByKeyword(MetaContact contact,
                                     String keyword,
                                     boolean caseSensitive)
                                     throws RuntimeException
Returns all the file transfers having the given keyword in the filename

Parameters:
contact - MetaContact the receiver or sender of the file
keyword - keyword
caseSensitive - is keywords search case sensitive
Returns:
Collection of FileRecords
Throws:
RuntimeException

findByKeywords

Collection<FileRecord> findByKeywords(MetaContact contact,
                                      String[] keywords)
                                      throws RuntimeException
Returns all the file transfers having the given keywords in the filename

Parameters:
contact - MetaContact the receiver or sender of the file
keywords - keyword
Returns:
Collection of FileRecords
Throws:
RuntimeException

findByKeywords

Collection<FileRecord> findByKeywords(MetaContact contact,
                                      String[] keywords,
                                      boolean caseSensitive)
                                      throws RuntimeException
Returns all the file transfershaving the given keywords in the filename

Parameters:
contact - MetaContact the receiver or sender of the file
keywords - keyword
caseSensitive - is keywords search case sensitive
Returns:
Collection of FileRecords
Throws:
RuntimeException

findFirstRecordsAfter

Collection<FileRecord> findFirstRecordsAfter(MetaContact contact,
                                             Date date,
                                             int count)
                                             throws RuntimeException
Returns the supplied number of recent file transfers after the given date

Parameters:
contact - MetaContact the receiver or sender of the file
date - transfers after date
count - transfers count
Returns:
Collection of FileRecords
Throws:
RuntimeException

findLastRecordsBefore

Collection<FileRecord> findLastRecordsBefore(MetaContact contact,
                                             Date date,
                                             int count)
                                             throws RuntimeException
Returns the supplied number of recent file transfers before the given date

Parameters:
contact - MetaContact the receiver or sender of the file
date - transfers before date
count - transfers count
Returns:
Collection of FileRecords
Throws:
RuntimeException

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.