|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cumulocity.sdk.client.inventory.ManagedObjectImpl
public class ManagedObjectImpl
Constructor Summary | |
---|---|
ManagedObjectImpl(RestConnector restConnector,
String url,
int pageSize)
|
Method Summary | |
---|---|
ManagedObjectReferenceRepresentation |
addChildAssets(ManagedObjectReferenceRepresentation refrenceReprsentation)
Adds a child device to the ManagedObject. |
ManagedObjectReferenceRepresentation |
addChildDevice(ManagedObjectReferenceRepresentation refrenceReprsentation)
Adds a child device to the ManagedObject. |
void |
delete()
Deletes the Managed Object from the Cumulocity Server. |
void |
deleteChildAsset(GId assetId)
Deletes the child Asset and its relation to the managed object. |
void |
deleteChildDevice(GId deviceId)
Deletes the child device and its relation to the managed object. |
ManagedObjectRepresentation |
get()
Returns the Managed Object of the Resource. |
ManagedObjectReferenceCollectionRepresentation |
getAllChildAssets()
Deprecated. |
ManagedObjectReferenceCollectionRepresentation |
getAllChildDevices()
Deprecated. |
ManagedObjectReferenceRepresentation |
getChildAsset(GId assetId)
Returns the child Asset with the given id. |
PagedCollectionResource<ManagedObjectReferenceCollectionRepresentation> |
getChildAssets()
Returns all the child Assets for the Managed Object in paged collection form |
ManagedObjectReferenceRepresentation |
getChildDevice(GId deviceId)
Returns the child device with the given id. |
PagedCollectionResource<ManagedObjectReferenceCollectionRepresentation> |
getChildDevices()
Returns all the child Devices for the Managed Object in paged collection form. |
ManagedObjectRepresentation |
update(ManagedObjectRepresentation managedObjectRepresentation)
This update the ManagedObject for the operationCollection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedObjectImpl(RestConnector restConnector, String url, int pageSize)
Method Detail |
---|
public ManagedObjectRepresentation get() throws SDKException
ManagedObject
get
in interface ManagedObject
SDKException
public void delete() throws SDKException
ManagedObject
delete
in interface ManagedObject
SDKException
public ManagedObjectRepresentation update(ManagedObjectRepresentation managedObjectRepresentation) throws SDKException
ManagedObject
update
in interface ManagedObject
SDKException
@Deprecated public ManagedObjectReferenceCollectionRepresentation getAllChildDevices() throws SDKException
ManagedObject
getAllChildDevices
in interface ManagedObject
SDKException
public PagedCollectionResource<ManagedObjectReferenceCollectionRepresentation> getChildDevices() throws SDKException
ManagedObject
getChildDevices
in interface ManagedObject
SDKException
public ManagedObjectReferenceRepresentation addChildDevice(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException
ManagedObject
addChildDevice
in interface ManagedObject
SDKException
public ManagedObjectReferenceRepresentation getChildDevice(GId deviceId) throws SDKException
ManagedObject
getChildDevice
in interface ManagedObject
SDKException
public void deleteChildDevice(GId deviceId) throws SDKException
ManagedObject
deleteChildDevice
in interface ManagedObject
SDKException
public ManagedObjectReferenceRepresentation addChildAssets(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException
ManagedObject
addChildAssets
in interface ManagedObject
SDKException
@Deprecated public ManagedObjectReferenceCollectionRepresentation getAllChildAssets() throws SDKException
ManagedObject
getAllChildAssets
in interface ManagedObject
SDKException
public PagedCollectionResource<ManagedObjectReferenceCollectionRepresentation> getChildAssets() throws SDKException
ManagedObject
getChildAssets
in interface ManagedObject
SDKException
public ManagedObjectReferenceRepresentation getChildAsset(GId assetId) throws SDKException
ManagedObject
getChildAsset
in interface ManagedObject
SDKException
public void deleteChildAsset(GId assetId) throws SDKException
ManagedObject
deleteChildAsset
in interface ManagedObject
SDKException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |