Class QueriesDirectoryScriptHandler
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.ui.script.ScriptHandler
org.ametys.cms.scripts.CmsScriptHandler
org.ametys.plugins.queriesdirectory.scripts.QueriesDirectoryScriptHandler
- All Implemented Interfaces:
LogEnabled
,Component
,Contextualizable
,Serviceable
The CmsScriptHandler that only executes scripts for the Queries Directory plugin
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.core.ui.script.ScriptHandler
ScriptHandler.ResultProcessor
-
Field Summary
Fields inherited from class org.ametys.plugins.core.ui.script.ScriptHandler
_context, _i18nUtils, _scriptBindingEP, RIGHT_EXECUTE_SCRIPTS, ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteScript
(String queryId, Map<String, Object> arguments) Execute a script saved in the queries directory.void
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.cms.scripts.CmsScriptHandler
_createModel, buildExecArguments, content2Json, getOrCreateModel, getProcessor, processScriptResult
Methods inherited from class org.ametys.plugins.core.ui.script.ScriptHandler
_addParameterizedVariables, _executeScript, contextualize, executeScript, executeScript, executeScript, getScriptBindingDescription, getWorkspaceName
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
QueriesDirectoryScriptHandler
public QueriesDirectoryScriptHandler()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classCmsScriptHandler
- Throws:
ServiceException
-
executeScript
Execute a script saved in the queries directory.- Parameters:
queryId
- The id of the query to execute.arguments
- The arguments to pass to the executeScript method.- Returns:
- A map of information on the script execution.
-