Class RepositoryScriptBinding
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.core.ui.script.StaticConfigurableScriptBinding
-
- org.ametys.plugins.repository.script.RepositoryScriptBinding
-
- All Implemented Interfaces:
ScriptBinding,LogEnabled,PluginAware,Configurable,Contextualizable,Serviceable
public class RepositoryScriptBinding extends StaticConfigurableScriptBinding
Script binding that provides repository variables
-
-
Field Summary
-
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 RepositoryScriptBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanVariables(Map<String,Object> variables)Allows clean up of variables created during the getVariables call.Map<String,Object>getVariables(ScriptExecArguments execArgs)Returns the list of variables this ScriptBinding provides, mapped by variable name.voidservice(ServiceManager serviceManager)-
Methods inherited from class org.ametys.plugins.core.ui.script.StaticConfigurableScriptBinding
_configureFunctions, _configureTutorials, _configureVariables, configure, contextualize, getFunctions, getFunctionsDescriptions, getTutorials, getVariablesDescriptions, getVariablesScripts, getWorkspacePattern, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
RepositoryScriptBinding
public RepositoryScriptBinding()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) 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.
-
cleanVariables
public void cleanVariables(Map<String,Object> variables)
Description copied from interface:ScriptBindingAllows clean up of variables created during the getVariables call.- Specified by:
cleanVariablesin interfaceScriptBinding- Overrides:
cleanVariablesin classStaticConfigurableScriptBinding- Parameters:
variables- The map of variables.
-
-