Annotation Interface IsAuthorizedShoppingCartUpdateUserOrAdmin
@Target(METHOD)
@Retention(RUNTIME)
@PreAuthorize("hasRole(\'TRUSTED_CLIENT\') OR @userValidator.isAnonymous(authentication, #shoppingCart) OR @userValidator.isRelatedPartyTrustedClientAndUpdateStatus(authentication, #shoppingCart)")
public @interface IsAuthorizedShoppingCartUpdateUserOrAdmin
Annotation for securing rest endpoints.
Only users that have role TRUSTED_CLIENT or users that obtained authorization for the provided party are able to consume the endpoint.
Only users that have role TRUSTED_CLIENT or users that obtained authorization for the provided party are able to consume the endpoint.
- Since:
- 1907