public class ManagedObjectImpl extends Object implements ManagedObject
Constructor and Description |
---|
ManagedObjectImpl(RestConnector restConnector,
UrlProcessor urlProcessor,
String url,
int pageSize) |
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.
|
public ManagedObjectImpl(RestConnector restConnector, UrlProcessor urlProcessor, String url, int pageSize)
@Deprecated public ManagedObjectRepresentation get() throws SDKException
ManagedObject
get
in interface ManagedObject
SDKException
- if Managed Object cannot be retrieved@Deprecated public void delete() throws SDKException
ManagedObject
delete
in interface ManagedObject
SDKException
- when deletion of Managed Object fail@Deprecated public ManagedObjectRepresentation update(ManagedObjectRepresentation managedObjectRepresentation) throws SDKException
ManagedObject
update
in interface ManagedObject
managedObjectRepresentation
- ManagedObject that will be updatedSDKException
- when update of Managed Object failpublic ManagedObjectReferenceCollection getChildDevices() throws SDKException
ManagedObject
getChildDevices
in interface ManagedObject
SDKException
- when fetching child devices failpublic ManagedObjectReferenceRepresentation addChildDevice(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException
ManagedObject
addChildDevice
in interface ManagedObject
refrenceReprsentation
- ManagedObject reference representationSDKException
- when child references update failpublic ManagedObjectReferenceRepresentation addChildDevice(com.cumulocity.model.idtype.GId childId) throws SDKException
ManagedObject
addChildDevice
in interface ManagedObject
childId
- child ManagedObject general identifierSDKException
- when child references update failpublic ManagedObjectRepresentation addChildDevice(ManagedObjectRepresentation representation) throws SDKException
ManagedObject
addChildDevice
in interface ManagedObject
representation
- ManagedObject representationSDKException
- when child references update failpublic ManagedObjectReferenceRepresentation getChildDevice(com.cumulocity.model.idtype.GId deviceId) throws SDKException
ManagedObject
getChildDevice
in interface ManagedObject
deviceId
- device ManagedObject general identifierSDKException
- when fetching child device failpublic void deleteChildDevice(com.cumulocity.model.idtype.GId deviceId) throws SDKException
ManagedObject
deleteChildDevice
in interface ManagedObject
deviceId
- device ManagedObject general identifierSDKException
- when delete of child device failpublic ManagedObjectReferenceRepresentation addChildAssets(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException
ManagedObject
addChildAssets
in interface ManagedObject
refrenceReprsentation
- ManagedObject reference representationSDKException
- when child references update failpublic ManagedObjectReferenceRepresentation addChildAssets(com.cumulocity.model.idtype.GId childId) throws SDKException
ManagedObject
addChildAssets
in interface ManagedObject
childId
- child ManagedObject general identifierSDKException
- when child references update failpublic ManagedObjectRepresentation addChildAsset(ManagedObjectRepresentation representation) throws SDKException
ManagedObject
addChildAsset
in interface ManagedObject
representation
- ManagedObject representationSDKException
- when child references update failpublic ManagedObjectReferenceCollection getChildAssets() throws SDKException
ManagedObject
getChildAssets
in interface ManagedObject
SDKException
- when fetching child assets failpublic ManagedObjectReferenceRepresentation getChildAsset(com.cumulocity.model.idtype.GId assetId) throws SDKException
ManagedObject
getChildAsset
in interface ManagedObject
assetId
- asset ManagedObject general identifierSDKException
- when fetching child asset failpublic void deleteChildAsset(com.cumulocity.model.idtype.GId assetId) throws SDKException
ManagedObject
deleteChildAsset
in interface ManagedObject
assetId
- asset ManagedObject general identifierSDKException
- when deleting child asset failpublic ManagedObjectReferenceRepresentation addChildAdditions(ManagedObjectReferenceRepresentation refrenceReprsentation) throws SDKException
ManagedObject
addChildAdditions
in interface ManagedObject
refrenceReprsentation
- ManagedObject reference representationSDKException
- when child references update failpublic ManagedObjectReferenceRepresentation addChildAdditions(com.cumulocity.model.idtype.GId childId) throws SDKException
ManagedObject
addChildAdditions
in interface ManagedObject
childId
- child addition ManagedObject general identifierSDKException
- when child references update failpublic ManagedObjectRepresentation addChildAddition(ManagedObjectRepresentation representation) throws SDKException
ManagedObject
addChildAddition
in interface ManagedObject
representation
- ManagedObject representationSDKException
- when child references update failpublic ManagedObjectReferenceCollection getChildAdditions() throws SDKException
ManagedObject
getChildAdditions
in interface ManagedObject
SDKException
- when fetching child additions failpublic ManagedObjectReferenceRepresentation getChildAddition(com.cumulocity.model.idtype.GId additionId) throws SDKException
ManagedObject
getChildAddition
in interface ManagedObject
additionId
- ManagedObject addition general identifierSDKException
- when fetching child addition failpublic void deleteChildAddition(com.cumulocity.model.idtype.GId additionId) throws SDKException
ManagedObject
deleteChildAddition
in interface ManagedObject
additionId
- ManagedObject addition general identifierSDKException
- when child addition reference delete faileCopyright © 2020 (C) Cumulocity GmbH. All rights reserved.