public interface LogbookParameters extends VitamParameter<LogbookParameterName>
Modifier and Type | Method and Description |
---|---|
LocalDateTime |
getEventDateTime()
The EventDateTime is set by the Logbook methods during creation or append
|
String |
getParameterValue(LogbookParameterName parameterName)
Get the parameter according to the parameterName
|
StatusCode |
getStatus()
Get the outcome status
|
LogbookTypeProcess |
getTypeProcess()
Get the process type
|
LogbookParameters |
putParameterValue(LogbookParameterName parameterName,
String parameterValue)
Put parameterValue on mapParamaters with parameterName key
If parameterKey already exists, the override it (no check) |
LogbookParameters |
setBeginningLog(String handlerId,
String subTaskId,
String additionalMessage,
String... params)
Update the current LogbookParameters with status and message
|
LogbookParameters |
setFinalStatus(String handlerId,
String subTaskId,
StatusCode code,
String additionalMessage,
String... params)
Update the current LogbookParameters with status and message
|
LogbookParameters |
setFromParameters(LogbookParameters parameters)
Set from another LogbookParameters
|
LogbookParameters |
setMap(Map<String,String> map)
Set from map using String as Key
|
LogbookParameters |
setStatus(StatusCode outcome)
Set the outcome status
|
LogbookParameters |
setTypeProcess(LogbookTypeProcess process)
Set the process type
|
getMandatoriesParameters, getMapParameters
LocalDateTime getEventDateTime()
LogbookParameters setStatus(StatusCode outcome)
outcome
- StatusCode getStatus()
IllegalArgumentException
- if the status is with incorrect valueLogbookParameters setTypeProcess(LogbookTypeProcess process)
process
- process typeLogbookTypeProcess getTypeProcess()
IllegalArgumentException
- if the process type is with incorrect valueLogbookParameters putParameterValue(LogbookParameterName parameterName, String parameterValue)
parameterName
- the key of the parameter to put on the parameter mapparameterValue
- the value to put on the parameter mapIllegalArgumentException
- if the parameterName is null or if the parameterValue cannot be null or emptyString getParameterValue(LogbookParameterName parameterName)
parameterName
- IllegalArgumentException
- if the parameterName is nullLogbookParameters setMap(Map<String,String> map)
map
- LogbookParameters setFromParameters(LogbookParameters parameters)
parameters
- LogbookParameters setFinalStatus(String handlerId, String subTaskId, StatusCode code, String additionalMessage, String... params)
handlerId
- the Handler IdsubTaskId
- the subTask Id if any (may be null)code
- the Status CodeadditionalMessage
- the additional message (as " Details= ...") if any (may be null)params
- the additional parameters for the message if any (may be null)LogbookParameters setBeginningLog(String handlerId, String subTaskId, String additionalMessage, String... params)
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)Copyright © 2018 Vitam. All rights reserved.