Class AtrKoBuilder

java.lang.Object
fr.gouv.vitam.ingest.external.core.AtrKoBuilder

public class AtrKoBuilder extends Object
Archive Transfer Reply KO from primary Ingest external steps
  • Method Details

    • buildAtrKo

      public static String buildAtrKo(String messageIdentifier, String archivalAgency, String transferringAgency, String eventType, String addedMessage, StatusCode code, LocalDateTime eventDateTime) throws IngestExternalException
      To generate a default ATR KO from Ingest External on AV or MimeType checks.
      Parameters:
      messageIdentifier -
      archivalAgency -
      transferringAgency -
      eventType -
      addedMessage - might be null
      code -
      Returns:
      the corresponding InputStream with the ATR KO in XML format
      Throws:
      IngestExternalException