public class MetaHistoryServiceImpl extends java.lang.Object implements MetaHistoryService, org.osgi.framework.ServiceListener
Constructor and Description |
---|
MetaHistoryServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addSearchProgressListener(HistorySearchProgressListener listener)
Adding progress listener for monitoring progress of search process
|
java.util.Collection<java.lang.Object> |
findByEndDate(java.lang.String[] services,
java.lang.Object descriptor,
java.util.Date endDate)
Returns all the records before the given date
|
java.util.Collection<java.lang.Object> |
findByKeyword(java.lang.String[] services,
java.lang.Object descriptor,
java.lang.String keyword)
Returns all the records having the given keyword
|
java.util.Collection<java.lang.Object> |
findByKeyword(java.lang.String[] services,
java.lang.Object descriptor,
java.lang.String keyword,
boolean caseSensitive)
Returns all the records having the given keyword
|
java.util.Collection<java.lang.Object> |
findByKeywords(java.lang.String[] services,
java.lang.Object descriptor,
java.lang.String[] keywords)
Returns all the records having the given keywords
|
java.util.Collection<java.lang.Object> |
findByKeywords(java.lang.String[] services,
java.lang.Object descriptor,
java.lang.String[] keywords,
boolean caseSensitive)
Returns all the records having the given keywords
|
java.util.Collection<java.lang.Object> |
findByPeriod(java.lang.String[] services,
java.lang.Object descriptor,
java.util.Date startDate,
java.util.Date endDate)
Returns all the records between the given dates
|
java.util.Collection<java.lang.Object> |
findByPeriod(java.lang.String[] services,
java.lang.Object descriptor,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String[] keywords)
Returns all the records between the given dates and having the given
keywords
|
java.util.Collection<java.lang.Object> |
findByPeriod(java.lang.String[] services,
java.lang.Object descriptor,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String[] keywords,
boolean caseSensitive)
Returns all the records between the given dates and having the given
keywords
|
java.util.Collection<java.lang.Object> |
findByStartDate(java.lang.String[] services,
java.lang.Object descriptor,
java.util.Date startDate)
Returns all the records for the descriptor after the given date.
|
java.util.Collection<java.lang.Object> |
findFirstMessagesAfter(java.lang.String[] services,
java.lang.Object descriptor,
java.util.Date date,
int count)
Returns the supplied number of recent records after the given date
|
java.util.Collection<java.lang.Object> |
findLast(java.lang.String[] services,
java.lang.Object descriptor,
int count)
Returns the supplied number of recent records.
|
java.util.Collection<java.lang.Object> |
findLastMessagesBefore(java.lang.String[] services,
java.lang.Object descriptor,
java.util.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.
|
public java.util.Collection<java.lang.Object> findByStartDate(java.lang.String[] services, java.lang.Object descriptor, java.util.Date startDate) throws java.lang.RuntimeException
findByStartDate
in interface MetaHistoryService
services
- the services classnames we will querydescriptor
- CallPeer address(String),
MetaContact or ChatRoom.startDate
- Date the date of the first record to returnjava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findByEndDate(java.lang.String[] services, java.lang.Object descriptor, java.util.Date endDate) throws java.lang.RuntimeException
findByEndDate
in interface MetaHistoryService
services
- the services classnames we will querydescriptor
- CallPeer address(String),
MetaContact or ChatRoom.endDate
- Date the date of the last record to returnjava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findByPeriod(java.lang.String[] services, java.lang.Object descriptor, java.util.Date startDate, java.util.Date endDate) throws java.lang.RuntimeException
findByPeriod
in interface MetaHistoryService
services
- 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 returnjava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findByPeriod(java.lang.String[] services, java.lang.Object descriptor, java.util.Date startDate, java.util.Date endDate, java.lang.String[] keywords) throws java.lang.RuntimeException
findByPeriod
in interface MetaHistoryService
services
- 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 keywordsjava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findByPeriod(java.lang.String[] services, java.lang.Object descriptor, java.util.Date startDate, java.util.Date endDate, java.lang.String[] keywords, boolean caseSensitive) throws java.lang.RuntimeException
findByPeriod
in interface MetaHistoryService
services
- 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 sensitivejava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findByKeyword(java.lang.String[] services, java.lang.Object descriptor, java.lang.String keyword) throws java.lang.RuntimeException
findByKeyword
in interface MetaHistoryService
services
- the services classnames we will querydescriptor
- CallPeer address(String),
MetaContact or ChatRoom.keyword
- keywordjava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findByKeyword(java.lang.String[] services, java.lang.Object descriptor, java.lang.String keyword, boolean caseSensitive) throws java.lang.RuntimeException
findByKeyword
in interface MetaHistoryService
services
- the services classnames we will querydescriptor
- CallPeer address(String),
MetaContact or ChatRoom.keyword
- keywordcaseSensitive
- is keywords search case sensitivejava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findByKeywords(java.lang.String[] services, java.lang.Object descriptor, java.lang.String[] keywords) throws java.lang.RuntimeException
findByKeywords
in interface MetaHistoryService
services
- the services classnames we will querydescriptor
- CallPeer address(String),
MetaContact or ChatRoom.keywords
- keywordjava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findByKeywords(java.lang.String[] services, java.lang.Object descriptor, java.lang.String[] keywords, boolean caseSensitive) throws java.lang.RuntimeException
findByKeywords
in interface MetaHistoryService
services
- the services classnames we will querydescriptor
- CallPeer address(String),
MetaContact or ChatRoom.keywords
- keywordcaseSensitive
- is keywords search case sensitivejava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findLast(java.lang.String[] services, java.lang.Object descriptor, int count) throws java.lang.RuntimeException
findLast
in interface MetaHistoryService
services
- the services classnames we will querydescriptor
- CallPeer address(String),
MetaContact or ChatRoom.count
- messages countjava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findFirstMessagesAfter(java.lang.String[] services, java.lang.Object descriptor, java.util.Date date, int count) throws java.lang.RuntimeException
findFirstMessagesAfter
in interface MetaHistoryService
services
- the services classnames we will querydescriptor
- CallPeer address(String),
MetaContact or ChatRoom.date
- messages after datecount
- messages countjava.lang.RuntimeException
public java.util.Collection<java.lang.Object> findLastMessagesBefore(java.lang.String[] services, java.lang.Object descriptor, java.util.Date date, int count) throws java.lang.RuntimeException
findLastMessagesBefore
in interface MetaHistoryService
services
- the services classnames we will querydescriptor
- CallPeer address(String),
MetaContact or ChatRoom.date
- messages before datecount
- messages countjava.lang.RuntimeException
public void addSearchProgressListener(HistorySearchProgressListener listener)
addSearchProgressListener
in interface MetaHistoryService
listener
- HistorySearchProgressListenerpublic void removeSearchProgressListener(HistorySearchProgressListener listener)
removeSearchProgressListener
in interface MetaHistoryService
listener
- HistorySearchProgressListenerpublic void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged
in interface org.osgi.framework.ServiceListener
public 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.
Distributable under Apache license.