Interface CustomerService
- All Known Implementing Classes:
DefaultCustomerService
public interface CustomerService
Provides methods for retrieving customers
-
Method Summary
Modifier and TypeMethodDescriptiongetCustomerByCustomerId(String customerId) Gets the customer by customerIddefault Optional<CustomerModel>getFirstCustomerByBaseSitePK(PK baseSitePK) Gets the first customer who registered to this BaseSitebooleanVerifies if given id is in UUID format
-
Method Details
-
isUUID
Verifies if given id is in UUID format- Parameters:
id- the id- Returns:
trueif UUID format
-
getCustomerByCustomerId
Gets the customer by customerId- Parameters:
customerId- the customerID in UUID format of the customer- Returns:
- the found customer
-
getFirstCustomerByBaseSitePK
Gets the first customer who registered to this BaseSite- Parameters:
baseSitePK- BaseSite PK- Returns:
- return Optional.empty() if no one customer found and Optional.of(customer) is customer found
-