Package com.cumulocity.sdk.client.audit
Class AuditRecordFilter
java.lang.Object
com.cumulocity.sdk.client.Filter
com.cumulocity.sdk.client.audit.AuditRecordFilter
A filter to be used in audit record queries.
The setter (by*) methods return the filter itself to provide chaining:
AuditRecordFilter filter = new AuditRecordFilter().byUser(user).byType(type);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyApplication
(String application) Specifies theapplication
query parameterSpecifies thesource
query parameter.Specifies thetype
query parameter.Specifies theuser
query parameter.getType()
getUser()
Methods inherited from class com.cumulocity.sdk.client.Filter
encode, getQueryParams
-
Constructor Details
-
AuditRecordFilter
public AuditRecordFilter()
-
-
Method Details
-
byUser
Specifies theuser
query parameter.- Parameters:
user
- the user associated with the audit record(s)- Returns:
- the audit record filter with
user
set
-
byType
Specifies thetype
query parameter.- Parameters:
type
- the type of the audit record(s)- Returns:
- the audit record filter with
type
set
-
bySource
Specifies thesource
query parameter.- Parameters:
source
- the source of the audit record(s)- Returns:
- the audit record filter with
source
set
-
byApplication
Specifies theapplication
query parameter- Parameters:
application
- the application associated with the audit record(s)- Returns:
- the audit record filter with
application
set
-
getUser
- Returns:
- the
user
parameter of the query
-
getType
- Returns:
- the
type
parameter of the query
-
getApplication
- Returns:
- the
application
parameter of the query
-
getSource
- Returns:
- the
source
parameter of the query
-