Class LogbookService


  • public class LogbookService
    extends java.lang.Object
    Logbook service containing common code for logbook
    • Constructor Detail

      • LogbookService

        public LogbookService()
    • Method Detail

      • getLogbookOperation

        public RequestResponse<LogbookOperation> getLogbookOperation​(AccessExternalClient accessClient,
                                                                     int tenantId,
                                                                     java.lang.String contractId,
                                                                     java.lang.String applicationSessionId,
                                                                     java.lang.String operationId)
                                                              throws VitamClientException
        Get a Logbook operation by its id
        Parameters:
        accessClient - access client
        tenantId - tenant id
        contractId - access contract id
        applicationSessionId - application session id
        operationId - logbook operation id
        Returns:
        RequestResponse
        Throws:
        VitamClientException - exception
      • checkFinalStatusLogbook

        public LogbookEventOperation checkFinalStatusLogbook​(AccessExternalClient accessClient,
                                                             int tenantId,
                                                             java.lang.String contractId,
                                                             java.lang.String applicationSessionId,
                                                             java.lang.String operationId,
                                                             java.lang.String status)
                                                      throws VitamClientException
        check on logbook if the global status is OK (status of the last event, if last event is correct)
        Parameters:
        accessClient - access client
        tenantId - tenant id
        contractId - access contract id
        applicationSessionId - application session id
        operationId - logbook operation id
        status - expected status
        Throws:
        VitamClientException - exception