public class RepositoryScriptBinding extends StaticConfigurableScriptBinding
Modifier and Type | Class and Description |
---|---|
private class |
RepositoryScriptBinding.RepositoryWrapper |
Modifier and Type | Field and Description |
---|---|
private AmetysObjectResolver |
_ametysResolver |
private RepositoryProvider |
_repositoryProvider |
_functions, _functionsDescriptions, _sourceResolver
Constructor and Description |
---|
RepositoryScriptBinding() |
Modifier and Type | Method and Description |
---|---|
void |
cleanVariables(Map<String,Object> variables)
Allows clean up of variables created during the getVariables call.
|
Map<String,Object> |
getVariables()
Returns the list of variables this ScriptBinding provides, mapped by variable name.
|
Map<String,I18nizableText> |
getVariablesDescriptions()
Returns the list of variables descriptions, mapped by variable name.
|
Object |
processScriptResult(Object result)
Process the script result if there are any specificities for this console data.
|
void |
service(ServiceManager serviceManager) |
configure, getFunctions, getFunctionsDescriptions
getLogger, setLogger
private RepositoryProvider _repositoryProvider
private AmetysObjectResolver _ametysResolver
public RepositoryScriptBinding()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class StaticConfigurableScriptBinding
ServiceException
public Map<String,Object> getVariables()
ScriptBinding
getVariables
in interface ScriptBinding
getVariables
in class StaticConfigurableScriptBinding
public Map<String,I18nizableText> getVariablesDescriptions()
ScriptBinding
getVariablesDescriptions
in interface ScriptBinding
getVariablesDescriptions
in class StaticConfigurableScriptBinding
public void cleanVariables(Map<String,Object> variables)
ScriptBinding
cleanVariables
in interface ScriptBinding
cleanVariables
in class StaticConfigurableScriptBinding
variables
- The map of variables.public Object processScriptResult(Object result) throws ScriptException
ScriptBinding
processScriptResult
in interface ScriptBinding
processScriptResult
in class StaticConfigurableScriptBinding
result
- The resultScriptException
- If a processing error occurs.