Package org.molgenis.security.freemarker
Class NotHasPermissionDirective
- java.lang.Object
-
- org.molgenis.security.freemarker.PermissionDirective
-
- org.molgenis.security.freemarker.NotHasPermissionDirective
-
- All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel,freemarker.template.TemplateModel
public class NotHasPermissionDirective extends PermissionDirective
Directive that prints the body of the tag if the current user has no permission on entityusage: <@notHasPermission entity='celiacsprue' permission="WRITE">no write permission@notHasPermission>
-
-
Constructor Summary
Constructors Constructor Description NotHasPermissionDirective(org.molgenis.security.core.UserPermissionEvaluator permissionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecute(boolean hasPermission, freemarker.core.Environment env, freemarker.template.TemplateDirectiveBody body)-
Methods inherited from class org.molgenis.security.freemarker.PermissionDirective
execute
-
-
-
-
Method Detail
-
execute
protected void execute(boolean hasPermission, freemarker.core.Environment env, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException- Specified by:
executein classPermissionDirective- Throws:
freemarker.template.TemplateExceptionIOException
-
-