public class AuditLogHandler extends Object
| Constructor and Description |
|---|
AuditLogHandler(String serviceName,
OMRSAuditLog auditLog)
Construct the audit log handler with a link to the property server's connector and this access service's
official name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLogMessageToAsset(String userId,
String assetGUID,
String connectorInstanceId,
String connectionName,
String connectorType,
String contextId,
String message)
Creates an Audit log record for the asset.
|
public AuditLogHandler(String serviceName, OMRSAuditLog auditLog)
serviceName - name of this serviceauditLog - connector to the property server.public void addLogMessageToAsset(String userId, String assetGUID, String connectorInstanceId, String connectionName, String connectorType, String contextId, String message) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - There is a problem adding the asset properties to
the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2019 ODPi. All rights reserved.