Package org.bhn.promotion.core.proxy
Class PersonManagementProxy
java.lang.Object
org.bhn.promotion.core.proxy.PersonManagementProxy
Proxy class for interacting with the Person Management API.
This class uses a RestTemplate to send HTTP requests to the Person Management API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPersonByDetails(URI uri) Retrieves a list of persons based on the provided request parameters.
-
Constructor Details
-
PersonManagementProxy
public PersonManagementProxy()
-
-
Method Details
-
getPersonByDetails
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
Personobjects retrieved from the API. - Throws:
RuntimeException- for other unexpected errors.
-