public class AuditRecordApiImpl extends Object implements AuditRecordApi
Constructor and Description |
---|
AuditRecordApiImpl(RestConnector restConnector,
UrlProcessor urlProcessor,
AuditRecordsRepresentation auditRecordsRepresentation,
int pageSize) |
Modifier and Type | Method and Description |
---|---|
AuditRecordRepresentation |
create(AuditRecordRepresentation representation)
Creates an audit record in the platform.
|
AuditRecordRepresentation |
getAuditRecord(com.cumulocity.model.idtype.GId gid)
Gets an audit record by id
|
AuditRecordCollection |
getAuditRecords()
Gets all audit records from the platform
|
AuditRecordCollection |
getAuditRecordsByFilter(AuditRecordFilter filter)
Gets audit records from the platform based on the specified filter
|
public AuditRecordApiImpl(RestConnector restConnector, UrlProcessor urlProcessor, AuditRecordsRepresentation auditRecordsRepresentation, int pageSize)
public AuditRecordRepresentation getAuditRecord(com.cumulocity.model.idtype.GId gid) throws SDKException
AuditRecordApi
getAuditRecord
in interface AuditRecordApi
gid
- id of the audit record to search forSDKException
- if the audit record is not foundpublic AuditRecordCollection getAuditRecords() throws SDKException
AuditRecordApi
getAuditRecords
in interface AuditRecordApi
SDKException
- if the query failedpublic AuditRecordRepresentation create(AuditRecordRepresentation representation) throws SDKException
AuditRecordApi
create
in interface AuditRecordApi
representation
- the audit record to be createdSDKException
- if the audit record could not be generatedpublic AuditRecordCollection getAuditRecordsByFilter(AuditRecordFilter filter) throws SDKException
AuditRecordApi
getAuditRecordsByFilter
in interface AuditRecordApi
filter
- the filter criteria(s)SDKException
- if the query failedCopyright © 2020 (C) Cumulocity GmbH. All rights reserved.