Class CustomerService

java.lang.Object
io.github.mspr4_2025.customers_service.service.CustomerService

@Service public class CustomerService extends Object
  • Constructor Details

    • CustomerService

      public CustomerService()
  • Method Details

    • getAllCustomers

      public List<CustomerEntity> getAllCustomers()
    • getCustomerByUid

      public CustomerEntity getCustomerByUid(UUID uid) throws org.springframework.web.server.ResponseStatusException
      Throws:
      org.springframework.web.server.ResponseStatusException - when no entity exist with the given uid. This exception is handled by the controllers, returning a response with the corresponding http status.
    • createCustomer

      public CustomerEntity createCustomer(CustomerCreateDto customerCreate)
    • updateCustomer

      public void updateCustomer(UUID uid, CustomerUpdateDto customerUpdate)
    • deleteCustomer

      public void deleteCustomer(UUID uid)