Interface CustomerService

All Known Implementing Classes:
DefaultCustomerService

public interface CustomerService
Provides methods for retrieving customers
  • Method Details

    • isUUID

      boolean isUUID(String id)
      Verifies if given id is in UUID format
      Parameters:
      id - the id
      Returns:
      true if UUID format
    • getCustomerByCustomerId

      CustomerModel getCustomerByCustomerId(String customerId)
      Gets the customer by customerId
      Parameters:
      customerId - the customerID in UUID format of the customer
      Returns:
      the found customer
    • getFirstCustomerByBaseSitePK

      default Optional<CustomerModel> getFirstCustomerByBaseSitePK(PK baseSitePK)
      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