Package fr.gouv.vitam.logbook.common
Class MessageLogbookEngineHelper
- java.lang.Object
-
- fr.gouv.vitam.logbook.common.MessageLogbookEngineHelper
-
public class MessageLogbookEngineHelper extends java.lang.Object
Helper to get great process operation logbook key and message (outcome) depend on LogbookTypeProcess
-
-
Constructor Summary
Constructors Constructor Description MessageLogbookEngineHelper(LogbookTypeProcess logbookTypeProcess)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLabelOp(java.lang.String stepOrHandler, StatusCode code, java.lang.Object... args)
Get operation logbook messagejava.lang.String
getLabelOp(java.lang.String stepOrHandler, java.lang.String transaction, StatusCode code, java.lang.Object... args)
Get operation logbook messagejava.lang.String
getOutcomeDetail(java.lang.String stepOrHandler, StatusCode code)
Get operation logbook outcome detail (key)java.lang.String
getOutcomeDetail(java.lang.String stepOrHandler, java.lang.String transaction, StatusCode code)
Get operation logbook outcome detail (key)
-
-
-
Constructor Detail
-
MessageLogbookEngineHelper
public MessageLogbookEngineHelper(LogbookTypeProcess logbookTypeProcess)
Default constructor- Parameters:
logbookTypeProcess
- concerned logbook process type
-
-
Method Detail
-
getLabelOp
public java.lang.String getLabelOp(java.lang.String stepOrHandler, StatusCode code, java.lang.Object... args)
Get operation logbook message- Parameters:
stepOrHandler
- step or handler name or full namecode
- of statusargs
- list of extra argument to apply as MessageFormat.format(message, args)- Returns:
- the operation logbook message
-
getLabelOp
public java.lang.String getLabelOp(java.lang.String stepOrHandler, java.lang.String transaction, StatusCode code, java.lang.Object... args)
Get operation logbook message- Parameters:
stepOrHandler
- step or handler name or full nametransaction
- namecode
- of statusargs
- list of extra argument to apply as MessageFormat.format(message, args)- Returns:
- the operation logbook message
-
getOutcomeDetail
public java.lang.String getOutcomeDetail(java.lang.String stepOrHandler, StatusCode code)
Get operation logbook outcome detail (key)- Parameters:
stepOrHandler
- step or handler name or full namecode
- of status- Returns:
- the outcome detail (key)
-
getOutcomeDetail
public java.lang.String getOutcomeDetail(java.lang.String stepOrHandler, java.lang.String transaction, StatusCode code)
Get operation logbook outcome detail (key)- Parameters:
stepOrHandler
- step or handler name or full nametransaction
- namecode
- of status- Returns:
- the outcome detail (key)
-
-