Class XlrScriptContext

  • All Implemented Interfaces:
    java.lang.AutoCloseable, javax.script.ScriptContext

    public class XlrScriptContext
    extends javax.script.SimpleScriptContext
    implements java.lang.AutoCloseable
    • Field Detail

      • CONTEXT_BINDINGS_TO_UNWRAP

        public static final java.lang.String CONTEXT_BINDINGS_TO_UNWRAP
        See Also:
        Constant Field Values
      • CONTEXT_BINDINGS_TO_WRAP

        public static final java.lang.String CONTEXT_BINDINGS_TO_WRAP
        See Also:
        Constant Field Values
      • ATTRIBUTE_RELEASE_VARIABLES

        public static final java.lang.String ATTRIBUTE_RELEASE_VARIABLES
        See Also:
        Constant Field Values
      • ATTRIBUTE_GLOBAL_VARIABLES

        public static final java.lang.String ATTRIBUTE_GLOBAL_VARIABLES
        See Also:
        Constant Field Values
      • ATTRIBUTE_FOLDER_VARIABLES

        public static final java.lang.String ATTRIBUTE_FOLDER_VARIABLES
        See Also:
        Constant Field Values
      • ATTR_VALUE_PROVIDER

        public static final java.lang.String ATTR_VALUE_PROVIDER
        See Also:
        Constant Field Values
      • ATTR_VALUE_PROVIDER_RESULT

        public static final java.lang.String ATTR_VALUE_PROVIDER_RESULT
        See Also:
        Constant Field Values
      • CONFIGURATION_ID_PROPERTY_NAME

        public static final java.lang.String CONFIGURATION_ID_PROPERTY_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • XlrScriptContext

        public XlrScriptContext()
      • XlrScriptContext

        public XlrScriptContext​(java.lang.String executionId)
      • XlrScriptContext

        public XlrScriptContext​(java.lang.String executionId,
                                ScriptTimeoutContext scriptTimeoutContext)
    • Method Detail

      • getExecutionId

        public java.lang.String getExecutionId()
      • addScriptLogger

        public void addScriptLogger()
      • setScriptPathForLog

        public void setScriptPathForLog​(java.lang.String scriptPathForLog)
      • getScriptPathForLog

        public java.lang.String getScriptPathForLog()
      • getValueProviderResult

        public java.util.Collection<java.lang.Object> getValueProviderResult()
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception
      • getScripts

        public java.util.List<com.xebialabs.xlrelease.script.XlrScript> getScripts()
      • addScript

        public void addScript​(com.xebialabs.xlrelease.script.XlrScript script)
      • shouldCheckPolicyPermissions

        public boolean shouldCheckPolicyPermissions()
      • merge

        public void merge​(javax.script.ScriptContext other,
                          int scope)