Interface ManagedObject
- All Known Implementing Classes:
- ManagedObjectImpl
public interface ManagedObject
Java Interface to call the Cumulocity Inventory Rest API.
- 
Method SummaryModifier and TypeMethodDescriptionaddChildAddition(ManagedObjectRepresentation representation) Create ManagedObject and adds as child addition to the parent ManagedObject.addChildAdditions(GId childId) Adds a child addition to the ManagedObject.addChildAdditions(ManagedObjectReferenceRepresentation refrenceReprsentation) Adds a child addition to the ManagedObject.addChildAsset(ManagedObjectRepresentation representation) Create ManagedObject and adds as child asset to the parent ManagedObject.addChildAssets(GId childId) Adds a child asset to the ManagedObject.addChildAssets(ManagedObjectReferenceRepresentation refrenceReprsentation) Adds a child asset to the ManagedObject.addChildDevice(GId childId) Adds a child device to the ManagedObject.addChildDevice(ManagedObjectReferenceRepresentation refrenceReprsentation) Adds a child device to the ManagedObject.addChildDevice(ManagedObjectRepresentation representation) Create ManagedObject and adds as child device to the parent ManagedObject.voiddelete()Deprecated.voiddeleteChildAddition(GId additionId) Deletes the child addition and its relation to the managed object.voiddeleteChildAsset(GId assetId) Deletes the child Asset and its relation to the managed object.voiddeleteChildDevice(GId deviceId) Deletes the child device and its relation to the managed object.get()Deprecated.getChildAddition(GId additionId) Returns the child additions with the given id.Returns all the child additions for the Managed Object in paged collection formgetChildAsset(GId assetId) Returns the child Asset with the given id.Returns all the child Assets for the Managed Object in paged collection formgetChildDevice(GId deviceId) Returns the child device with the given id.Returns all the child Devices for the Managed Object in paged collection form.update(ManagedObjectRepresentation managedObjectRepresentation) Deprecated.
- 
Method Details- 
getDeprecated.Returns the Managed Object of the Resource.- Returns:
- ManagedObjectRepresentation
- Throws:
- SDKException- if Managed Object cannot be retrieved
 
- 
deleteDeprecated.Deletes the Managed Object from the Cumulocity Server.- Throws:
- SDKException- when deletion of Managed Object fail
 
- 
update@Deprecated ManagedObjectRepresentation update(ManagedObjectRepresentation managedObjectRepresentation) throws SDKException Deprecated.This update the ManagedObject for the operationCollection. Cannot update the ID.- Parameters:
- managedObjectRepresentation- ManagedObject that will be updated
- Returns:
- ManagedObjectRepresentation updated ManagedObject.
- Throws:
- SDKException- when update of Managed Object fail
 
- 
addChildDeviceManagedObjectReferenceRepresentation addChildDevice(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException Adds a child device to the ManagedObject.- Parameters:
- refrenceReprsentation- ManagedObject reference representation
- Returns:
- ManagedObjectReferenceRepresentation with the id of th child device.
- Throws:
- SDKException- when child references update fail
 
- 
addChildDeviceAdds a child device to the ManagedObject.- Parameters:
- childId- child ManagedObject general identifier
- Returns:
- ManagedObjectReferenceRepresentation with the id of th child device.
- Throws:
- SDKException- when child references update fail
 
- 
addChildDeviceManagedObjectRepresentation addChildDevice(ManagedObjectRepresentation representation) throws SDKException Create ManagedObject and adds as child device to the parent ManagedObject.- Parameters:
- representation- ManagedObject representation
- Returns:
- ManagedObjectRepresentation with the managed object.
- Throws:
- SDKException- when child references update fail
 
- 
getChildDevicesReturns all the child Devices for the Managed Object in paged collection form.- Returns:
- ManagedObjectReferenceCollectionRepresentation which contains all the child devices.
- Throws:
- SDKException- when fetching child devices fail
 
- 
getChildDeviceReturns the child device with the given id. If it belongs to the ManagedObject.- Parameters:
- deviceId- device ManagedObject general identifier
- Returns:
- ManagedObjectReferenceRepresentation of the child device.
- Throws:
- SDKException- when fetching child device fail
 
- 
deleteChildDeviceDeletes the child device and its relation to the managed object.- Parameters:
- deviceId- device ManagedObject general identifier
- Throws:
- SDKException- when delete of child device fail
 
- 
addChildAssetsManagedObjectReferenceRepresentation addChildAssets(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException Adds a child asset to the ManagedObject.- Parameters:
- refrenceReprsentation- ManagedObject reference representation
- Returns:
- ManagedObjectReferenceRepresentation with the id of th child device.
- Throws:
- SDKException- when child references update fail
 
- 
addChildAssetsAdds a child asset to the ManagedObject.- Parameters:
- childId- child ManagedObject general identifier
- Returns:
- ManagedObjectReferenceRepresentation with the id of th child device.
- Throws:
- SDKException- when child references update fail
 
- 
addChildAssetManagedObjectRepresentation addChildAsset(ManagedObjectRepresentation representation) throws SDKException Create ManagedObject and adds as child asset to the parent ManagedObject.- Parameters:
- representation- ManagedObject representation
- Returns:
- ManagedObjectRepresentation with the managed object.
- Throws:
- SDKException- when child references update fail
 
- 
getChildAssetsReturns all the child Assets for the Managed Object in paged collection form- Returns:
- ManagedObjectReferenceCollectionRepresentation which contains all the child devices.
- Throws:
- SDKException- when fetching child assets fail
 
- 
getChildAssetReturns the child Asset with the given id. If it belongs to the ManagedObject.- Parameters:
- assetId- asset ManagedObject general identifier
- Returns:
- ManagedObjectReferenceRepresentation of the child device.
- Throws:
- SDKException- when fetching child asset fail
 
- 
deleteChildAssetDeletes the child Asset and its relation to the managed object.- Parameters:
- assetId- asset ManagedObject general identifier
- Throws:
- SDKException- when deleting child asset fail
 
- 
addChildAdditionsManagedObjectReferenceRepresentation addChildAdditions(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException Adds a child addition to the ManagedObject.- Parameters:
- refrenceReprsentation- ManagedObject reference representation
- Returns:
- ManagedObjectReferenceRepresentation with the id of th child addition.
- Throws:
- SDKException- when child references update fail
 
- 
addChildAdditionsAdds a child addition to the ManagedObject.- Parameters:
- childId- child addition ManagedObject general identifier
- Returns:
- ManagedObjectReferenceRepresentation with the id of th child addition.
- Throws:
- SDKException- when child references update fail
 
- 
addChildAdditionManagedObjectRepresentation addChildAddition(ManagedObjectRepresentation representation) throws SDKException Create ManagedObject and adds as child addition to the parent ManagedObject.- Parameters:
- representation- ManagedObject representation
- Returns:
- ManagedObjectRepresentation with the managed object.
- Throws:
- SDKException- when child references update fail
 
- 
getChildAdditionsReturns all the child additions for the Managed Object in paged collection form- Returns:
- ManagedObjectReferenceCollectionRepresentation which contains all the child additions.
- Throws:
- SDKException- when fetching child additions fail
 
- 
getChildAdditionReturns the child additions with the given id. If it belongs to the ManagedObject.- Parameters:
- additionId- ManagedObject addition general identifier
- Returns:
- ManagedObjectReferenceRepresentation of the child additions.
- Throws:
- SDKException- when fetching child addition fail
 
- 
deleteChildAdditionDeletes the child addition and its relation to the managed object.- Parameters:
- additionId- ManagedObject addition general identifier
- Throws:
- SDKException- when child addition reference delete faile
 
 
-