Interface LogbookParameters
- All Superinterfaces:
VitamParameter<LogbookParameterName>
- All Known Implementing Classes:
LogbookLifeCycleObjectGroupParameters
,LogbookLifeCycleParameters
,LogbookLifeCycleUnitParameters
,LogbookOperationParameters
Logbook parameters
-
Method Summary
Modifier and TypeMethodDescriptionThe EventDateTime is set by the Logbook methods during creation or appendgetParameterValue
(LogbookParameterName parameterName) Get the parameter according to the parameterNameGet the outcome statusGet the process typeputParameterValue
(LogbookParameterName parameterName, String parameterValue) Put parameterValue on mapParamaters with parameterName key
If parameterKey already exists, the override it (no check)setBeginningLog
(String handlerId, String subTaskId, String additionalMessage, String... params) Update the current LogbookParameters with status and messagesetFinalStatus
(String handlerId, String subTaskId, StatusCode code, String additionalMessage, String... params) Update the current LogbookParameters with status and messagesetFromParameters
(LogbookParameters parameters) Set from another LogbookParametersSet from map using String as KeysetStatus
(StatusCode outcome) Set the outcome statussetTypeProcess
(LogbookTypeProcess process) Set the process typeMethods inherited from interface fr.gouv.vitam.common.parameter.VitamParameter
getMandatoriesParameters, getMapParameters
-
Method Details
-
getEventDateTime
LocalDateTime getEventDateTime()The EventDateTime is set by the Logbook methods during creation or append- Returns:
- the associated EventDateTime if set (or null if not set yet)
-
setStatus
Set the outcome status- Parameters:
outcome
-- Returns:
- this
-
getStatus
StatusCode getStatus()Get the outcome status- Returns:
- the status (or null if not set yet)
- Throws:
IllegalArgumentException
- if the status is with incorrect value
-
setTypeProcess
Set the process type- Parameters:
process
- process type- Returns:
- this
-
getTypeProcess
LogbookTypeProcess getTypeProcess()Get the process type- Returns:
- the process type (or null if not set yet)
- Throws:
IllegalArgumentException
- if the process type is with incorrect value
-
putParameterValue
Put parameterValue on mapParamaters with parameterName key
If parameterKey already exists, the override it (no check)- Parameters:
parameterName
- the key of the parameter to put on the parameter mapparameterValue
- the value to put on the parameter map- Returns:
- actual instance of LogbookParameters (fluent like)
- Throws:
IllegalArgumentException
- if the parameterName is null or if the parameterValue cannot be null or empty
-
getParameterValue
Get the parameter according to the parameterName- Parameters:
parameterName
-- Returns:
- the value or null if not found
- Throws:
IllegalArgumentException
- if the parameterName is null
-
setMap
Set from map using String as Key- Parameters:
map
-- Returns:
- this
-
setFromParameters
Set from another LogbookParameters- Parameters:
parameters
-- Returns:
- this
-
setFinalStatus
LogbookParameters setFinalStatus(String handlerId, String subTaskId, StatusCode code, String additionalMessage, String... params) Update the current LogbookParameters with status and message- Parameters:
handlerId
- the Handler IdsubTaskId
- the subTask Id if any (may be null)code
- the Status CodeAdminManagementClientRestTestadditionalMessage
- the additional message (as " Details= ...") if any (may be null)params
- the additional parameters for the message if any (may be null)- Returns:
- this
-
setBeginningLog
LogbookParameters setBeginningLog(String handlerId, String subTaskId, String additionalMessage, String... params) Update the current LogbookParameters with status and message- Parameters:
handlerId
- the Handler IdsubTaskId
- the subTask Id if any (may be null)additionalMessage
- the additional message (as " Details= ...") if any (may be null)params
- the additional parameters for the message if any (may be null)- Returns:
- this
-