public abstract class LogbookLifeCycleParameters extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Set<LogbookParameterName> |
mandatoryParameters |
| Constructor and Description |
|---|
LogbookLifeCycleParameters(Map<String,String> map) |
LogbookLifeCycleParameters(Set<LogbookParameterName> mandatory) |
| Modifier and Type | Method and Description |
|---|---|
LocalDateTime |
getEventDateTime()
The EventDateTime is set by the Logbook methods during creation or append
|
Set<LogbookParameterName> |
getMandatoriesParameters()
Get the attributes name which not have to be empty or null
|
Map<LogbookParameterName,String> |
getMapParameters()
Get all the parameters
|
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 additionnalMessage,
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
|
String |
toString() |
protected Set<LogbookParameterName> mandatoryParameters
public LogbookLifeCycleParameters(Set<LogbookParameterName> mandatory)
mandatory - set of logbook parameterpublic Set<LogbookParameterName> getMandatoriesParameters()
VitamParametergetMandatoriesParameters in interface VitamParameter<LogbookParameterName>public LocalDateTime getEventDateTime()
LogbookParametersgetEventDateTime in interface LogbookParameterspublic LogbookParameters setStatus(StatusCode outcome)
LogbookParameterssetStatus in interface LogbookParameterspublic StatusCode getStatus()
LogbookParametersgetStatus in interface LogbookParameterspublic LogbookParameters setFinalStatus(String handlerId, String subTaskId, StatusCode code, String additionalMessage, String... params)
LogbookParameterssetFinalStatus in interface LogbookParametershandlerId - 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)public LogbookParameters setBeginningLog(String handlerId, String subTaskId, String additionnalMessage, String... params)
LogbookParameterssetBeginningLog in interface LogbookParametershandlerId - the Handler IdsubTaskId - the subTask Id if any (may be null)additionnalMessage - the additional message (as " Details= ...") if any (may be null)params - the additional parameters for the message if any (may be null)public LogbookParameters setTypeProcess(LogbookTypeProcess process)
LogbookParameterssetTypeProcess in interface LogbookParametersprocess - process typepublic LogbookTypeProcess getTypeProcess()
LogbookParametersgetTypeProcess in interface LogbookParameterspublic LogbookParameters putParameterValue(LogbookParameterName parameterName, String parameterValue)
LogbookParametersputParameterValue in interface LogbookParametersparameterName - the key of the parameter to put on the parameter mapparameterValue - the value to put on the parameter mappublic String getParameterValue(LogbookParameterName parameterName)
LogbookParametersgetParameterValue in interface LogbookParameterspublic LogbookParameters setMap(Map<String,String> map)
LogbookParameterssetMap in interface LogbookParameterspublic LogbookParameters setFromParameters(LogbookParameters parameters)
LogbookParameterssetFromParameters in interface LogbookParameterspublic Map<LogbookParameterName,String> getMapParameters()
VitamParametergetMapParameters in interface VitamParameter<LogbookParameterName>Copyright © 2018 Vitam. All rights reserved.