Class ProductsServices

java.lang.Object
io.github.mspr4_2025.products_service.service.ProductsServices

@Service public class ProductsServices extends Object
  • Constructor Details

    • ProductsServices

      public ProductsServices()
  • Method Details

    • getAllProducts

      public List<ProductEntity> getAllProducts()
    • getProductByUid

      public ProductEntity getProductByUid(UUID uid)
      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.
    • createProduct

      public ProductEntity createProduct(ProductCreateDto productCreateDto)
    • updateProduct

      public void updateProduct(UUID uid, ProductUpdateDto productUpdateDto)
    • deleteProduct

      public void deleteProduct(UUID uid)