|
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.callhistory.CallHistoryServiceImpl
public class CallHistoryServiceImpl
The Call History Service stores info about the calls made. Logs calls info for all protocol providers that support basic telephony (i.e. those that implement OperationSetBasicTelephony).
| Constructor Summary | |
|---|---|
CallHistoryServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addSearchProgressListener(CallHistorySearchProgressListener listener)
Adding progress listener for monitoring progress of search process |
void |
callEnded(CallEvent event)
CallListener implementation for call endings |
(package private) static CallRecord |
convertHistoryRecordToCallRecord(HistoryRecord hr)
Used to convert HistoryRecord in CallReord and CallPeerRecord which are returned by the finder methods |
Collection<CallRecord> |
findByEndDate(Date endDate)
Returns all the calls made before the given date |
Collection<CallRecord> |
findByEndDate(MetaContact contact,
Date endDate)
Returns all the calls made by all the contacts in the supplied metacontact before the given date |
CallHistoryQuery |
findByPeer(String address,
int recordCount)
Find the calls made by the supplied peer address |
Collection<CallRecord> |
findByPeriod(Date startDate,
Date endDate)
Returns all the calls made between the given dates |
Collection<CallRecord> |
findByPeriod(MetaContact contact,
Date startDate,
Date endDate)
Returns all the calls made by all the contacts in the supplied metacontact between the given dates |
Collection<CallRecord> |
findByStartDate(Date startDate)
Returns all the calls made after the given date |
Collection<CallRecord> |
findByStartDate(MetaContact contact,
Date startDate)
Returns all the calls made by all the contacts in the supplied contact after the given date. |
Collection<CallRecord> |
findLast(int count)
Returns the supplied number of calls made |
Collection<CallRecord> |
findLast(MetaContact contact,
int count)
Returns the supplied number of calls by all the contacts in the supplied metacontact |
HistoryService |
getHistoryService()
Returns the underlying history service. |
void |
incomingCallReceived(CallEvent event)
CallListener implementation for incoming calls |
void |
outgoingCallCreated(CallEvent event)
CallListener implementation for outgoing calls |
void |
removeSearchProgressListener(CallHistorySearchProgressListener listener)
Removing progress listener |
void |
serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
When new protocol provider is registered we check does it supports BasicTelephony and if so add a listener to it |
void |
setHistoryService(HistoryService historyService)
Set the configuration service. |
void |
start(org.osgi.framework.BundleContext bc)
starts the service. |
void |
stop(org.osgi.framework.BundleContext bc)
stops the service. |
void |
unsetHistoryService(HistoryService hService)
Remove a configuration service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CallHistoryServiceImpl()
| Method Detail |
|---|
public HistoryService getHistoryService()
public Collection<CallRecord> findByStartDate(MetaContact contact,
Date startDate)
throws RuntimeException
findByStartDate in interface CallHistoryServicecontact - MetaContact which contacts participate in
the returned callsstartDate - Date the start date of the calls
RuntimeExceptionpublic Collection<CallRecord> findByStartDate(Date startDate)
findByStartDate in interface CallHistoryServicestartDate - Date the start date of the calls
RuntimeException
public Collection<CallRecord> findByEndDate(MetaContact contact,
Date endDate)
throws RuntimeException
findByEndDate in interface CallHistoryServicecontact - MetaContact which contacts participate in
the returned callsendDate - Date the end date of the calls
RuntimeException
public Collection<CallRecord> findByEndDate(Date endDate)
throws RuntimeException
findByEndDate in interface CallHistoryServiceendDate - Date the end date of the calls
RuntimeException
public Collection<CallRecord> findByPeriod(MetaContact contact,
Date startDate,
Date endDate)
throws RuntimeException
findByPeriod in interface CallHistoryServicecontact - MetaContactstartDate - Date the start date of the callsendDate - Date the end date of the conversations
RuntimeException
public Collection<CallRecord> findByPeriod(Date startDate,
Date endDate)
throws RuntimeException
findByPeriod in interface CallHistoryServicestartDate - Date the start date of the callsendDate - Date the end date of the conversations
RuntimeException
public Collection<CallRecord> findLast(MetaContact contact,
int count)
throws RuntimeException
findLast in interface CallHistoryServicecontact - MetaContact which contacts participate in
the returned callscount - calls count
RuntimeException
public Collection<CallRecord> findLast(int count)
throws RuntimeException
findLast in interface CallHistoryServicecount - calls count
RuntimeException
public CallHistoryQuery findByPeer(String address,
int recordCount)
throws RuntimeException
findByPeer in interface CallHistoryServiceaddress - String the address of the peerrecordCount - the number of records to return
RuntimeExceptionstatic CallRecord convertHistoryRecordToCallRecord(HistoryRecord hr)
hr - HistoryRecord
public void start(org.osgi.framework.BundleContext bc)
bc - BundleContextpublic void stop(org.osgi.framework.BundleContext bc)
bc - BundleContext
public void setHistoryService(HistoryService historyService)
throws IllegalArgumentException,
IOException
historyService - HistoryService
IOException
IllegalArgumentExceptionpublic void unsetHistoryService(HistoryService hService)
hService - HistoryServicepublic void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged in interface org.osgi.framework.ServiceListenerserviceEvent - ServiceEventpublic void addSearchProgressListener(CallHistorySearchProgressListener listener)
addSearchProgressListener in interface CallHistoryServicelistener - HistorySearchProgressListenerpublic void removeSearchProgressListener(CallHistorySearchProgressListener listener)
removeSearchProgressListener in interface CallHistoryServicelistener - HistorySearchProgressListenerpublic void incomingCallReceived(CallEvent event)
incomingCallReceived in interface CallListenerevent - CallEventpublic void outgoingCallCreated(CallEvent event)
outgoingCallCreated in interface CallListenerevent - CallEventpublic void callEnded(CallEvent event)
callEnded in interface CallListenerevent - CallEvent
|
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 | |||||||||