|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cumulocity.sdk.client.inventory.InventoryApiImpl
public class InventoryApiImpl
Constructor Summary | |
---|---|
InventoryApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformUrl)
Deprecated. |
|
InventoryApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformUrl,
int pageSize)
|
Method Summary | |
---|---|
ManagedObjectRepresentation |
create(ManagedObjectRepresentation representation)
Creates managed object in the platform. |
ManagedObject |
getManagedObject(GId globalId)
Gets managed object resource by id. |
PagedCollectionResource<ManagedObjectCollectionRepresentation> |
getManagedObjects()
Gets the all the managed object in the platform |
PagedCollectionResource<ManagedObjectCollectionRepresentation> |
getManagedObjectsByFilter(InventoryFilter filter)
Gets the managed objects from the platform based on specified filter. |
PagedCollectionResource<ManagedObjectCollectionRepresentation> |
getManagedObjectsByListOfIds(List<GId> ids)
Gets the managed objects from the platform based on the given ids |
protected String |
getSelfUri()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public InventoryApiImpl(RestConnector restConnector, TemplateUrlParser templateUrlParser, String platformUrl)
public InventoryApiImpl(RestConnector restConnector, TemplateUrlParser templateUrlParser, String platformUrl, int pageSize)
Method Detail |
---|
public ManagedObjectRepresentation create(ManagedObjectRepresentation representation) throws SDKException
InventoryApi
create
in interface InventoryApi
representation
- the managed object to be created
SDKException
- if the managed object could not be createdpublic ManagedObject getManagedObject(GId globalId) throws SDKException
InventoryApi
get()
on the returned resource.
getManagedObject
in interface InventoryApi
globalId
- id of the managed object to search for
SDKException
- if the query failedpublic PagedCollectionResource<ManagedObjectCollectionRepresentation> getManagedObjects() throws SDKException
InventoryApi
getManagedObjects
in interface InventoryApi
SDKException
- if the query failedpublic PagedCollectionResource<ManagedObjectCollectionRepresentation> getManagedObjectsByFilter(InventoryFilter filter) throws SDKException
InventoryApi
type
and fragmentType
is
not supported.
getManagedObjectsByFilter
in interface InventoryApi
filter
- the filter criteria(s)
SDKException
- if the query failedpublic PagedCollectionResource<ManagedObjectCollectionRepresentation> getManagedObjectsByListOfIds(List<GId> ids) throws SDKException
InventoryApi
getManagedObjectsByListOfIds
in interface InventoryApi
ids
- the list of ids of the managed objects to search for
SDKException
- if the query failedprotected String getSelfUri() throws SDKException
SDKException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |