Search in sources :

Example 6 with ItemCountFilter

use of de.janrufmonitor.repository.filter.ItemCountFilter in project janrufmonitor by tbrandt77.

the class Last10Calls method getConfiguration.

public Properties getConfiguration() {
    Properties saved = super.getConfiguration();
    Properties journalConfig = this.getRuntime().getConfigManagerFactory().getConfigManager().getProperties(Journal.NAMESPACE);
    if (journalConfig != null && journalConfig.size() > 0) {
        saved.setProperty(JournalConfigConst.CFG_REPOSITORY, journalConfig.getProperty(JournalConfigConst.CFG_REPOSITORY));
    }
    IFilter[] filters = new IFilter[1];
    int count = 10;
    try {
        count = Integer.parseInt(saved.getProperty(CFG_COUNT, "10"));
    } catch (Exception e) {
    }
    filters[0] = new ItemCountFilter(count);
    saved.setProperty("filter", new JournalFilterManager().getFiltersToString(filters));
    return saved;
}
Also used : IFilter(de.janrufmonitor.repository.filter.IFilter) ItemCountFilter(de.janrufmonitor.repository.filter.ItemCountFilter) JournalFilterManager(de.janrufmonitor.ui.jface.application.journal.JournalFilterManager) Properties(java.util.Properties)

Aggregations

ItemCountFilter (de.janrufmonitor.repository.filter.ItemCountFilter)6 IPhonenumber (de.janrufmonitor.framework.IPhonenumber)5 IAttributeMap (de.janrufmonitor.framework.IAttributeMap)4 ICaller (de.janrufmonitor.framework.ICaller)4 IMsn (de.janrufmonitor.framework.IMsn)4 AttributeFilter (de.janrufmonitor.repository.filter.AttributeFilter)4 IFilter (de.janrufmonitor.repository.filter.IFilter)4 IAttribute (de.janrufmonitor.framework.IAttribute)3 ICip (de.janrufmonitor.framework.ICip)3 DateFilter (de.janrufmonitor.repository.filter.DateFilter)3 MonthYearFilter (de.janrufmonitor.repository.filter.MonthYearFilter)3 Date (java.util.Date)3 Iterator (java.util.Iterator)3 ICall (de.janrufmonitor.framework.ICall)2 ICallList (de.janrufmonitor.framework.ICallList)2 CipFilter (de.janrufmonitor.repository.filter.CipFilter)2 MsnFilter (de.janrufmonitor.repository.filter.MsnFilter)2 PhonenumberFilter (de.janrufmonitor.repository.filter.PhonenumberFilter)2 YearFilter (de.janrufmonitor.repository.filter.YearFilter)2 JournalFilterManager (de.janrufmonitor.ui.jface.application.journal.JournalFilterManager)2