Class AccessLogParameters
- java.lang.Object
-
- fr.gouv.vitam.storage.engine.server.storagelog.parameters.AccessLogParameters
-
- All Implemented Interfaces:
StorageLogStructure
public class AccessLogParameters extends java.lang.Object implements StorageLogStructure
-
-
Constructor Summary
Constructors Constructor Description AccessLogParameters(java.util.Map<StorageLogbookParameterName,java.lang.String> mapParameters)Set directly at least all mandatory parameters in the AccessLogParameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckMandatoryParameters()Check if mandatories parameters are not empty or nulljava.time.LocalDateTimegetEventDateTime()Get the event date time as a local date timejava.util.Map<StorageLogbookParameterName,java.lang.String>getMapParameters()Get the parameters mapStorageLogbookOutcomegetStatus()Get the status as an outcomeAccessLogParameterssetStatus(StorageLogbookOutcome outcome)set The status of the operation
-
-
-
Constructor Detail
-
AccessLogParameters
public AccessLogParameters(java.util.Map<StorageLogbookParameterName,java.lang.String> mapParameters)
Set directly at least all mandatory parameters in the AccessLogParameters. This constructor checks if all mandatory parameters are set- Parameters:
mapParameters- The initial parameters (MUST contains mandatory parameters- Throws:
StorageException
-
-
Method Detail
-
getEventDateTime
public java.time.LocalDateTime getEventDateTime()
Get the event date time as a local date time- Returns:
- the local date time as a LocalDateTime
-
setStatus
public AccessLogParameters setStatus(StorageLogbookOutcome outcome)
set The status of the operation- Parameters:
outcome- the outcome- Returns:
- the AccessLogParameters after the parameter has been added
-
getStatus
public StorageLogbookOutcome getStatus()
Get the status as an outcome- Returns:
- the status as a StorageLogbookOutcome
-
checkMandatoryParameters
public void checkMandatoryParameters() throws java.lang.IllegalArgumentExceptionCheck if mandatories parameters are not empty or null- Throws:
java.lang.IllegalArgumentException- thrown when one parameter is empty or null
-
getMapParameters
public java.util.Map<StorageLogbookParameterName,java.lang.String> getMapParameters()
Get the parameters map- Specified by:
getMapParametersin interfaceStorageLogStructure- Returns:
- the parameters map
-
-