Class AdminApiUtils


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

      • AdminApiUtils

        public AdminApiUtils​(org.jooq.DSLContext ctx)
    • Method Detail

      • 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)
      • deleteFolder

        public void deleteFolder​(UUID id,
                                 Boolean deleteContributions)
        Admin deletion of the given Folder
        Parameters:
        id - Folder
        deleteContributions - Option to en- or disable the deletion of all linked contributions. Disable when calling in context of cascading high level object like EHR.