/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.Goid
 *  org.springframework.transaction.TransactionStatus
 *  org.springframework.transaction.support.TransactionCallback
 */
package com.l7tech.server.bundling;

import com.l7tech.objectmodel.Goid;
import com.l7tech.server.bundling.EntityBundle;
import com.l7tech.server.bundling.EntityBundleImporterImpl;
import com.l7tech.server.bundling.EntityMappingResult;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallback;

class k
implements TransactionCallback<List<List<EntityMappingResult>>> {
    final List val$bundles;
    final boolean val$test;
    final boolean val$activate;
    final boolean val$replaceAllMatchingCertChain;
    final String val$versionComment;
    final EntityBundleImporterImpl this$0;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    k(EntityBundleImporterImpl entityBundleImporterImpl, List list, boolean bl2, boolean bl3, boolean bl4, String string) {
        this.this$0 = entityBundleImporterImpl;
        this.val$bundles = list;
        this.val$test = bl2;
        this.val$activate = bl3;
        this.val$replaceAllMatchingCertChain = bl4;
        this.val$versionComment = string;
    }

    public List<List<EntityMappingResult>> doInTransaction(TransactionStatus transactionStatus) {
        ArrayList<List<EntityMappingResult>> arrayList = new ArrayList<List<EntityMappingResult>>();
        HashSet<Goid> hashSet = new HashSet<Goid>();
        for (EntityBundle entityBundle : this.val$bundles) {
            arrayList.add(this.this$0.a(transactionStatus, entityBundle, this.val$test, this.val$activate, this.val$replaceAllMatchingCertChain, this.val$versionComment, hashSet));
        }
        if (this.val$test) {
            transactionStatus.setRollbackOnly();
        }
        return arrayList;
    }
}

