public interface ManagedObject
Modifier and Type | Method and Description |
---|---|
ManagedObjectRepresentation |
addChildAddition(ManagedObjectRepresentation representation)
Create ManagedObject and adds as child addition to the parent ManagedObject.
|
ManagedObjectReferenceRepresentation |
addChildAdditions(com.cumulocity.model.idtype.GId childId)
Adds a child addition to the ManagedObject.
|
ManagedObjectReferenceRepresentation |
addChildAdditions(ManagedObjectReferenceRepresentation refrenceReprsentation)
Adds a child addition to the ManagedObject.
|
ManagedObjectRepresentation |
addChildAsset(ManagedObjectRepresentation representation)
Create ManagedObject and adds as child asset to the parent ManagedObject.
|
ManagedObjectReferenceRepresentation |
addChildAssets(com.cumulocity.model.idtype.GId childId)
Adds a child asset to the ManagedObject.
|
ManagedObjectReferenceRepresentation |
addChildAssets(ManagedObjectReferenceRepresentation refrenceReprsentation)
Adds a child asset to the ManagedObject.
|
ManagedObjectReferenceRepresentation |
addChildDevice(com.cumulocity.model.idtype.GId childId)
Adds a child device to the ManagedObject.
|
ManagedObjectReferenceRepresentation |
addChildDevice(ManagedObjectReferenceRepresentation refrenceReprsentation)
Adds a child device to the ManagedObject.
|
ManagedObjectRepresentation |
addChildDevice(ManagedObjectRepresentation representation)
Create ManagedObject and adds as child device to the parent ManagedObject.
|
void |
delete()
Deprecated.
|
void |
deleteChildAddition(com.cumulocity.model.idtype.GId additionId)
Deletes the child addition and its relation to the managed object.
|
void |
deleteChildAsset(com.cumulocity.model.idtype.GId assetId)
Deletes the child Asset and its relation to the managed object.
|
void |
deleteChildDevice(com.cumulocity.model.idtype.GId deviceId)
Deletes the child device and its relation to the managed object.
|
ManagedObjectRepresentation |
get()
Deprecated.
|
ManagedObjectReferenceRepresentation |
getChildAddition(com.cumulocity.model.idtype.GId additionId)
Returns the child additions with the given id.
|
ManagedObjectReferenceCollection |
getChildAdditions()
Returns all the child additions for the Managed Object in paged collection form
|
ManagedObjectReferenceRepresentation |
getChildAsset(com.cumulocity.model.idtype.GId assetId)
Returns the child Asset with the given id.
|
ManagedObjectReferenceCollection |
getChildAssets()
Returns all the child Assets for the Managed Object in paged collection form
|
ManagedObjectReferenceRepresentation |
getChildDevice(com.cumulocity.model.idtype.GId deviceId)
Returns the child device with the given id.
|
ManagedObjectReferenceCollection |
getChildDevices()
Returns all the child Devices for the Managed Object in paged collection form.
|
ManagedObjectRepresentation |
update(ManagedObjectRepresentation managedObjectRepresentation)
Deprecated.
|
@Deprecated ManagedObjectRepresentation get() throws SDKException
SDKException
- if Managed Object cannot be retrieved@Deprecated void delete() throws SDKException
SDKException
- when deletion of Managed Object fail@Deprecated ManagedObjectRepresentation update(ManagedObjectRepresentation managedObjectRepresentation) throws SDKException
managedObjectRepresentation
- ManagedObject that will be updatedSDKException
- when update of Managed Object failManagedObjectReferenceRepresentation addChildDevice(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException
refrenceReprsentation
- ManagedObject reference representationSDKException
- when child references update failManagedObjectReferenceRepresentation addChildDevice(com.cumulocity.model.idtype.GId childId) throws SDKException
childId
- child ManagedObject general identifierSDKException
- when child references update failManagedObjectRepresentation addChildDevice(ManagedObjectRepresentation representation) throws SDKException
representation
- ManagedObject representationSDKException
- when child references update failManagedObjectReferenceCollection getChildDevices() throws SDKException
SDKException
- when fetching child devices failManagedObjectReferenceRepresentation getChildDevice(com.cumulocity.model.idtype.GId deviceId) throws SDKException
deviceId
- device ManagedObject general identifierSDKException
- when fetching child device failvoid deleteChildDevice(com.cumulocity.model.idtype.GId deviceId) throws SDKException
deviceId
- device ManagedObject general identifierSDKException
- when delete of child device failManagedObjectReferenceRepresentation addChildAssets(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException
refrenceReprsentation
- ManagedObject reference representationSDKException
- when child references update failManagedObjectReferenceRepresentation addChildAssets(com.cumulocity.model.idtype.GId childId) throws SDKException
childId
- child ManagedObject general identifierSDKException
- when child references update failManagedObjectRepresentation addChildAsset(ManagedObjectRepresentation representation) throws SDKException
representation
- ManagedObject representationSDKException
- when child references update failManagedObjectReferenceCollection getChildAssets() throws SDKException
SDKException
- when fetching child assets failManagedObjectReferenceRepresentation getChildAsset(com.cumulocity.model.idtype.GId assetId) throws SDKException
assetId
- asset ManagedObject general identifierSDKException
- when fetching child asset failvoid deleteChildAsset(com.cumulocity.model.idtype.GId assetId) throws SDKException
assetId
- asset ManagedObject general identifierSDKException
- when deleting child asset failManagedObjectReferenceRepresentation addChildAdditions(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException
refrenceReprsentation
- ManagedObject reference representationSDKException
- when child references update failManagedObjectReferenceRepresentation addChildAdditions(com.cumulocity.model.idtype.GId childId) throws SDKException
childId
- child addition ManagedObject general identifierSDKException
- when child references update failManagedObjectRepresentation addChildAddition(ManagedObjectRepresentation representation) throws SDKException
representation
- ManagedObject representationSDKException
- when child references update failManagedObjectReferenceCollection getChildAdditions() throws SDKException
SDKException
- when fetching child additions failManagedObjectReferenceRepresentation getChildAddition(com.cumulocity.model.idtype.GId additionId) throws SDKException
additionId
- ManagedObject addition general identifierSDKException
- when fetching child addition failvoid deleteChildAddition(com.cumulocity.model.idtype.GId additionId) throws SDKException
additionId
- ManagedObject addition general identifierSDKException
- when child addition reference delete faileCopyright © 2020 (C) Cumulocity GmbH. All rights reserved.