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.UriTemplateADMIN_URI_TEMPLATEstatic org.springframework.web.util.UriTemplateUSER_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
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 accountcom.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 accountcom.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 accountcom.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 accountcom.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 idcom.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
-
-
-
-
Constructor Detail
-
AuditEventService
public AuditEventService(org.springframework.web.client.RestTemplate restTemplate, AccountService accountService, GoodDataSettings settings)Service for audit events- Parameters:
restTemplate- rest templateaccountService- account servicesettings- 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 idpage- 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 idpage- 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
-
-