/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.EntityHeader
 *  com.l7tech.objectmodel.EntityType
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.util.Functions$Unary
 */
package com.l7tech.server.search.processors;

import com.l7tech.objectmodel.EntityHeader;
import com.l7tech.objectmodel.EntityType;
import com.l7tech.objectmodel.Goid;
import com.l7tech.server.search.processors.RevocationCheckPolicyDependencyProcessor;
import com.l7tech.util.Functions;
import java.util.Map;

class aj
implements Functions.Unary<Goid, Goid> {
    final Map val$replacementMap;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    aj(RevocationCheckPolicyDependencyProcessor revocationCheckPolicyDependencyProcessor, Map map) {
        this.val$replacementMap = map;
    }

    public Goid call(Goid goid) {
        EntityHeader entityHeader = new EntityHeader(goid, EntityType.TRUSTED_CERT, "", "");
        EntityHeader entityHeader2 = (EntityHeader)this.val$replacementMap.get(entityHeader);
        if (entityHeader2 != null) {
            return entityHeader2.getGoid();
        }
        return goid;
    }
}

