Package fr.gouv.vitam.common.accesslog
Class AccessLogUtils
- java.lang.Object
-
- fr.gouv.vitam.common.accesslog.AccessLogUtils
-
public class AccessLogUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ARCHIVE_ID
static java.lang.String
CONTEXT_ID
static java.lang.String
FILE_NAME
static java.lang.String
QUALIFIER
static java.lang.String
SIZE
static java.lang.String
VERSION
-
Constructor Summary
Constructors Constructor Description AccessLogUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Boolean
checkFileInRequestedDates(java.lang.String fileName, java.util.Date startDate, java.util.Date endDate)
static AccessLogInfoModel
getInfoForAccessLog(java.lang.String qualifier, java.lang.Integer version, VitamSession session, java.lang.Long size, java.lang.String archiveUnitId)
static AccessLogInfoModel
getInfoFromWorkerInfo(java.util.Map<java.lang.String,java.lang.Object> objectInfo, VitamSession session, java.lang.Boolean mustLog)
static AccessLogInfoModel
getNoLogAccessLog()
static com.fasterxml.jackson.databind.JsonNode
getWorkerInfo(java.lang.String qualifier, java.lang.Integer version, java.lang.Long size, java.lang.String archiveUnitId, java.lang.String fileName)
static java.lang.Boolean
mustLog(AccessLogInfoModel logInfo)
-
-
-
Field Detail
-
QUALIFIER
public static final java.lang.String QUALIFIER
- See Also:
- Constant Field Values
-
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
-
CONTEXT_ID
public static final java.lang.String CONTEXT_ID
- See Also:
- Constant Field Values
-
ARCHIVE_ID
public static final java.lang.String ARCHIVE_ID
- See Also:
- Constant Field Values
-
SIZE
public static final java.lang.String SIZE
- See Also:
- Constant Field Values
-
FILE_NAME
public static final java.lang.String FILE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWorkerInfo
public static com.fasterxml.jackson.databind.JsonNode getWorkerInfo(java.lang.String qualifier, java.lang.Integer version, java.lang.Long size, java.lang.String archiveUnitId, java.lang.String fileName)
-
getInfoFromWorkerInfo
public static AccessLogInfoModel getInfoFromWorkerInfo(java.util.Map<java.lang.String,java.lang.Object> objectInfo, VitamSession session, java.lang.Boolean mustLog)
-
getInfoForAccessLog
public static AccessLogInfoModel getInfoForAccessLog(java.lang.String qualifier, java.lang.Integer version, VitamSession session, java.lang.Long size, java.lang.String archiveUnitId)
-
checkFileInRequestedDates
public static java.lang.Boolean checkFileInRequestedDates(java.lang.String fileName, java.util.Date startDate, java.util.Date endDate)
-
getNoLogAccessLog
public static AccessLogInfoModel getNoLogAccessLog()
-
mustLog
public static java.lang.Boolean mustLog(AccessLogInfoModel logInfo)
-
-