Interface AuditStrategy<T extends AuditDataset>

    • Method Detail

      • createAuditDataset

        T createAuditDataset()
        Creates a new audit dataset instance.
      • enrichAuditDatasetFromRequest

        T enrichAuditDatasetFromRequest​(T auditDataset,
                                        Object request,
                                        Map<String,​Object> parameters)
        Enriches the given audit dataset with transaction-specific contents of the request message and Camel exchange.
        Parameters:
        auditDataset - audit dataset to be enriched.
        request - Object representing the request.
        parameters - additional parameters
      • enrichAuditDatasetFromResponse

        default boolean enrichAuditDatasetFromResponse​(T auditDataset,
                                                       Object response)
        Enriches the given audit dataset with transaction-specific contents of the response message.
        Parameters:
        auditDataset - audit dataset to be enriched.
        response - Object representing the responded resource.
        Returns:
        true if response indicates success, false otherwise
      • enrichAuditDatasetFromResponse

        boolean enrichAuditDatasetFromResponse​(T auditDataset,
                                               Object response,
                                               AuditContext auditContext)
        Enriches the given audit dataset with transaction-specific contents of the response message.
        Parameters:
        auditDataset - audit dataset to be enriched.
        response - Object representing the responded resource.
        auditContext - audit context, if relevant
        Returns:
        true if response indicates success, false otherwise
      • doAudit

        void doAudit​(AuditContext auditContext,
                     T auditDataset)
        Performs the actual ATNA audit.
        Parameters:
        auditContext - audit context used for auditing
        auditDataset - Collected audit dataset.
      • isAuditableResponse

        boolean isAuditableResponse​(Object response)
        Determines whether the given response finalizes the interaction and thus the ATNA auditing should be finalized as well.

        Per default always returns true.

        Parameters:
        response - response in transaction-specific format (POJO, XML string, etc.).
        Returns:
        true when this response finalizes the interaction.
      • getEventOutcomeIndicator

        EventOutcomeIndicator getEventOutcomeIndicator​(Object response)
        Determines which event outcome corresponds with the provided response POJO
        Parameters:
        response - POJO
        Returns:
        event outcome code
      • getEventOutcomeDescription

        String getEventOutcomeDescription​(Object response)
        Determines which event outcome description corresponds with the provided response POJO
        Parameters:
        response - POJO
        Returns:
        event outcome description