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
Script binding that provides repository variables
-
Field Summary
Fields inherited from class org.ametys.plugins.core.ui.script.StaticConfigurableScriptBinding
_context, _functions, _functionsDescriptions, _i18nParameterResolver, _pluginName, _sourceResolver, _tutorials, _variablesDescriptions, _variablesScripts, _workspacePattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanVariables(Map<String, Object> variables) Allows clean up of variables created during the getVariables call.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, _parseDocumentation, configure, contextualize, getFunctions, getFunctionsDescriptions, getTutorials, getVariablesDescriptions, getVariablesScripts, getWorkspacePattern, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
RepositoryScriptBinding
public RepositoryScriptBinding()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classStaticConfigurableScriptBinding- Throws:
ServiceException
-
getVariables
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
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.
-