Search in sources :

Example 1 with SourceColumnAccessor

use of org.activityinfo.ui.client.component.importDialog.model.source.SourceColumnAccessor in project activityinfo by bedatadriven.

the class ImportModel method getMappedColumns.

public Map<TargetSiteId, ColumnAccessor> getMappedColumns(ResourceId fieldId) {
    Map<TargetSiteId, ColumnAccessor> mappings = Maps.newHashMap();
    for (Map.Entry<SourceColumn, MapExistingAction> entry : getMapExistingActions(fieldId).entrySet()) {
        TargetSiteId site = entry.getValue().getTarget().getSite();
        ColumnAccessor column = new SourceColumnAccessor(entry.getKey());
        mappings.put(site, column);
    }
    return mappings;
}
Also used : SourceColumnAccessor(org.activityinfo.ui.client.component.importDialog.model.source.SourceColumnAccessor) ColumnAccessor(org.activityinfo.ui.client.component.importDialog.model.strategy.ColumnAccessor) SourceColumnAccessor(org.activityinfo.ui.client.component.importDialog.model.source.SourceColumnAccessor) SourceColumn(org.activityinfo.ui.client.component.importDialog.model.source.SourceColumn) TargetSiteId(org.activityinfo.ui.client.component.importDialog.model.strategy.TargetSiteId) Map(java.util.Map)

Aggregations

Map (java.util.Map)1 SourceColumn (org.activityinfo.ui.client.component.importDialog.model.source.SourceColumn)1 SourceColumnAccessor (org.activityinfo.ui.client.component.importDialog.model.source.SourceColumnAccessor)1 ColumnAccessor (org.activityinfo.ui.client.component.importDialog.model.strategy.ColumnAccessor)1 TargetSiteId (org.activityinfo.ui.client.component.importDialog.model.strategy.TargetSiteId)1