Class LoggingHandler

    • Constructor Detail

      • LoggingHandler

        public LoggingHandler​(AuditLog auditLog)
        Construct the audit log handler with a link to the property server's connector and this access service's official name.
        Parameters:
        auditLog - connector to the property server.
    • Method Detail

      • addLogMessageToAsset

        public void addLogMessageToAsset​(String userId,
                                         String assetGUID,
                                         String connectorInstanceId,
                                         String connectionName,
                                         String connectorType,
                                         String contextId,
                                         String message)
        Creates an Audit log record for the asset. This log record is stored in the Asset's Audit Log.
        Specified by:
        addLogMessageToAsset in interface AssetConsumerLoggingInterface
        Parameters:
        userId - String - userId of user making request.
        assetGUID - String - unique id for the asset.
        connectorInstanceId - String - (optional) id of connector in use (if any).
        connectionName - String - (optional) name of the connection (extracted from the connector).
        connectorType - String - (optional) type of connector in use (if any).
        contextId - String - (optional) function name, or processId of the activity that the caller is performing.
        message - log record content.