@Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) @Repeatable(value=NotPermissionList.class) public @interface NotPermission
Can be placed on annotation aware elements like implementations of StructuredService
or controller methods (implementations of Controller
).
Uses UserContext.getCurrentUser()
to obtain the current user and calls
UserInfo.hasPermission(String)
with the given value prepended with an exclamation mark
to check if the current user is authorized.
UserInfo.hasPermission(String)
public abstract String value
Copyright © 2018. All rights reserved.