Class ModelScriptContent
- java.lang.Object
-
- de.hybris.platform.scripting.engine.content.impl.ModelScriptContent
-
- All Implemented Interfaces:
AutoDisablingScriptContent,ScriptContent
public class ModelScriptContent extends java.lang.Object implements AutoDisablingScriptContent
ScriptContent backed by hybris ScriptModel.
-
-
Constructor Summary
Constructors Constructor Description ModelScriptContent(ScriptModel model)ModelScriptContent(ScriptModel model, AutoDisablingScriptStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoDisablingScriptStrategygetAutoDisablingScriptStrategy()java.lang.StringgetContent()Returns content of the script (executable body).java.util.Map<java.lang.String,java.lang.Object>getCustomContext()Method which may return context parameters map with some additions related to current implementation of the ScriptContent which will be passed later on to the script.java.lang.StringgetEngineName()Gets engine name.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ModelScriptContent
public ModelScriptContent(ScriptModel model)
-
ModelScriptContent
public ModelScriptContent(ScriptModel model, AutoDisablingScriptStrategy strategy)
-
-
Method Detail
-
getEngineName
public java.lang.String getEngineName()
Description copied from interface:ScriptContentGets engine name. The name may be full engine name JSR-223 compliant, proper file extension of the script or mime type of the script.- Specified by:
getEngineNamein interfaceScriptContent
-
getContent
public java.lang.String getContent()
Description copied from interface:ScriptContentReturns content of the script (executable body).- Specified by:
getContentin interfaceScriptContent
-
getCustomContext
public java.util.Map<java.lang.String,java.lang.Object> getCustomContext()
Description copied from interface:ScriptContentMethod which may return context parameters map with some additions related to current implementation of the ScriptContent which will be passed later on to the script. In case of none of the parameters are present empty map must be returned.- Specified by:
getCustomContextin interfaceScriptContent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getAutoDisablingScriptStrategy
public AutoDisablingScriptStrategy getAutoDisablingScriptStrategy()
- Specified by:
getAutoDisablingScriptStrategyin interfaceAutoDisablingScriptContent
-
-