Search in sources :

Example 11 with IWriteCallRepository

use of de.janrufmonitor.repository.types.IWriteCallRepository in project janrufmonitor by tbrandt77.

the class JournalController method deleteElements.

public synchronized void deleteElements(Object list) {
    if (list instanceof ICallList) {
        ICallManager cm = this._getRepository();
        if (cm != null && cm.isActive() && cm.isSupported(IWriteCallRepository.class)) {
            ((IWriteCallRepository) cm).removeCalls((ICallList) list);
            this.m_data = null;
        }
    }
}
Also used : ICallManager(de.janrufmonitor.repository.ICallManager) ICallList(de.janrufmonitor.framework.ICallList) IWriteCallRepository(de.janrufmonitor.repository.types.IWriteCallRepository)

Example 12 with IWriteCallRepository

use of de.janrufmonitor.repository.types.IWriteCallRepository in project janrufmonitor by tbrandt77.

the class JournalController method addElements.

public synchronized void addElements(Object list) {
    if (list instanceof ICallList) {
        ICallManager cm = this._getRepository();
        if (cm != null && list != null && cm.isActive() && cm.isSupported(IWriteCallRepository.class)) {
            ((IWriteCallRepository) cm).setCalls((ICallList) list);
            this.m_data = null;
        }
    }
}
Also used : ICallManager(de.janrufmonitor.repository.ICallManager) ICallList(de.janrufmonitor.framework.ICallList) IWriteCallRepository(de.janrufmonitor.repository.types.IWriteCallRepository)

Aggregations

IWriteCallRepository (de.janrufmonitor.repository.types.IWriteCallRepository)12 ICallManager (de.janrufmonitor.repository.ICallManager)10 ICallList (de.janrufmonitor.framework.ICallList)9 IReadCallRepository (de.janrufmonitor.repository.types.IReadCallRepository)4 List (java.util.List)4 ICall (de.janrufmonitor.framework.ICall)3 IEventBroker (de.janrufmonitor.framework.event.IEventBroker)3 Message (de.janrufmonitor.exception.Message)2 ICaller (de.janrufmonitor.framework.ICaller)2 DateFilter (de.janrufmonitor.repository.filter.DateFilter)2 IFilter (de.janrufmonitor.repository.filter.IFilter)2 HandlerException (de.janrufmonitor.service.commons.http.handler.HandlerException)2 Date (java.util.Date)2 Properties (java.util.Properties)2 ICip (de.janrufmonitor.framework.ICip)1 FritzBoxCallCsv (de.janrufmonitor.fritzbox.FritzBoxCallCsv)1 FirmwareManager (de.janrufmonitor.fritzbox.firmware.FirmwareManager)1 DeleteCallListException (de.janrufmonitor.fritzbox.firmware.exception.DeleteCallListException)1 FritzBoxLoginException (de.janrufmonitor.fritzbox.firmware.exception.FritzBoxLoginException)1 GetCallListException (de.janrufmonitor.fritzbox.firmware.exception.GetCallListException)1