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 java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ThingTemplateUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Thing
createThingFromTemplate(java.lang.String thingTemplateName, java.lang.String name, java.lang.String description, boolean persistent)
static EntityReferenceCollection
getAllImplementingThings(EntityReference templateRef)
Get a list of all things which implement a particular ThingTemplatestatic EntityReferenceCollection
getAllImplementingThings(ThingTemplate template)
-
-
-
Method Detail
-
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(java.lang.String thingTemplateName, java.lang.String name, java.lang.String description, boolean persistent) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
-