Class PersonManagementProxy

java.lang.Object
org.bhn.promotion.core.proxy.PersonManagementProxy

@Component public class PersonManagementProxy extends Object
Proxy class for interacting with the Person Management API.

This class uses a RestTemplate to send HTTP requests to the Person Management API

  • Constructor Details

    • PersonManagementProxy

      public PersonManagementProxy()
  • Method Details

    • getPersonByDetails

      public List<Person> getPersonByDetails(URI uri)
      Retrieves a list of persons based on the provided request parameters.

      Filter by email or first_name or last_name

      Parameters:
      uri - the URI to send the request to, which should include query parameters for filtering.
      Returns:
      a list of Person objects retrieved from the API.
      Throws:
      RuntimeException - for other unexpected errors.