Class AuditEventService

java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.auditevent.AuditEventService

public class AuditEventService extends AbstractService
List audit events.
  • Field Details

    • ADMIN_URI_TEMPLATE

      public static final org.springframework.web.util.UriTemplate ADMIN_URI_TEMPLATE
    • USER_URI_TEMPLATE

      public static final org.springframework.web.util.UriTemplate USER_URI_TEMPLATE
  • Constructor Details

    • AuditEventService

      public AuditEventService(org.springframework.web.client.RestTemplate restTemplate, AccountService accountService, GoodDataSettings settings)
      Service for audit events
      Parameters:
      restTemplate - rest template
      accountService - account service
      settings - settings
  • Method Details

    • listAuditEvents

      public com.gooddata.sdk.common.collections.PageBrowser<AuditEvent> listAuditEvents(String domainId)
      Get list of audit events for the given domain id
      Parameters:
      domainId - domain id
      Returns:
      non-null paged list of events
      Throws:
      AuditEventsForbiddenException - if current user is not admin of the given domain
    • listAuditEvents

      public com.gooddata.sdk.common.collections.PageBrowser<AuditEvent> listAuditEvents(String domainId, com.gooddata.sdk.common.collections.PageRequest page)
      Get list of audit events for the given domain id
      Parameters:
      domainId - domain id
      page - request parameters
      Returns:
      non-null paged list of events
      Throws:
      AuditEventsForbiddenException - if current user is not admin of the given domain
    • listAuditEvents

      public com.gooddata.sdk.common.collections.PageBrowser<AuditEvent> listAuditEvents(Account account)
      Get list of audit events for the given account
      Parameters:
      account - account with valid id
      Returns:
      non-null paged list of events
      Throws:
      AuditEventsForbiddenException - if audit events are not enabled for the given user or the current user is not domain admin
    • listAuditEvents

      public com.gooddata.sdk.common.collections.PageBrowser<AuditEvent> listAuditEvents(Account account, com.gooddata.sdk.common.collections.PageRequest page)
      Get list of audit events for the given account
      Parameters:
      account - account with valid id
      page - request parameters
      Returns:
      non-null paged list of events
      Throws:
      AuditEventsForbiddenException - if audit events are not enabled for the given user or the current user is not domain admin
    • listAuditEvents

      public com.gooddata.sdk.common.collections.PageBrowser<AuditEvent> listAuditEvents()
      Get list of audit events for current account
      Returns:
      non-null paged list of events
      Throws:
      AuditEventsForbiddenException - if audit events are not enabled for current user
    • listAuditEvents

      public com.gooddata.sdk.common.collections.PageBrowser<AuditEvent> listAuditEvents(com.gooddata.sdk.common.collections.PageRequest page)
      Get list of audit events for current account
      Parameters:
      page - request parameters
      Returns:
      non-null paged list of events
      Throws:
      AuditEventsForbiddenException - if audit events are not enabled for current user