Class ScriptHandler.ResultProcessor
- java.lang.Object
-
- org.ametys.plugins.core.ui.script.ScriptHandler.ResultProcessor
-
- Direct Known Subclasses:
AsyncScriptHandler.AsyncResultProcessor
,CmsScriptHandler.CmsResultProcessor
,RepositoryScriptHandler.RepositoryResultProcessor
,ScriptVersionHandlerScriptHandler.VersionProcessor
- Enclosing class:
- ScriptHandler
protected static class ScriptHandler.ResultProcessor extends Object
A processor for scripts results.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResultProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
_processSingleObject(Object scriptResult)
Transform an object that is not a collectionprotected Object
process(Map<String,Object> results, Object scriptResult)
Processes the script result.
-
-
-
Constructor Detail
-
ResultProcessor
protected ResultProcessor()
-
-
Method Detail
-
process
protected Object process(Map<String,Object> results, Object scriptResult)
Processes the script result.- Parameters:
results
- the current results map.scriptResult
- the actual script Result.- Returns:
- the processed script result.
-
_processSingleObject
protected Object _processSingleObject(Object scriptResult)
Transform an object that is not a collection- Parameters:
scriptResult
- the result object- Returns:
- the object transformed for return
-
-