public class AuditLogServicesClient extends Object implements AuditLoggingComponent
| Constructor and Description |
|---|
AuditLogServicesClient(String serverName,
String restURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
AuditLogServicesClient(String serverName,
String restURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
OMRSAuditLogReport |
getAuditLog(String userId)
Returns the audit log for the server.
|
void |
setAuditLog(AuditLog auditLog)
Receive an audit log object that can be used to record audit log messages.
|
protected AuditLog auditLog
public AuditLogServicesClient(String serverName, String restURLRoot) throws InvalidParameterException
serverName - the name of the remote serverrestURLRoot - the network address of the server running the repository services. This is of the form
serverURLroot + "/servers/" + serverName.InvalidParameterException - bad input parameterspublic AuditLogServicesClient(String serverName, String restURLRoot, String userId, String password) throws InvalidParameterException
serverName - the name of the remote serverrestURLRoot - the network address of the server running the repository services. This is of the form
serverURLroot + "/servers/" + serverName.userId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - bad input parameterspublic void setAuditLog(AuditLog auditLog)
setAuditLog in interface AuditLoggingComponentauditLog - audit log objectpublic OMRSAuditLogReport getAuditLog(String userId) throws InvalidParameterException, RepositoryErrorException, UserNotAuthorizedException
userId - calling userInvalidParameterException - one of the supplied parameters caused a problemRepositoryErrorException - there is a problem communicating with the remote server.UserNotAuthorizedException - the user is not authorized to perform the operation requestedCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.