Annotation Interface 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 their CustomerRef parameters automatically resolved by CustomerRefHandlerMethodArgumentResolver. 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
    Indicates that the customer reference must be resolver to a registered customer, otherwise an authentication exception will be thrown.
  • Element Details

    • 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