Class AuditEventService


  • public class AuditEventService
    extends AbstractService
    List audit events.
    • 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
      • AuditEventService

        @Deprecated
        public AuditEventService​(org.springframework.web.client.RestTemplate restTemplate,
                                 AccountService accountService)
        Deprecated.
        use AuditEventService(RestTemplate, AccountService, GoodDataSettings) constructor instead
        Service for audit events
        Parameters:
        restTemplate - rest template
        accountService - account service
    • Method Detail

      • listAuditEvents

        public com.gooddata.collections.PageableList<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.collections.PageableList<AuditEvent> listAuditEvents​(String domainId,
                                                                                 com.gooddata.collections.Page 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.collections.PageableList<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.collections.PageableList<AuditEvent> listAuditEvents​(Account account,
                                                                                 com.gooddata.collections.Page 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.collections.PageableList<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.collections.PageableList<AuditEvent> listAuditEvents​(com.gooddata.collections.Page 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