public class ContractLogbookService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AC_GLOBAL_ERROR |
static String |
AGENCY_NOT_FOUND_IN_DATABASE |
static String |
CONTRACT_BAD_REQUEST |
static String |
CONTRACT_VALIDATION_ERROR |
static String |
DUPLICATE_IN_DATABASE |
static String |
EMPTY_REQUIRED_FIELD |
static String |
FORMAT_MUST_BE_EMPTY |
static String |
FORMAT_MUST_NOT_BE_EMPTY |
static String |
FORMAT_NOT_FOUND |
static String |
IC_GLOBAL_ERROR |
static String |
MANAGEMENTCONTRACT_NOT_FOUND |
static String |
MC_GLOBAL_ERROR |
static String |
PROFILE_NOT_FOUND_IN_DATABASE |
static String |
STRATEGY_VALIDATION_ERROR |
static String |
UPDATE_CONTRACT_NOT_FOUND |
static String |
UPDATE_VALUE_NOT_IN_ENUM |
static String |
UPDATE_WRONG_FILEFORMAT |
static String |
WRONG_FIELD_FORMAT |
Constructor and Description |
---|
ContractLogbookService(LogbookOperationsClient logbookClient,
GUID eip,
String contractsImportEventCode,
String contractUpdateEventCode,
String collectionType,
String contractCheckKey) |
Modifier and Type | Method and Description |
---|---|
void |
logFatalError(String errorsDetails,
String eventType)
log fatal error (system or technical error)
|
void |
logStarted()
log start process
|
void |
logSuccess()
log end success process
|
void |
logUpdateStarted(String id)
log update start process
|
void |
logUpdateSuccess(String id,
String identifier,
List<String> listDiffs) |
void |
logValidationError(String errorsDetails,
String eventType,
String KOEventType)
Log validation error (business error)
|
public static final String MC_GLOBAL_ERROR
public static final String IC_GLOBAL_ERROR
public static final String AC_GLOBAL_ERROR
public static final String EMPTY_REQUIRED_FIELD
public static final String WRONG_FIELD_FORMAT
public static final String DUPLICATE_IN_DATABASE
public static final String PROFILE_NOT_FOUND_IN_DATABASE
public static final String AGENCY_NOT_FOUND_IN_DATABASE
public static final String CONTRACT_VALIDATION_ERROR
public static final String FORMAT_NOT_FOUND
public static final String FORMAT_MUST_BE_EMPTY
public static final String FORMAT_MUST_NOT_BE_EMPTY
public static final String MANAGEMENTCONTRACT_NOT_FOUND
public static final String CONTRACT_BAD_REQUEST
public static final String UPDATE_CONTRACT_NOT_FOUND
public static final String UPDATE_VALUE_NOT_IN_ENUM
public static final String UPDATE_WRONG_FILEFORMAT
public static final String STRATEGY_VALIDATION_ERROR
public void logValidationError(String errorsDetails, String eventType, String KOEventType) throws VitamException
errorsDetails
- VitamException
public void logFatalError(String errorsDetails, String eventType) throws VitamException
errorsDetails
- VitamException
public void logStarted() throws VitamException
VitamException
public void logUpdateStarted(String id) throws VitamException
VitamException
public void logSuccess() throws VitamException
VitamException
public void logUpdateSuccess(String id, String identifier, List<String> listDiffs) throws VitamException
VitamException
Copyright © 2019 Vitam. All rights reserved.