Class AuditEventService


  • public class AuditEventService
    extends AbstractService
    List audit events.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 Detail

      • 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 Detail

      • 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