Annotation Interface IsNotAnonymousOrAdmin
@Target(METHOD)
@Retention(RUNTIME)
@PreAuthorize("hasRole(\'TRUSTED_CLIENT\') OR @userValidator.isNotAnonymous(#relatedPartyId)")
public @interface IsNotAnonymousOrAdmin
Annotation for securing rest endpoints.
Only users that have role TRUSTED_CLIENT can retrieve data regarding the anonymous user from this endpoint.
Only users that have role TRUSTED_CLIENT can retrieve data regarding the anonymous user from this endpoint.
- Since:
- 1907