/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.module.ServerModuleFile
 *  com.l7tech.objectmodel.FindException
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.util.Either
 *  com.l7tech.util.Functions$Nullary
 *  com.l7tech.util.Option
 */
package com.l7tech.server.module;

import com.l7tech.gateway.common.module.ServerModuleFile;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.server.module.ServerModuleFileListener;
import com.l7tech.util.Either;
import com.l7tech.util.Functions;
import com.l7tech.util.Option;

class g
implements Functions.Nullary<Either<FindException, Option<ServerModuleFile>>> {
    final Goid val$goid;
    final ServerModuleFileListener this$0;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    g(ServerModuleFileListener serverModuleFileListener, Goid goid) {
        this.this$0 = serverModuleFileListener;
        this.val$goid = goid;
    }

    public Either<FindException, Option<ServerModuleFile>> call() {
        try {
            return Either.rightOption((Object)((ServerModuleFile)this.this$0.serverModuleFileManager.findByPrimaryKey(this.val$goid)));
        }
        catch (FindException findException) {
            return Either.left((Object)((Object)findException));
        }
    }
}

