Package com.cumulocity.sdk.client.audit
Class AuditRecordFilter
- java.lang.Object
-
- com.cumulocity.sdk.client.Filter
-
- com.cumulocity.sdk.client.audit.AuditRecordFilter
-
public class AuditRecordFilter extends Filter
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 Constructor Description AuditRecordFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditRecordFilter
byApplication(String application)
Specifies theapplication
query parameterAuditRecordFilter
bySource(String source)
Specifies thesource
query parameter.AuditRecordFilter
byType(String type)
Specifies thetype
query parameter.AuditRecordFilter
byUser(String user)
Specifies theuser
query parameter.String
getApplication()
String
getSource()
String
getType()
String
getUser()
-
Methods inherited from class com.cumulocity.sdk.client.Filter
encode, getQueryParams
-
-
-
-
Method Detail
-
byUser
public AuditRecordFilter byUser(String user)
Specifies theuser
query parameter.- Parameters:
user
- the user associated with the audit record(s)- Returns:
- the audit record filter with
user
set
-
byType
public AuditRecordFilter byType(String type)
Specifies thetype
query parameter.- Parameters:
type
- the type of the audit record(s)- Returns:
- the audit record filter with
type
set
-
bySource
public AuditRecordFilter bySource(String source)
Specifies thesource
query parameter.- Parameters:
source
- the source of the audit record(s)- Returns:
- the audit record filter with
source
set
-
byApplication
public AuditRecordFilter byApplication(String application)
Specifies theapplication
query parameter- Parameters:
application
- the application associated with the audit record(s)- Returns:
- the audit record filter with
application
set
-
getUser
public String getUser()
- Returns:
- the
user
parameter of the query
-
getType
public String getType()
- Returns:
- the
type
parameter of the query
-
getApplication
public String getApplication()
- Returns:
- the
application
parameter of the query
-
getSource
public String getSource()
- Returns:
- the
source
parameter of the query
-
-