use of de.janrufmonitor.repository.ICallManager 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;
}
}
}
use of de.janrufmonitor.repository.ICallManager 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;
}
}
}
use of de.janrufmonitor.repository.ICallManager in project janrufmonitor by tbrandt77.
the class Journal method getTitleExtension.
protected String getTitleExtension() {
String id = this.m_configuration.getProperty(CFG_REPOSITORY, "");
if (id != null && id.length() > 0) {
ICallManager cm = getRuntime().getCallManagerFactory().getCallManager(id);
if (cm != null && cm.isSupported(ILocalRepository.class)) {
String title = "";
if (cm instanceof IConfigurable) {
title = getI18nManager().getString(((IConfigurable) cm).getNamespace(), "title", "label", getLanguage()) + " - ";
}
title += ((ILocalRepository) cm).getFile();
return title;
}
if (cm != null && cm.isSupported(IRemoteRepository.class)) {
String title = "";
if (cm instanceof IConfigurable) {
title = getI18nManager().getString(((IConfigurable) cm).getNamespace(), "title", "label", getLanguage());
}
return title;
}
}
return null;
}
Aggregations