Class OperationFilter
java.lang.Object
com.cumulocity.sdk.client.Filter
com.cumulocity.sdk.client.devicecontrol.OperationFilter
A filter to be used in operation queries.
The setter (by*) methods return the filter itself to provide chaining:
OperationFilter filter = new OperationFilter().byStatus(status).byDevice(deviceId);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSpecifies theagentId
query parameterSpecifies thedeviceId
query parameterbyFragmentType
(Class<?> fragmentClass) Specifies thefragmentType
query parameterbyFragmentType
(String fragmentType) byStatus
(OperationStatus status) Specifies thestatus
query parametergetAgent()
Methods inherited from class com.cumulocity.sdk.client.Filter
encode, getQueryParams
-
Constructor Details
-
OperationFilter
public OperationFilter()
-
-
Method Details
-
byFragmentType
Specifies thefragmentType
query parameter- Parameters:
fragmentClass
- the class representation of the type of the operation(s)- Returns:
- the operation filter with
fragmentType
set
-
byFragmentType
-
byStatus
Specifies thestatus
query parameter- Parameters:
status
- status of the operation(s)- Returns:
- the operation filter with
status
set
-
byDevice
Specifies thedeviceId
query parameter- Parameters:
deviceId
- id of the device associated with the the operations(s)- Returns:
- the operation filter with
deviceId
set
-
byAgent
Specifies theagentId
query parameter- Parameters:
agentId
- id of the agent associated with the the operations(s)- Returns:
- the operation filter with
agentId
set
-
getStatus
- Returns:
- the
status
parameter of the query
-
getDevice
- Returns:
- the
deviceId
parameter of the query
-
getAgent
- Returns:
- the
agentId
parameter of the query
-
getFragmentType
- Returns:
- the
fragmentType
parameter of the query
-