|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.internal.macro.script.AbstractScriptCheckerListener
org.xwiki.rendering.internal.macro.script.NestedScriptMacroValidatorListener
@Component(value="nestedscriptmacrovalidator") public class NestedScriptMacroValidatorListener
Listens to ScriptEvaluatingEvent and cancels the evaluation if the script
is nested.
| Constructor Summary | |
|---|---|
NestedScriptMacroValidatorListener()
|
|
| Method Summary | |
|---|---|
protected void |
check(org.xwiki.observation.event.CancelableEvent event,
org.xwiki.rendering.transformation.MacroTransformationContext context,
ScriptMacroParameters parameters)
This method is called when an ScriptEvaluatingEvent is received. |
java.lang.String |
getName()
|
| Methods inherited from class org.xwiki.rendering.internal.macro.script.AbstractScriptCheckerListener |
|---|
getEvents, onEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NestedScriptMacroValidatorListener()
| Method Detail |
|---|
public java.lang.String getName()
EventListener.getName()
protected void check(org.xwiki.observation.event.CancelableEvent event,
org.xwiki.rendering.transformation.MacroTransformationContext context,
ScriptMacroParameters parameters)
ScriptEvaluatingEvent is received.
check in class AbstractScriptCheckerListenerevent - the received eventcontext - current transformation contextparameters - parameters of the script macro about to be executedAbstractScriptCheckerListener.check(CancelableEvent, MacroTransformationContext, ScriptMacroParameters)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||