org.xwiki.rendering.macro.script
Class AbstractScriptMacroPermissionPolicy
java.lang.Object
org.xwiki.rendering.macro.script.AbstractScriptMacroPermissionPolicy
- All Implemented Interfaces:
- MacroPermissionPolicy
public abstract class AbstractScriptMacroPermissionPolicy
- extends Object
- implements MacroPermissionPolicy
Default Script Macro Permission policy that Script Macro implementations can extends: allow script execution only
if the current document has Programming Rights.
- Since:
- 4.1M1
- Version:
- $Id: 74205be9bc4b8354f6ecc2474a1234501e004fce $
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractScriptMacroPermissionPolicy
public AbstractScriptMacroPermissionPolicy()
hasPermission
public boolean hasPermission(ScriptMacroParameters parameters,
org.xwiki.rendering.transformation.MacroTransformationContext context)
- Description copied from interface:
MacroPermissionPolicy
- Verifies if the current execution Script Macro is allowed to execute its content or not.
- Specified by:
hasPermission in interface MacroPermissionPolicy
- 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-2013 XWiki. All Rights Reserved.