Class AuditEventService

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

public class AuditEventService
extends AbstractService
List audit events.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.gooddata.sdk.service.AbstractService

    AbstractService.OutputStreamResponseExtractor
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static org.springframework.web.util.UriTemplate ADMIN_URI_TEMPLATE  
    static org.springframework.web.util.UriTemplate USER_URI_TEMPLATE  

    Fields inherited from class com.gooddata.sdk.service.AbstractService

    mapper, restTemplate
  • Constructor Summary

    Constructors 
    Constructor Description
    AuditEventService​(org.springframework.web.client.RestTemplate restTemplate, AccountService accountService, GoodDataSettings settings)
    Service for audit events
  • Method Summary

    Modifier and Type Method Description
    com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.auditevent.AuditEvent> listAuditEvents()
    Get list of audit events for current account
    com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.auditevent.AuditEvent> listAuditEvents​(com.gooddata.sdk.common.collections.PageRequest page)
    Get list of audit events for current account
    com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.auditevent.AuditEvent> listAuditEvents​(com.gooddata.sdk.model.account.Account account)
    Get list of audit events for the given account
    com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.auditevent.AuditEvent> listAuditEvents​(com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.common.collections.PageRequest page)
    Get list of audit events for the given account
    com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.auditevent.AuditEvent> listAuditEvents​(java.lang.String domainId)
    Get list of audit events for the given domain id
    com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.auditevent.AuditEvent> listAuditEvents​(java.lang.String domainId, com.gooddata.sdk.common.collections.PageRequest page)
    Get list of audit events for the given domain id

    Methods inherited from class com.gooddata.sdk.service.AbstractService

    extractData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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<com.gooddata.sdk.model.auditevent.AuditEvent> listAuditEvents​(java.lang.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<com.gooddata.sdk.model.auditevent.AuditEvent> listAuditEvents​(java.lang.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<com.gooddata.sdk.model.auditevent.AuditEvent> listAuditEvents​(com.gooddata.sdk.model.account.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<com.gooddata.sdk.model.auditevent.AuditEvent> listAuditEvents​(com.gooddata.sdk.model.account.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<com.gooddata.sdk.model.auditevent.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<com.gooddata.sdk.model.auditevent.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