WSDLConnectionScript.java 1.13 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xfa.connectionset;

import com.adobe.xfa.Arg;
import com.adobe.xfa.Obj;
import com.adobe.xfa.ProtoableNodeScript;
import com.adobe.xfa.ScriptFuncObj;
import com.adobe.xfa.ScriptPropObj;
import com.adobe.xfa.ScriptTable;
import com.adobe.xfa.connectionset.WSDLConnection;

public class WSDLConnectionScript
extends ProtoableNodeScript {
    protected static final ScriptTable moScriptTable = new ScriptTable(ProtoableNodeScript.moScriptTable, "wsdlConnection", null, new ScriptFuncObj[]{new ScriptFuncObj(WSDLConnectionScript.class, "execute", "execute", 3, new int[]{3}, 1, 21, 9, "executePermsCheck", 0)});

    public static ScriptTable getScriptTable() {
        return moScriptTable;
    }

    public static void execute(Obj obj, Arg retVal, Arg[] args) {
        boolean bResult = ((WSDLConnection)obj).execute(args[0].getAsBool(false));
        retVal.setBool(bResult);
    }

    public static boolean executePermsCheck(Obj obj, Arg[] args) {
        if (obj instanceof WSDLConnection) {
            return ((WSDLConnection)obj).executePermsCheck();
        }
        return true;
    }
}