|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.metahistory.MetaHistoryServiceImpl
public class MetaHistoryServiceImpl
The Meta History Service is wrapper around the other known history services. Query them all at once, sort the result and return all merged records in one collection.
| Constructor Summary | |
|---|---|
MetaHistoryServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addSearchProgressListener(HistorySearchProgressListener listener)
Adding progress listener for monitoring progress of search process |
Collection<Object> |
findByEndDate(String[] services,
Object descriptor,
Date endDate)
Returns all the records before the given date |
Collection<Object> |
findByKeyword(String[] services,
Object descriptor,
String keyword)
Returns all the records having the given keyword |
Collection<Object> |
findByKeyword(String[] services,
Object descriptor,
String keyword,
boolean caseSensitive)
Returns all the records having the given keyword |
Collection<Object> |
findByKeywords(String[] services,
Object descriptor,
String[] keywords)
Returns all the records having the given keywords |
Collection<Object> |
findByKeywords(String[] services,
Object descriptor,
String[] keywords,
boolean caseSensitive)
Returns all the records having the given keywords |
Collection<Object> |
findByPeriod(String[] services,
Object descriptor,
Date startDate,
Date endDate)
Returns all the records between the given dates |
Collection<Object> |
findByPeriod(String[] services,
Object descriptor,
Date startDate,
Date endDate,
String[] keywords)
Returns all the records between the given dates and having the given keywords |
Collection<Object> |
findByPeriod(String[] services,
Object descriptor,
Date startDate,
Date endDate,
String[] keywords,
boolean caseSensitive)
Returns all the records between the given dates and having the given keywords |
Collection<Object> |
findByStartDate(String[] services,
Object descriptor,
Date startDate)
Returns all the records for the descriptor after the given date. |
Collection<Object> |
findFirstMessagesAfter(String[] services,
Object descriptor,
Date date,
int count)
Returns the supplied number of recent records after the given date |
Collection<Object> |
findLast(String[] services,
Object descriptor,
int count)
Returns the supplied number of recent records. |
Collection<Object> |
findLastMessagesBefore(String[] services,
Object descriptor,
Date date,
int count)
Returns the supplied number of recent records before the given date |
void |
removeSearchProgressListener(HistorySearchProgressListener listener)
Removing progress listener |
void |
serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
|
void |
start(org.osgi.framework.BundleContext bc)
starts the service. |
void |
stop(org.osgi.framework.BundleContext bc)
stops the service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaHistoryServiceImpl()
| Method Detail |
|---|
public Collection<Object> findByStartDate(String[] services,
Object descriptor,
Date startDate)
throws RuntimeException
findByStartDate in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.startDate - Date the date of the first record to return
RuntimeException
public Collection<Object> findByEndDate(String[] services,
Object descriptor,
Date endDate)
throws RuntimeException
findByEndDate in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.endDate - Date the date of the last record to return
RuntimeException
public Collection<Object> findByPeriod(String[] services,
Object descriptor,
Date startDate,
Date endDate)
throws RuntimeException
findByPeriod in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.startDate - Date the date of the first record to returnendDate - Date the date of the last record to return
RuntimeException
public Collection<Object> findByPeriod(String[] services,
Object descriptor,
Date startDate,
Date endDate,
String[] keywords)
throws RuntimeException
findByPeriod in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.startDate - Date the date of the first record to returnendDate - Date the date of the last record to returnkeywords - array of keywords
RuntimeException
public Collection<Object> findByPeriod(String[] services,
Object descriptor,
Date startDate,
Date endDate,
String[] keywords,
boolean caseSensitive)
throws RuntimeException
findByPeriod in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.startDate - Date the date of the first record to returnendDate - Date the date of the last record to returnkeywords - array of keywordscaseSensitive - is keywords search case sensitive
RuntimeException
public Collection<Object> findByKeyword(String[] services,
Object descriptor,
String keyword)
throws RuntimeException
findByKeyword in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.keyword - keyword
RuntimeException
public Collection<Object> findByKeyword(String[] services,
Object descriptor,
String keyword,
boolean caseSensitive)
throws RuntimeException
findByKeyword in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.keyword - keywordcaseSensitive - is keywords search case sensitive
RuntimeException
public Collection<Object> findByKeywords(String[] services,
Object descriptor,
String[] keywords)
throws RuntimeException
findByKeywords in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.keywords - keyword
RuntimeException
public Collection<Object> findByKeywords(String[] services,
Object descriptor,
String[] keywords,
boolean caseSensitive)
throws RuntimeException
findByKeywords in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.keywords - keywordcaseSensitive - is keywords search case sensitive
RuntimeException
public Collection<Object> findLast(String[] services,
Object descriptor,
int count)
throws RuntimeException
findLast in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.count - messages count
RuntimeException
public Collection<Object> findFirstMessagesAfter(String[] services,
Object descriptor,
Date date,
int count)
throws RuntimeException
findFirstMessagesAfter in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.date - messages after datecount - messages count
RuntimeException
public Collection<Object> findLastMessagesBefore(String[] services,
Object descriptor,
Date date,
int count)
throws RuntimeException
findLastMessagesBefore in interface MetaHistoryServiceservices - the services classnames we will querydescriptor - CallPeer address(String),
MetaContact or ChatRoom.date - messages before datecount - messages count
RuntimeExceptionpublic void addSearchProgressListener(HistorySearchProgressListener listener)
addSearchProgressListener in interface MetaHistoryServicelistener - HistorySearchProgressListenerpublic void removeSearchProgressListener(HistorySearchProgressListener listener)
removeSearchProgressListener in interface MetaHistoryServicelistener - HistorySearchProgressListenerpublic void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged in interface org.osgi.framework.ServiceListenerpublic void start(org.osgi.framework.BundleContext bc)
bc - BundleContextpublic void stop(org.osgi.framework.BundleContext bc)
bc - BundleContext
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||