Package org.ehrbase.dao.access.jooq
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 Summary
Constructors Constructor Description AdminApiUtils(org.jooq.DSLContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteAudit(UUID id, String context, Boolean resultCanBeEmpty)Admin deletion of the given AuditvoiddeleteComposition(UUID id)Admin deletion of the given Composition.voiddeleteContribution(UUID id, UUID audit, Boolean resultCanBeEmpty)Admin deletion of the given ContributionvoiddeleteFolder(UUID id, Boolean deleteContributions)Admin deletion of the given Folder
-
-
-
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- 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
public void deleteContribution(UUID id, UUID audit, Boolean resultCanBeEmpty)
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)
-
-