Annotation Type LoggedIn
-
@Target({TYPE,METHOD,PARAMETER}) @Retention(RUNTIME) public @interface LoggedIn
Annotation to mark the method parameter with that shall get theUserAccountof the currently logged in user injected. The method parameter needs to be either of typeOptional<UserAccount>(for methods that can support non-authenticated access) orUserAccount. In the latter case aServletRequestBindingExceptionwill be thrown if noUserAccountcould have been obtained in the first place.- Author:
- Paul Henke, Oliver Gierke
- See Also:
LoggedInUserAccountArgumentResolver