public class HasPermissionDirective extends PermissionDirective
usage: <@hasPermission entityTypeId='celiacsprue' permission="WRITE">write permission@hasPermission>
| Constructor and Description |
|---|
HasPermissionDirective(UserPermissionEvaluator permissionService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(boolean hasPermission,
freemarker.core.Environment env,
freemarker.template.TemplateDirectiveBody body) |
executepublic HasPermissionDirective(UserPermissionEvaluator permissionService)
protected void execute(boolean hasPermission,
freemarker.core.Environment env,
freemarker.template.TemplateDirectiveBody body)
throws freemarker.template.TemplateException,
IOException
execute in class PermissionDirectivefreemarker.template.TemplateExceptionIOExceptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.