Package com.xebialabs.xlrelease.script
Class XlrScriptContext
- java.lang.Object
-
- javax.script.SimpleScriptContext
-
- com.xebialabs.xlrelease.script.XlrScriptContext
-
- All Implemented Interfaces:
java.lang.AutoCloseable,javax.script.ScriptContext
public class XlrScriptContext extends javax.script.SimpleScriptContext implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_PHASEstatic java.lang.StringATTR_RELEASEstatic java.lang.StringATTR_TASKstatic java.lang.StringATTR_VALUE_PROVIDERstatic java.lang.StringATTR_VALUE_PROVIDER_RESULTstatic java.lang.StringATTR_VERSIONstatic java.lang.StringATTRIBUTE_FOLDER_VARIABLESstatic java.lang.StringATTRIBUTE_GLOBAL_VARIABLESstatic java.lang.StringATTRIBUTE_RELEASE_VARIABLESstatic java.lang.StringCONFIGURATION_ID_PROPERTY_NAMEstatic java.lang.StringCONTEXT_BINDINGS_TO_UNWRAPstatic java.lang.StringCONTEXT_BINDINGS_TO_WRAP
-
Constructor Summary
Constructors Constructor Description XlrScriptContext()XlrScriptContext(java.lang.String executionId)XlrScriptContext(java.lang.String executionId, ScriptTimeoutContext scriptTimeoutContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddScript(com.xebialabs.xlrelease.script.XlrScript script)voidaddScriptLogger()voidclose()java.lang.StringgetExecutionId()java.lang.StringgetScriptPathForLog()java.util.List<com.xebialabs.xlrelease.script.XlrScript>getScripts()java.util.Collection<java.lang.Object>getValueProviderResult()voidmerge(javax.script.ScriptContext other, int scope)voidsetScriptPathForLog(java.lang.String scriptPathForLog)booleanshouldCheckPolicyPermissions()
-
-
-
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_VERSION
public static final java.lang.String ATTR_VERSION
- See Also:
- Constant Field Values
-
ATTR_RELEASE
public static final java.lang.String ATTR_RELEASE
- See Also:
- Constant Field Values
-
ATTR_PHASE
public static final java.lang.String ATTR_PHASE
- See Also:
- Constant Field Values
-
ATTR_TASK
public static final java.lang.String ATTR_TASK
- 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:
closein interfacejava.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)
-
-