Class ContractLogbookService
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.core.contract.ContractLogbookService
-
public class ContractLogbookService extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AC_GLOBAL_ERROR
static java.lang.String
AGENCY_NOT_FOUND_IN_DATABASE
static java.lang.String
CONTRACT_BAD_REQUEST
static java.lang.String
CONTRACT_VALIDATION_ERROR
static java.lang.String
DUPLICATE_IN_DATABASE
static java.lang.String
EMPTY_REQUIRED_FIELD
static java.lang.String
FORMAT_MUST_BE_EMPTY
static java.lang.String
FORMAT_MUST_NOT_BE_EMPTY
static java.lang.String
FORMAT_NOT_FOUND
static java.lang.String
IC_GLOBAL_ERROR
static java.lang.String
MANAGEMENTCONTRACT_NOT_FOUND
static java.lang.String
MC_GLOBAL_ERROR
static java.lang.String
PROFILE_NOT_FOUND_IN_DATABASE
static java.lang.String
STRATEGY_VALIDATION_ERROR
static java.lang.String
UPDATE_CONTRACT_NOT_FOUND
static java.lang.String
UPDATE_VALUE_NOT_IN_ENUM
static java.lang.String
UPDATE_WRONG_FILEFORMAT
static java.lang.String
VERSION_RETENTION_POLICY_VALIDATION_ERROR
static java.lang.String
WRONG_FIELD_FORMAT
-
Constructor Summary
Constructors Constructor Description ContractLogbookService(LogbookOperationsClient logbookClient, GUID eip, java.lang.String contractsImportEventCode, java.lang.String contractUpdateEventCode, java.lang.String collectionType, java.lang.String contractCheckKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logFatalError(java.lang.String errorsDetails, java.lang.String eventType)
log fatal error (system or technical error)void
logStarted()
log start processvoid
logSuccess()
log end success processvoid
logUpdateStarted(java.lang.String id)
log update start processvoid
logUpdateSuccess(java.lang.String id, java.lang.String identifier, java.util.List<java.lang.String> listDiffs)
void
logValidationError(java.lang.String errorsDetails, java.lang.String eventType, java.lang.String KOEventType)
Log validation error (business error)
-
-
-
Field Detail
-
MC_GLOBAL_ERROR
public static final java.lang.String MC_GLOBAL_ERROR
- See Also:
- Constant Field Values
-
IC_GLOBAL_ERROR
public static final java.lang.String IC_GLOBAL_ERROR
- See Also:
- Constant Field Values
-
AC_GLOBAL_ERROR
public static final java.lang.String AC_GLOBAL_ERROR
- See Also:
- Constant Field Values
-
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
-
VERSION_RETENTION_POLICY_VALIDATION_ERROR
public static final java.lang.String VERSION_RETENTION_POLICY_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
-
logStarted
public void logStarted() throws VitamException
log start process- Throws:
VitamException
-
logUpdateStarted
public void logUpdateStarted(java.lang.String id) throws VitamException
log update start process- Throws:
VitamException
-
logSuccess
public void logSuccess() throws VitamException
log end success 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
-
-