Class ContractLogbookService


  • public class ContractLogbookService
    extends java.lang.Object
    • Field Detail

      • EMPTY_REQUIRED_FIELD

        public static final java.lang.String EMPTY_REQUIRED_FIELD
        See Also:
        Constant Field Values
      • WRONG_FIELD_FORMAT

        public static final java.lang.String WRONG_FIELD_FORMAT
        See Also:
        Constant Field Values
      • DUPLICATE_IN_DATABASE

        public static final java.lang.String DUPLICATE_IN_DATABASE
        See Also:
        Constant Field Values
      • PROFILE_NOT_FOUND_IN_DATABASE

        public static final java.lang.String PROFILE_NOT_FOUND_IN_DATABASE
        See Also:
        Constant Field Values
      • AGENCY_NOT_FOUND_IN_DATABASE

        public static final java.lang.String AGENCY_NOT_FOUND_IN_DATABASE
        See Also:
        Constant Field Values
      • CONTRACT_VALIDATION_ERROR

        public static final java.lang.String CONTRACT_VALIDATION_ERROR
        See Also:
        Constant Field Values
      • FORMAT_NOT_FOUND

        public static final java.lang.String FORMAT_NOT_FOUND
        See Also:
        Constant Field Values
      • FORMAT_MUST_BE_EMPTY

        public static final java.lang.String FORMAT_MUST_BE_EMPTY
        See Also:
        Constant Field Values
      • FORMAT_MUST_NOT_BE_EMPTY

        public static final java.lang.String FORMAT_MUST_NOT_BE_EMPTY
        See Also:
        Constant Field Values
      • MANAGEMENTCONTRACT_NOT_FOUND

        public static final java.lang.String MANAGEMENTCONTRACT_NOT_FOUND
        See Also:
        Constant Field Values
      • CONTRACT_BAD_REQUEST

        public static final java.lang.String CONTRACT_BAD_REQUEST
        See Also:
        Constant Field Values
      • UPDATE_CONTRACT_NOT_FOUND

        public static final java.lang.String UPDATE_CONTRACT_NOT_FOUND
        See Also:
        Constant Field Values
      • UPDATE_VALUE_NOT_IN_ENUM

        public static final java.lang.String UPDATE_VALUE_NOT_IN_ENUM
        See Also:
        Constant Field Values
      • UPDATE_WRONG_FILEFORMAT

        public static final java.lang.String UPDATE_WRONG_FILEFORMAT
        See Also:
        Constant Field Values
      • STRATEGY_VALIDATION_ERROR

        public static final java.lang.String STRATEGY_VALIDATION_ERROR
        See Also:
        Constant Field Values
    • Constructor Detail

      • ContractLogbookService

        public ContractLogbookService​(LogbookOperationsClient logbookClient,
                                      GUID eip,
                                      java.lang.String contractsImportEventCode,
                                      java.lang.String contractUpdateEventCode,
                                      java.lang.String collectionType,
                                      java.lang.String contractCheckKey)
    • Method Detail

      • logValidationError

        public void logValidationError​(java.lang.String errorsDetails,
                                       java.lang.String eventType,
                                       java.lang.String KOEventType)
                                throws VitamException
        Log validation error (business error)
        Parameters:
        errorsDetails -
        Throws:
        VitamException
      • logFatalError

        public void logFatalError​(java.lang.String errorsDetails,
                                  java.lang.String eventType)
                           throws VitamException
        log fatal error (system or technical error)
        Parameters:
        errorsDetails -
        Throws:
        VitamException
      • logUpdateStarted

        public void logUpdateStarted​(java.lang.String id)
                              throws VitamException
        log update start process
        Throws:
        VitamException
      • logUpdateSuccess

        public void logUpdateSuccess​(java.lang.String id,
                                     java.lang.String identifier,
                                     java.util.List<java.lang.String> listDiffs)
                              throws VitamException
        Throws:
        VitamException