Package com.thingworx.entities.utils
Class ThingTemplateUtilities
java.lang.Object
com.thingworx.entities.utils.ThingTemplateUtilities
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public final class ThingTemplateUtilities
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Thing
createThingFromTemplate
(String thingTemplateName, String name, String description, boolean persistent) static EntityReferenceCollection
getAllImplementingThings
(EntityReference templateRef)
Get a list of all things which implement a particular ThingTemplatestatic EntityReferenceCollection
getAllImplementingThings
(ThingTemplate template)
-
Constructor Details
-
ThingTemplateUtilities
public ThingTemplateUtilities()
-
-
Method Details
-
getAllImplementingThings
@ThingworxExtensionApiMethod(since={6,6}) public static EntityReferenceCollection getAllImplementingThings(ThingTemplate template) -
getAllImplementingThings
@ThingworxExtensionApiMethod(since={9,1}) public static EntityReferenceCollection getAllImplementingThings(EntityReference templateRef)
Get a list of all things which implement a particular ThingTemplate- Parameters:
templateRef
- - EntityReference to the ThingTemplate for which implementing things are to be fetched- Returns:
- EntityReferenceCollection of all Things which implement the given ThingTemplate
-
createThingFromTemplate
@ThingworxExtensionApiMethod(since={6,6}) public static Thing createThingFromTemplate(String thingTemplateName, String name, String description, boolean persistent) throws Exception - Throws:
Exception
- If an error occurs
-