Package org.ametys.cms.scripts
Class CmsScriptExecArguments.Impl
- java.lang.Object
-
- org.ametys.cms.scripts.CmsScriptExecArguments.Impl
-
- All Implemented Interfaces:
CmsScriptExecArguments
,ScriptExecArguments
- Enclosing interface:
- CmsScriptExecArguments
public static class CmsScriptExecArguments.Impl extends Object implements CmsScriptExecArguments
The default implementation forCmsScriptExecArguments
Must be constructed from aMap
containing at least the key "script", and optionally the keys "model" and "selection"
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.cms.scripts.CmsScriptExecArguments
CmsScriptExecArguments.Impl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
script()
The script to execute, as textOptional<String>
searchModelId()
The id of search model for searching contents in CMS ScriptToolOptional<Collection<String>>
selection()
The current selection of contents
-
-
-
Method Detail
-
script
public String script()
Description copied from interface:ScriptExecArguments
The script to execute, as text- Specified by:
script
in interfaceScriptExecArguments
- Returns:
- The script to execute, as text
-
searchModelId
public Optional<String> searchModelId()
Description copied from interface:CmsScriptExecArguments
The id of search model for searching contents in CMS ScriptTool- Specified by:
searchModelId
in interfaceCmsScriptExecArguments
- Returns:
- The id of search model for searching contents in CMS ScriptTool
-
selection
public Optional<Collection<String>> selection()
Description copied from interface:CmsScriptExecArguments
The current selection of contents- Specified by:
selection
in interfaceCmsScriptExecArguments
- Returns:
- The current selection of contents
-
-