Class Scripts


  • public class Scripts
    extends FileEntryConstants
    Utilities for converting a single QDLScript to or from JSON. If you need to work with ScriptSets, then consult JSONScriptUtil.

    Created by Jeff Gaynor
    on 2/5/20 at 11:06 AM

    • Field Detail

      • RUN

        public static final String RUN
        Identifies a call to construct a script_load() command call. Note that scripts are loaded in to the current environment and run because on the server, the environment has been initialized. If we were to use script_run, then none of the state after the call would be available to the scripting engine.
        See Also:
        Constant Field Values
      • EXEC_PHASE

        public static final String EXEC_PHASE
        Identifies a phase of execution where this may be invoked. The phases are defined on the server, this merely provides a place to put it
        See Also:
        Constant Field Values
      • LANG_VERSION

        public static final String LANG_VERSION
        The version of the language this script is compatible with.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Scripts

        public Scripts()
    • Method Detail

      • toJSON

        public static net.sf.json.JSONObject toJSON​(StringBuffer script,
                                                    edu.uiuc.ncsa.security.core.configuration.XProperties prop)
        Returns a script object of the form {"script" : {"key0" : "value0",..., "code":[lines]}} where the key and value pairs are information in the properties file.
        Parameters:
        script -
        prop -
        Returns:
      • toJSON

        public static net.sf.json.JSONObject toJSON​(QDLScript script)
      • fromJSON

        public static QDLScript fromJSON​(net.sf.json.JSONObject rawJSON)
      • main

        public static void main​(String[] args)