|
||||||||||
| 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.PermissionCheckerListener
@Component(value="permissionchecker") public class PermissionCheckerListener
Listens to ScriptEvaluatingEvent and aborts execution if the user is
not permitted to execute the script.
| Constructor Summary | |
|---|---|
PermissionCheckerListener()
|
|
| 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 PermissionCheckerListener()
| 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(org.xwiki.observation.event.CancelableEvent, org.xwiki.rendering.transformation.MacroTransformationContext, org.xwiki.rendering.macro.script.ScriptMacroParameters)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||