Interface LogbookParameters

    • Method Detail

      • getEventDateTime

        java.time.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)
      • getStatus

        StatusCode getStatus()
        Get the outcome status
        Returns:
        the status (or null if not set yet)
        Throws:
        java.lang.IllegalArgumentException - if the status is with incorrect value
      • getTypeProcess

        LogbookTypeProcess getTypeProcess()
        Get the process type
        Returns:
        the process type (or null if not set yet)
        Throws:
        java.lang.IllegalArgumentException - if the process type is with incorrect value
      • putParameterValue

        LogbookParameters putParameterValue​(LogbookParameterName parameterName,
                                            java.lang.String parameterValue)
        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 map
        parameterValue - the value to put on the parameter map
        Returns:
        actual instance of LogbookParameters (fluent like)
        Throws:
        java.lang.IllegalArgumentException - if the parameterName is null or if the parameterValue cannot be null or empty
      • getParameterValue

        java.lang.String getParameterValue​(LogbookParameterName parameterName)
        Get the parameter according to the parameterName
        Parameters:
        parameterName -
        Returns:
        the value or null if not found
        Throws:
        java.lang.IllegalArgumentException - if the parameterName is null
      • setMap

        LogbookParameters setMap​(java.util.Map<java.lang.String,​java.lang.String> map)
        Set from map using String as Key
        Parameters:
        map -
        Returns:
        this
      • setFinalStatus

        LogbookParameters setFinalStatus​(java.lang.String handlerId,
                                         java.lang.String subTaskId,
                                         StatusCode code,
                                         java.lang.String additionalMessage,
                                         java.lang.String... params)
        Update the current LogbookParameters with status and message
        Parameters:
        handlerId - the Handler Id
        subTaskId - the subTask Id if any (may be null)
        code - the Status CodeAdminManagementClientRestTest
        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
      • setBeginningLog

        LogbookParameters setBeginningLog​(java.lang.String handlerId,
                                          java.lang.String subTaskId,
                                          java.lang.String additionalMessage,
                                          java.lang.String... params)
        Update the current LogbookParameters with status and message
        Parameters:
        handlerId - the Handler Id
        subTaskId - 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