@Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) @Repeatable(value=PermissionList.class) public @interface Permission
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 to check if the current user
is authorized.
UserInfo.hasPermission(String)
public abstract String value
Copyright © 2018. All rights reserved.