Package org.ehrbase.dao.access.jooq
Class AdminApiUtils
java.lang.Object
org.ehrbase.dao.access.jooq.AdminApiUtils
Util class to offer reusable methods in the scope of the Admin API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAudit(UUID id, String context, Boolean resultCanBeEmpty) Admin deletion of the given AuditvoidAdmin deletion of the given Composition.voiddeleteContribution(UUID id, UUID audit, Boolean resultCanBeEmpty) Admin deletion of the given Contribution
-
Constructor Details
-
AdminApiUtils
public AdminApiUtils(org.jooq.DSLContext ctx)
-
-
Method Details
-
deleteComposition
Admin deletion of the given Composition.- Parameters:
id- Composition
-
deleteAudit
Admin deletion of the given Audit- Parameters:
id- Auditcontext- Object context to build error message, e.g. "Composition" for the audit of a CompositionresultCanBeEmpty- Config parameter to disable check of result, in case the object is deleted already (for broader scopes, like EHR itself)
-
deleteContribution
Admin deletion of the given Contribution- Parameters:
id- Contributionaudit- Audit ID, optionalresultCanBeEmpty- Config parameter to disable check of result, in case the object is deleted already (for broader scopes, like EHR itself)
-