Class LogbookAdministration
- java.lang.Object
-
- fr.gouv.vitam.logbook.administration.core.LogbookAdministration
-
public class LogbookAdministration extends java.lang.Object
Business class for Logbook Administration (traceability)
-
-
Constructor Summary
Constructors Constructor Description LogbookAdministration(LogbookOperations logbookOperations, TimestampGenerator timestampGenerator, java.lang.Integer operationTraceabilityOverlapDelayInSeconds, java.lang.Integer operationTraceabilityMaxRenewalDelay, java.time.temporal.ChronoUnit operationTraceabilityMaxRenewalDelayUnit, int operationTraceabilityThreadPoolSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
generateSecureLogbook(int tenantId)
secure the logbook operation since last securisation.java.util.List<TenantLogbookOperationTraceabilityResult>
generateSecureLogbooks(java.util.List<java.lang.Integer> tenants)
-
-
-
Constructor Detail
-
LogbookAdministration
public LogbookAdministration(LogbookOperations logbookOperations, TimestampGenerator timestampGenerator, java.lang.Integer operationTraceabilityOverlapDelayInSeconds, java.lang.Integer operationTraceabilityMaxRenewalDelay, java.time.temporal.ChronoUnit operationTraceabilityMaxRenewalDelayUnit, int operationTraceabilityThreadPoolSize)
-
-
Method Detail
-
generateSecureLogbook
public java.lang.String generateSecureLogbook(int tenantId) throws TraceabilityException
secure the logbook operation since last securisation.- Returns:
- operation Id if traceability operation has not been skipped
- Throws:
TraceabilityException
- if error on generating secure logbook
-
generateSecureLogbooks
public java.util.List<TenantLogbookOperationTraceabilityResult> generateSecureLogbooks(java.util.List<java.lang.Integer> tenants) throws TraceabilityException
- Throws:
TraceabilityException
-
-