Annotation Type IsAuthorizedShoppingCartCreateUserOrAdmin


  • @Target(METHOD)
    @Retention(RUNTIME)
    @PreAuthorize("hasRole(\'TRUSTED_CLIENT\') OR @userValidator.isAnonymous(authentication, #shoppingCart) OR @userValidator.isRelatedPartyAuthorizedShoppingCartUser(authentication, #shoppingCart)")
    public @interface IsAuthorizedShoppingCartCreateUserOrAdmin
    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.
    Since:
    1907