public class HasPermissionMethod extends BaseTemplateProcessorExtension implements freemarker.template.TemplateMethodModelEx
Method returns whether the current user is granted a particular permission a the TemplateNode.
Usage: hasPermission(TemplateNode node, String permission) - 1 on true, 0 on false
| Constructor and Description |
|---|
HasPermissionMethod() |
| Modifier and Type | Method and Description |
|---|---|
Object |
exec(List args) |
getTemplateImageResolver, setTemplateImageResolvergetExtensionName, register, setExtensionName, setProcessorpublic Object exec(List args) throws freemarker.template.TemplateModelException
exec in interface freemarker.template.TemplateMethodModelexec in interface freemarker.template.TemplateMethodModelExfreemarker.template.TemplateModelExceptionTemplateMethodModel.exec(java.util.List)Copyright © 2005–2018 Alfresco Software. All rights reserved.