Interface DeleteController<T>

Type Parameters:
T - The type of entity to delete
All Known Implementing Classes:
FunctionLibraryController, RuleHelperController, RuleLibraryController

public interface DeleteController<T>
Base interface for delete operations in REST controllers.

This interface defines the standard contract for deleting entities in the Beas Rule Engine. It provides a consistent API structure for DELETE operations across all entity types.

The interface includes:

  • Standard DELETE endpoint mapping
  • Consistent response structure
  • Exception handling
Since:
1.0
Version:
1.0
Author:
Beas Solution Team
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<HttpResponse<org.springframework.http.HttpStatus>>
    Deletes an entity by its ID.
  • Method Details

    • delete

      @DeleteMapping(path="/delete/{record_id}") org.springframework.http.ResponseEntity<HttpResponse<org.springframework.http.HttpStatus>> delete(@PathVariable("record_id") String obj) throws OperationException
      Deletes an entity by its ID.

      This method handles the deletion of an entity by its unique identifier. The entity is permanently removed from the database. The operation returns a success status if the deletion is completed successfully.

      Parameters:
      obj - The unique identifier of the entity to delete
      Returns:
      ResponseEntity containing the HTTP status response
      Throws:
      OperationException - if deletion fails or entity not found