Class LogbookAuditAdministration
- java.lang.Object
-
- fr.gouv.vitam.logbook.administration.audit.core.LogbookAuditAdministration
-
public class LogbookAuditAdministration extends java.lang.Object
Business class for Logbook traceability audit
-
-
Constructor Summary
Constructors Constructor Description LogbookAuditAdministration(LogbookOperations logbookOperations)
LogbookAuditAdministration(LogbookOperations logbookOperations, AlertService alertService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
auditTraceability(java.lang.String type, int amount, java.time.temporal.ChronoUnit unit)
Check existence of at least 1 traceability logbook operation in last time period.
-
-
-
Constructor Detail
-
LogbookAuditAdministration
public LogbookAuditAdministration(LogbookOperations logbookOperations)
-
LogbookAuditAdministration
public LogbookAuditAdministration(LogbookOperations logbookOperations, AlertService alertService)
-
-
Method Detail
-
auditTraceability
public int auditTraceability(java.lang.String type, int amount, java.time.temporal.ChronoUnit unit) throws LogbookAuditException
Check existence of at least 1 traceability logbook operation in last time period.- Parameters:
type
- process typeamount
- time amountunit
- time unit- Returns:
- nb operations found
- Throws:
LogbookAuditException
- Internal check error
-
-