Package org.ametys.cms.scripts
Class CmsScriptBinding
- java.lang.Object
 - 
- org.ametys.runtime.plugin.component.AbstractLogEnabled
 - 
- org.ametys.plugins.core.ui.script.StaticConfigurableScriptBinding
 - 
- org.ametys.cms.scripts.CmsScriptBinding
 
 
 
 
- 
- All Implemented Interfaces:
 ScriptBinding,LogEnabled,PluginAware,Configurable,Contextualizable,Serviceable
public class CmsScriptBinding extends StaticConfigurableScriptBinding
CMS script binding, provides variables to the script tool, and a configuration file for the functions. 
- 
- 
Field Summary
Fields Modifier and Type Field Description private AmetysObjectResolver_resolver- 
Fields inherited from class org.ametys.plugins.core.ui.script.StaticConfigurableScriptBinding
_context, _functions, _functionsDescriptions, _pluginName, _sourceResolver, _tutorials, _variablesDescriptions, _variablesScripts, _workspacePattern 
 - 
 
- 
Constructor Summary
Constructors Constructor Description CmsScriptBinding() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getVariables(ScriptExecArguments execArgs)Returns the list of variables this ScriptBinding provides, mapped by variable name.voidservice(ServiceManager manager)- 
Methods inherited from class org.ametys.plugins.core.ui.script.StaticConfigurableScriptBinding
_configureFunctions, _configureTutorials, _configureVariables, cleanVariables, configure, contextualize, getFunctions, getFunctionsDescriptions, getTutorials, getVariablesDescriptions, getVariablesScripts, getWorkspacePattern, setPluginInfo 
- 
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_resolver
private AmetysObjectResolver _resolver
 
 - 
 
- 
Constructor Detail
- 
CmsScriptBinding
public CmsScriptBinding()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classStaticConfigurableScriptBinding- Throws:
 ServiceException
 
- 
getVariables
public Map<String,Object> getVariables(ScriptExecArguments execArgs)
Description copied from interface:ScriptBindingReturns the list of variables this ScriptBinding provides, mapped by variable name.- Specified by:
 getVariablesin interfaceScriptBinding- Overrides:
 getVariablesin classStaticConfigurableScriptBinding- Parameters:
 execArgs- The The arguments for script execution- Returns:
 - The list of variables, or null if no variable is provided.
 
 
 - 
 
 -