Search in sources :

Example 1 with DetectDuplicatesAction

use of name.abuchen.portfolio.datatransfer.actions.DetectDuplicatesAction in project portfolio by buchen.

the class ReviewExtractedItemsPage method checkEntries.

private void checkEntries(List<ExtractedEntry> entries) {
    List<ImportAction> actions = new ArrayList<>();
    actions.add(new CheckValidTypesAction());
    actions.add(new DetectDuplicatesAction());
    actions.add(new CheckCurrenciesAction());
    for (ExtractedEntry entry : entries) {
        entry.clearStatus();
        for (ImportAction action : actions) entry.addStatus(entry.getItem().apply(action, this));
    }
}
Also used : CheckValidTypesAction(name.abuchen.portfolio.datatransfer.actions.CheckValidTypesAction) DetectDuplicatesAction(name.abuchen.portfolio.datatransfer.actions.DetectDuplicatesAction) ImportAction(name.abuchen.portfolio.datatransfer.ImportAction) ArrayList(java.util.ArrayList) CheckCurrenciesAction(name.abuchen.portfolio.datatransfer.actions.CheckCurrenciesAction)

Aggregations

ArrayList (java.util.ArrayList)1 ImportAction (name.abuchen.portfolio.datatransfer.ImportAction)1 CheckCurrenciesAction (name.abuchen.portfolio.datatransfer.actions.CheckCurrenciesAction)1 CheckValidTypesAction (name.abuchen.portfolio.datatransfer.actions.CheckValidTypesAction)1 DetectDuplicatesAction (name.abuchen.portfolio.datatransfer.actions.DetectDuplicatesAction)1