Class InventoryFilter
java.lang.Object
com.cumulocity.sdk.client.Filter
com.cumulocity.sdk.client.inventory.InventoryFilter
A filter to be used in managed object queries.
The setter (by*) methods return the filter itself to provide chaining:
InventoryFilter filter = new InventoryFilter().byType(type).byFragmentType(fragmentType);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyChildAdditionId
(GId childAdditionId) Specifies thechildAdditionId
query parameterbyChildAssetId
(GId childAssetId) Specifies thechildAssetId
query parameterbyChildDeviceId
(GId childDeviceId) Specifies thechildDeviceId
query parameterbyFragmentType
(Class<?> fragmentClass) Specifies thefragmentType
query parameterbyFragmentType
(String fragmentType) Specifies thefragmentType
query parameterSpecifies theids
query parameterSpecifies theids
query parameterSpecifies theowner
query parameterSpecifies thetext
query parameterSpecifies thetype
query parametergetIds()
getOwner()
getText()
getType()
static InventoryFilter
Methods inherited from class com.cumulocity.sdk.client.Filter
encode, getQueryParams
-
Constructor Details
-
InventoryFilter
public InventoryFilter()
-
-
Method Details
-
searchInventory
-
byFragmentType
Specifies thefragmentType
query parameter- Parameters:
fragmentClass
- the class representation of the type of the managed object(s)- Returns:
- the managed object filter with
fragmentType
set
-
byFragmentType
Specifies thefragmentType
query parameter- Parameters:
fragmentType
- the string representation of the type of the managed object(s)- Returns:
- the managed object filter with
fragmentType
set
-
getFragmentType
- Returns:
- the
fragmentType
parameter of the query
-
byType
Specifies thetype
query parameter- Parameters:
type
- the type of the managed object(s)- Returns:
- the managed object filter with
type
set
-
getType
- Returns:
- the
type
parameter of the query
-
byOwner
Specifies theowner
query parameter- Parameters:
owner
- the owner of the managed object(s)- Returns:
- the managed object filter with
owner
set
-
getOwner
- Returns:
- the
owner
parameter of the query
-
byText
Specifies thetext
query parameter- Parameters:
text
- the text of the managed object(s)- Returns:
- the managed object filter with
text
set
-
getText
- Returns:
- the
text
parameter of the query
-
byIds
Specifies theids
query parameter- Parameters:
ids
- the ids of the managed object(s)- Returns:
- the managed object filter with
ids
set
-
byIds
Specifies theids
query parameter- Parameters:
ids
- the ids of the managed object(s)- Returns:
- the managed object filter with
ids
set
-
byChildAssetId
Specifies thechildAssetId
query parameter- Parameters:
childAssetId
- the child asset of the managed object(s)- Returns:
- the managed object filter with
childAssetId
set
-
getChildAssetId
-
byChildDeviceId
Specifies thechildDeviceId
query parameter- Parameters:
childDeviceId
- the child asset of the managed object(s)- Returns:
- the managed object filter with
childDeviceId
set
-
getChildDeviceId
-
byChildAdditionId
Specifies thechildAdditionId
query parameter- Parameters:
childAdditionId
- the child addition of the managed object(s)- Returns:
- the managed object filter with
childAdditionId
set
-
getChildAdditionId
-
getIds
- Returns:
- the
ids
parameter of the query
-