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 aMapcontaining 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
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,Object>_arguments
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringscript()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
-
-
-
Field Detail
-
_arguments
private Map<String,Object> _arguments
-
-
Method Detail
-
script
public String script()
Description copied from interface:ScriptExecArgumentsThe script to execute, as text- Specified by:
scriptin interfaceScriptExecArguments- Returns:
- The script to execute, as text
-
searchModelId
public Optional<String> searchModelId()
Description copied from interface:CmsScriptExecArgumentsThe id of search model for searching contents in CMS ScriptTool- Specified by:
searchModelIdin interfaceCmsScriptExecArguments- Returns:
- The id of search model for searching contents in CMS ScriptTool
-
selection
public Optional<Collection<String>> selection()
Description copied from interface:CmsScriptExecArgumentsThe current selection of contents- Specified by:
selectionin interfaceCmsScriptExecArguments- Returns:
- The current selection of contents
-
-