Class AuditLogServicesClient

java.lang.Object
org.odpi.openmetadata.repositoryservices.clients.AuditLogServicesClient
All Implemented Interfaces:
AuditLoggingComponent

public class AuditLogServicesClient extends Object implements AuditLoggingComponent
The AuditLogServicesClient supports the OMRS Repository Services APIs for retrieving audit logs. Requests to this client are translated one-for-one to requests to the audit log service since the OMRS REST API has a one-to-one correspondence with the audit log service API. The URLs for the REST APIs are of this form:
  • restURLroot - serverURLroot + "/servers/" + serverName
  • rootServiceNameInURL - "/open-metadata/repository-services"
  • userIdInURL - optional - "/users/{0}"
  • operationSpecificURL - operation specific part of the URL
  • Field Details

    • auditLog

      protected AuditLog auditLog
  • Constructor Details

    • AuditLogServicesClient

      public AuditLogServicesClient(String serverName, String restURLRoot) throws InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - the name of the remote server
      restURLRoot - the network address of the server running the repository services. This is of the form serverURLroot + "/servers/" + serverName.
      Throws:
      InvalidParameterException - bad input parameters
    • AuditLogServicesClient

      public AuditLogServicesClient(String serverName, String restURLRoot, String userId, String password) throws InvalidParameterException
      Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.
      Parameters:
      serverName - the name of the remote server
      restURLRoot - 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 requests
      password - caller's userId embedded in all HTTP requests
      Throws:
      InvalidParameterException - bad input parameters
  • Method Details