org.xwiki.rendering.macro.script
Interface MacroPermissionPolicy
- All Known Implementing Classes:
- AbstractScriptMacroPermissionPolicy
@Role
public interface MacroPermissionPolicy
Decides whether a Script Macro can execute or not. Script Macros should implement this Role with a Hint being the
same as the Macro Hint.
- Since:
- 4.1M1
- Version:
- $Id$
|
Method Summary |
boolean |
hasPermission(ScriptMacroParameters parameters,
org.xwiki.rendering.transformation.MacroTransformationContext context)
Verifies if the current execution Script Macro is allowed to execute its content or not. |
hasPermission
boolean hasPermission(ScriptMacroParameters parameters,
org.xwiki.rendering.transformation.MacroTransformationContext context)
- Verifies if the current execution Script Macro is allowed to execute its content or not.
- Parameters:
parameters - the executing macro parameterscontext - the transformation context in which the current macro is executing
- Returns:
- true if the script can execute or false otherwise
Copyright © 2004-2012 XWiki. All Rights Reserved.