Class MessageLogbookEngineHelper


  • public class MessageLogbookEngineHelper
    extends java.lang.Object
    Helper to get great process operation logbook key and message (outcome) depend on LogbookTypeProcess
    • 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 message
      java.lang.String getLabelOp​(java.lang.String stepOrHandler, java.lang.String transaction, StatusCode code, java.lang.Object... args)
      Get operation logbook message
      java.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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 name
        code - of status
        args - 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 name
        transaction - name
        code - of status
        args - 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 name
        code - 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 name
        transaction - name
        code - of status
        Returns:
        the outcome detail (key)