Annotation Type ResolveCustomerRef
-
@Retention(RUNTIME) @Target({TYPE,METHOD,PARAMETER}) public @interface ResolveCustomerRef
Triggers automatic resolution of any customer references on an endpoint. May be placed at the class, method, or parameter level. Mapped methods will have theirCustomerRef
parameters automatically resolved byCustomerRefHandlerMethodArgumentResolver
. The reference will be populated by the current authentication details.- Author:
- Jacob Mitash
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
registeredOnly
Indicates that the customer reference must be resolver to a registered customer, otherwise an authentication exception will be thrown.
-
-
-
Element Detail
-
registeredOnly
boolean registeredOnly
Indicates that the customer reference must be resolver to a registered customer, otherwise an authentication exception will be thrown.- Returns:
- true to only allow registered customer references, false to also allow anonymous customer references
- Default:
- false
-
-