|
||||||||||
| 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 ManagedObjectSDKException
public void delete()
throws SDKException
ManagedObject
delete in interface ManagedObjectSDKException
public ManagedObjectRepresentation update(ManagedObjectRepresentation managedObjectRepresentation)
throws SDKException
ManagedObject
update in interface ManagedObjectSDKException
@Deprecated
public ManagedObjectReferenceCollectionRepresentation getAllChildDevices()
throws SDKException
ManagedObject
getAllChildDevices in interface ManagedObjectSDKException
public PagedCollectionResource<ManagedObjectReferenceCollectionRepresentation> getChildDevices()
throws SDKException
ManagedObject
getChildDevices in interface ManagedObjectSDKException
public ManagedObjectReferenceRepresentation addChildDevice(ManagedObjectReferenceRepresentation refrenceReprsentation)
throws SDKException
ManagedObject
addChildDevice in interface ManagedObjectSDKException
public ManagedObjectReferenceRepresentation getChildDevice(GId deviceId)
throws SDKException
ManagedObject
getChildDevice in interface ManagedObjectSDKException
public void deleteChildDevice(GId deviceId)
throws SDKException
ManagedObject
deleteChildDevice in interface ManagedObjectSDKException
public ManagedObjectReferenceRepresentation addChildAssets(ManagedObjectReferenceRepresentation refrenceReprsentation)
throws SDKException
ManagedObject
addChildAssets in interface ManagedObjectSDKException
@Deprecated
public ManagedObjectReferenceCollectionRepresentation getAllChildAssets()
throws SDKException
ManagedObject
getAllChildAssets in interface ManagedObjectSDKException
public PagedCollectionResource<ManagedObjectReferenceCollectionRepresentation> getChildAssets()
throws SDKException
ManagedObject
getChildAssets in interface ManagedObjectSDKException
public ManagedObjectReferenceRepresentation getChildAsset(GId assetId)
throws SDKException
ManagedObject
getChildAsset in interface ManagedObjectSDKException
public void deleteChildAsset(GId assetId)
throws SDKException
ManagedObject
deleteChildAsset in interface ManagedObjectSDKException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||