Class AdminApiUtils

java.lang.Object
org.ehrbase.dao.access.jooq.AdminApiUtils

public class AdminApiUtils extends Object
Util class to offer reusable methods in the scope of the Admin API.
  • Constructor Details

    • AdminApiUtils

      public AdminApiUtils(org.jooq.DSLContext ctx)
  • Method Details

    • deleteComposition

      public void deleteComposition(UUID id)
      Admin deletion of the given Composition.
      Parameters:
      id - Composition
    • deleteAudit

      public void deleteAudit(UUID id, String context, Boolean resultCanBeEmpty)
      Admin deletion of the given Audit
      Parameters:
      id - Audit
      context - Object context to build error message, e.g. "Composition" for the audit of a Composition
      resultCanBeEmpty - Config parameter to disable check of result, in case the object is deleted already (for broader scopes, like EHR itself)
    • deleteContribution

      public void deleteContribution(UUID id, UUID audit, Boolean resultCanBeEmpty)
      Admin deletion of the given Contribution
      Parameters:
      id - Contribution
      audit - Audit ID, optional
      resultCanBeEmpty - Config parameter to disable check of result, in case the object is deleted already (for broader scopes, like EHR itself)