Skip navigation links
Thingworx Platform API
8.5.0
com.thingworx.things

Class Thing

    • Field Detail

      • DATASHAPE_INCOMING_LOCAL_PROPERTY_BINDING

        public static final java.lang.String DATASHAPE_INCOMING_LOCAL_PROPERTY_BINDING
        See Also:
        Constant Field Values
      • ENTITYLIST_SHAPE

        public static final java.lang.String ENTITYLIST_SHAPE
        See Also:
        Constant Field Values
      • GENERIC_THING_TEMPLATE

        public static final java.lang.String GENERIC_THING_TEMPLATE
        See Also:
        Constant Field Values
      • DEFAULT_SETTINGS_TABLE

        public static final java.lang.String DEFAULT_SETTINGS_TABLE
        See Also:
        Constant Field Values
      • _logger

        public static org.slf4j.Logger _logger
    • Method Detail

      • initializeEntity

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true,
                                     requiresSuper=true)
        public void initializeEntity()
                                                                                                                                                                        throws java.lang.Exception
        Description copied from class: RootEntity


        Initializes the internal state of the entity. This method may be called more than once on the same entity during initialization.

        All metadata, including aspects and configuration tables, are available at this point in the lifecycle.

        Overrides:
        initializeEntity in class RootEntity
        Throws:
        java.lang.Exception - If an error occurs
      • isRunning

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean isRunning()


        Returns true when the thing has completed starting up and has not yet been cleaned up.

        Returns:
        true if the thing is active and has not yet been stopped
      • dispose

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true,
                                     requiresSuper=true)
        public void dispose()
                                                                                                                                                               throws java.lang.Exception
        Description copied from class: RootEntity


        Removes any remaining references of this entity and disposes any resources that were not cleaned up earlier in the lifecycle. This method is only invoked when the entity is in the process of deletion.

        Overrides:
        dispose in class RootEntity
        Throws:
        java.lang.Exception - If an error occurs

        This method handles cleanup for deletion, only cleanup that should be done during actual deletion should be done here.
      • startThing

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true)
        protected void startThing()
                                                                                                                    throws java.lang.Exception


        A startup hook for subclasses of Thing.

        Throws:
        java.lang.Exception - if an error occurs during thing startup
      • stopThing

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true)
        protected void stopThing()
                                                                                                                   throws java.lang.Exception


        A shutdown hook for subclasses of Thing.

        Throws:
        java.lang.Exception - if an error occurs during thing shutdown
      • initializeThing

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true)
        protected void initializeThing()
                                                                                                                         throws java.lang.Exception


        An initialization hook for subclasses of Thing. Some resources of Thing may not be available at this point in the lifecycle.

        Throws:
        java.lang.Exception - if an error occurs during thing initialization
      • cleanupThing

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true,
                                     deprecatedSince={9,0})
        protected void cleanupThing()
                                                                                                                                                                          throws java.lang.Exception


        A teardown hook for subclasses of Thing. This method will be called whenever the thing is deactivated.

        This method is not invoked if the thing has been disabled.

        Throws:
        java.lang.Exception - if an error occurs during thing teardown
      • cleanupThing

        @ThingworxExtensionApiMethod(since={9,0},
                                     canOverride=true)
        protected void cleanupThing(PatchType patchType)
                                                                                                                      throws java.lang.Exception


        A teardown hook with model synchronization patch operation for subclasses of Thing. This method will be called whenever the thing is deactivated.

        This method is not invoked if the thing has been disabled.

        Parameters:
        patchType - model synchronization patch operation
        Throws:
        java.lang.Exception - if an error occurs during thing teardown
      • preprocessSetPropertyVTQ

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true)
        protected void preprocessSetPropertyVTQ(ThingProperty property,
                                                                                                                                         VTQ newValue,
                                                                                                                                         boolean withUpdate)
                                                                                                                                  throws java.lang.Exception


        A property validation hook for subclasses of Thing. This method will execute whenever the value of a property is modified.

        Parameters:
        property - the property being modified
        newValue - the new value being assigned to the property
        withUpdate - has no current function
        Throws:
        java.lang.Exception - if property validation fails against the new value
      • processStartNotification

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true)
        protected void processStartNotification()


        A post-startup hook for subclasses of Thing. This method executes when the thing has fully activated and all resources made available.

      • getInstanceShape

        @ThingworxExtensionApiMethod(since={6,6})
        public ThingShapeInstance getInstanceShape()


        Returns the thing shape describing the current thing. The thing shape instance contains only the resources that belong exclusively to this thing (i.e., not inherited from a thing template or shape).

        The thing shape instance is not fully initialized until the "start" step of the lifecycle.

        Specified by:
        getInstanceShape in interface IShapeProvider
        Returns:
        the thing shape describing the thing itself
      • getAllImplementedThingShapes

        @ThingworxExtensionApiMethod(since={6,6})
        public EntityReferenceCollection getAllImplementedThingShapes()


        Returns all thing shapes implemented by this thing. This includes thing shapes applied via inheritance.

        This method may be used at the "initialize thing" step of the lifecycle or later.

        Returns:
        a collection containing references to all implemented thing shapes
      • implementsShape

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean implementsShape(java.lang.String thingShape)


        Returns true if the specified thing shape is implemented by this thing. This includes thing shapes applied via inheritance.

        This method may be used at the "initialize thing" step of the lifecycle or later.

        Parameters:
        thingShape - the name of the thing shape to test for
        Returns:
        true if the thing implements the specified shape
      • getAllImplementedThingTemplates

        @ThingworxExtensionApiMethod(since={6,6})
        public EntityReferenceCollection getAllImplementedThingTemplates()


        Returns all thing templates inherited by this thing.

        This method may be used at the "initialize thing" step of the lifecycle or later.

        Returns:
        a collection containing references to all inherited thing templates
      • implementsTemplate

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean implementsTemplate(java.lang.String thingTemplate)


        Returns true if the specified thing template is a member of of the thing's inheritance chain.

        This method may be used at the "initialize thing" step of the lifecycle or later.

        Parameters:
        thingTemplate - the name of the thing template to test for
        Returns:
        true if the thing inherits the specified template
      • getImplementedThingTemplates

        @ThingworxExtensionApiMethod(since={6,6})
        public java.util.HashSet<java.lang.String> getImplementedThingTemplates()


        Returns a set containing the names of all thing templates the thing inherits from.

        Returns:
        a set containing the names of all thing templates this thing inherits from
      • isSubscribed

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean isSubscribed(java.lang.String eventName)


        Returns true if the specified event has been subscribed to.

        This method may be used at the "notification" step of the lifecycle or later.

        Parameters:
        eventName - the name of the event
        Returns:
        true if any subscriptions exist
      • isLocallySubscribed

        @Deprecated
         @ThingworxExtensionApiMethod(since={6,6},
                                     deprecatedSince={7,4})
        public boolean isLocallySubscribed(java.lang.String eventName)
        Deprecated. Use isSubscribed(String) instead.


        Returns true if the specified event has been subscribed to within the thing.

        This method may be used at the "notification" step of the lifecycle or later.

        Parameters:
        eventName - the name of the event
        Returns:
        true if any subscriptions exist within this thing
      • isExternallySubscribed

        @Deprecated
         @ThingworxExtensionApiMethod(since={6,6},
                                     deprecatedSince={7,4})
        public boolean isExternallySubscribed(java.lang.String eventName)
        Deprecated. Use isSubscribed(String) instead.


        Returns true if the specified event has been subscribed to by an external entity.

        This method may be used at the "notification" step of the lifecycle or later.

        Parameters:
        eventName - the name of the event
        Returns:
        true if any subscriptions exist on an external entity
      • getValueStreamName

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.String getValueStreamName()


        Returns the name of the value stream assigned to this thing, if any.

        It is recommended to use the method getEffectiveValueStreamName() instead, as it will account for value streams attached to inherited thing templates.

        Returns:
        the name of the assigned value stream, or an empty string if none has been assigned
      • isPropertyEvent

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean isPropertyEvent(java.lang.String eventName)


        Returns true if the named event exists and binds to a property.

        Parameters:
        eventName - The name of the event
        Returns:
        true if the event binds to a property
      • getEffectivePropertyDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public PropertyDefinition getEffectivePropertyDefinition(java.lang.String name)


        Returns the named property definition belonging to the current thing.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Specified by:
        getEffectivePropertyDefinition in interface IAlertProvider
        Parameters:
        name - The name of the property definition.
        Returns:
        the property definition if it exists, otherwise null
      • getInstancePropertyDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public PropertyDefinition getInstancePropertyDefinition(java.lang.String name)


        Returns the named property definition. The property definition may belong to the thing itself or from an inherited template or implemented shape.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Specified by:
        getInstancePropertyDefinition in interface IPropertyProvider
        Parameters:
        name - The name of the property definition.
        Returns:
        the property definition if it exists, otherwise null
      • getInstanceServiceDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public ServiceDefinition getInstanceServiceDefinition(java.lang.String name)


        Returns the named service definition. The service definition may belong to the thing itself or from an inherited template or implemented shape.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Specified by:
        getInstanceServiceDefinition in interface IServiceProvider
        Parameters:
        name - The name of the service definition.
        Returns:
        the service definition if it exists, otherwise null
      • getEffectiveServiceDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public ServiceDefinition getEffectiveServiceDefinition(java.lang.String serviceName)


        Returns the named service definition belonging to the current thing.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Specified by:
        getEffectiveServiceDefinition in interface IServiceMetadataProvider
        Parameters:
        serviceName - The name of the service definition.
        Returns:
        the service definition if it exists, otherwise null
      • getEffectiveEventDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public EventDefinition getEffectiveEventDefinition(java.lang.String name)


        Returns the named event definition belonging to the current thing.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Specified by:
        getEffectiveEventDefinition in interface IEventMetadataProvider
        Parameters:
        name - The name of the event definition.
        Returns:
        the event definition if it exists, otherwise null
      • getInstanceEventDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public EventDefinition getInstanceEventDefinition(java.lang.String name)


        Returns the named event definition. The event definition may belong to the thing itself or from an inherited template or implemented shape.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Specified by:
        getInstanceEventDefinition in interface IEventProvider
        Parameters:
        name - The name of the property definition.
        Returns:
        the event definition if it exists, otherwise null
      • getInstanceSubscriptions

        @ThingworxExtensionApiMethod(since={6,6})
        public SubscriptionCollection getInstanceSubscriptions()


        Returns a collection containing all subscriptions that are applicable to this thing including it's inherited subscriptions.

        This method may be used at the "start" step of the lifecycle or later.

        Returns:
        a collection of subscriptions
        See Also:
        Subscription
      • isPropertyRemote

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean isPropertyRemote(PropertyDefinition propertyDefinition)


        Returns true if the property definition provided defines a remote property, or if the property is registered as remote according to the current thing.

        This method may be used at the "start" step of the lifecycle or later.

        Parameters:
        propertyDefinition - the definition of the property to test against
        Returns:
        true if the definition provided defines a remote property or if the property is remote according to the current thing
      • isServiceRemote

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean isServiceRemote(ServiceDefinition serviceDefinition)


        Returns true if the service definition provided defines a remote service, or if the service is registered as remote according to the current thing.

        This method may be used at the "start" step of the lifecycle or later.

        Parameters:
        serviceDefinition - the definition of the service to test against
        Returns:
        true if the definition provided defines a remote service or if the service is remote according to the current thing
      • isEventRemote

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean isEventRemote(EventDefinition eventDefinition)


        Returns true if the event definition provided defines a remote event, or if the event is registered as remote according to the current thing.

        This method may be used at the "start" step of the lifecycle or later.

        Parameters:
        eventDefinition - the definition of the event to test against
        Returns:
        true if the definition provided defines a remote event or if the event is remote according to the current thing
      • getEffectiveValueStreamName

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.String getEffectiveValueStreamName()


        Returns the name of the value stream effectively assigned to this thing, taking into account the thing template hierarchy.

        Returns:
        the name of the value stream associated with this thing
      • validateConfiguration

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true,
                                     requiresSuper=true)
        public void validateConfiguration(ImportedEntityCollection importedEntities)
                                                                                                                                                                             throws java.lang.Exception


        Validates the configuration of the thing during the import process. This method is called whenever a thing is created or modified via the REST APIs. During the validation step, there may be other associated entities (including thing shapes and templates) that are being imported. These can be accessed via the importedEntities collection if needed.

        Note that some resources belonging to the thing or other associated entities may not be available during this step in the lifecycle.

        It is required for all subclasses of Thing to call super.validateConfiguration(importedEntities) if they override this method.

        Overrides:
        validateConfiguration in class RootEntity
        Parameters:
        importedEntities - - a typed collection of entities currently being imported
        Throws:
        java.lang.Exception - if the thing is invalid
      • isEnabled

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean isEnabled()


        Returns true if the current thing is enabled. An enabled thing can be started and federated.

        Returns:
        true if the current thing is enabled
      • addProperty

        @ThingworxExtensionApiMethod(since={6,6})
        public ThingProperty addProperty(PropertyDefinition propertyDefinition)
                                                                            throws java.lang.Exception


        Adds the provided property definition to this thing. An instance of the property will automatically be generated and assigned the default value.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Parameters:
        propertyDefinition - the property definition to apply to this thing
        Returns:
        the generated property instance
        Throws:
        java.lang.Exception - if an error occurs
      • isLocalProperty

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean isLocalProperty(java.lang.String property)


        Returns true if the specified property is defined by this thing.

        Parameters:
        property - the name of the property
        Returns:
        true if the named property is a local member of this thing
      • getProperty

        @ThingworxExtensionApiMethod(since={6,6})
        public ThingProperty getProperty(java.lang.String propertyName)
                                                                            throws java.lang.Exception


        Returns the named property instance. This method performs a run-time authorization check against the current security context.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Parameters:
        propertyName - the name of the property to retrieve
        Returns:
        the associated property instance
        Throws:
        java.lang.Exception - if an error occurs or authorization is denied
      • getPropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public IPrimitiveType getPropertyValue(java.lang.String propertyName)
                                                                                  throws java.lang.Exception


        Returns the current value assigned to the named property. This method performs a run-time authorization check against the current security context.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Specified by:
        getPropertyValue in interface IPropertyProvider
        Parameters:
        propertyName - the name of the property
        Returns:
        the value of the property
        Throws:
        java.lang.Exception - if an error occurs or authorization is denied
      • getPropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public IPrimitiveType getPropertyValue(ThingProperty property)
                                                                                  throws java.lang.Exception


        Returns the current value assigned to the provided property instance. This method performs a run-time authorization check against the current security context.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Parameters:
        property - the property
        Returns:
        the value of the property
        Throws:
        java.lang.Exception - if an error occurs or authorization is denied
      • getPropertyTime

        @ThingworxExtensionApiMethod(since={6,6})
        public org.joda.time.DateTime getPropertyTime(java.lang.String propertyName)


        Returns the modified time assigned to the named property. This method performs a run-time authorization check against the current security context.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Parameters:
        propertyName - the name of the property
        Returns:
        the time the property was last modified, or the epoch if an error occurred
      • getPropertyQuality

        @ThingworxExtensionApiMethod(since={6,6})
        public QualityStatus getPropertyQuality(java.lang.String propertyName)


        Returns the current quality status assigned to the provided property instance. This method performs a run-time authorization check against the current security context.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Parameters:
        propertyName - the name of the property
        Returns:
        the current quality status of the property, or QualityStatus#UNKNOWN if an error occurred
      • hasProperty

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean hasProperty(java.lang.String propertyName)
        Description copied from interface: IPropertyProvider


        Returns true if there exists a property with the specified name. Property names are case-sensitive.
        Specified by:
        hasProperty in interface IPropertyProvider
        Parameters:
        propertyName - the property name to check
        Returns:
        true if the specified property exists
      • checkDemandRead

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true)
        public void checkDemandRead(ThingProperty property)
                                                                                                                      throws java.lang.Exception


        A property read hook for subclasses of Thing. This method may be used to update the property on read if it uses a backing cache or otherwise transform the property prior to read.

        Parameters:
        property - the property that is being read
        Throws:
        java.lang.Exception - if the property cannot be read, or if an issue occurs
      • initializeProperty

        @ThingworxExtensionApiMethod(since={6,6})
        public void initializeProperty(java.lang.String propertyName,
                                                                                 IPrimitiveType value)
                                                                          throws java.lang.Exception


        Initializes the named property to the specified value. This method is intended for use by subclasses of Thing during the "thing initialization" step of the lifecycle to assign an initial value to a property managed by the subclass.

        Parameters:
        propertyName - the name of the property
        value - the value to assign to the property
        Throws:
        java.lang.Exception - If an error occurs
      • setPropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void setPropertyValue(java.lang.String propertyName,
                                                                               IPrimitiveType newValue)
                                                                        throws java.lang.Exception
        Specified by:
        setPropertyValue in interface IPropertyProvider
        Parameters:
        propertyName - the name of the property that is being modified
        newValue - the value to assign to the property
        Throws:
        java.lang.Exception - If an error occurs

        Assigns the provided value to the specified property.

        This method may be used at the "start" step of the lifecycle or later.

        java.lang.Exception - if either of the parameters are null, the user is unauthorized, or an error occurs when attempting to modify the property
      • setPropertyVTQ

        @ThingworxExtensionApiMethod(since={6,6})
        public QueuedEvent setPropertyVTQ(java.lang.String propertyName,
                                                                                    VTQ newValue,
                                                                                    boolean withUpdate)
                                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • setPropertyVTQ

        @ThingworxExtensionApiMethod(since={6,6})
        public QueuedEvent setPropertyVTQ(java.lang.String propertyName,
                                                                                    VTQ newValue,
                                                                                    boolean deferNotifications,
                                                                                    boolean bypassReadOnly,
                                                                                    boolean bypassHooksAndBindings)
                                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • getPropertyValues

        @ThingworxExtensionApiMethod(since={6,6})
        public ValueCollection getPropertyValues()
                                                                                    throws java.lang.Exception


        Returns a collection of mappings of property names and the current values of the properties. This method performs a runtime authorization check on each property to be read to ensure the current security context is authorized. Any properties that the current security context does not have access to will not be a member of the returned collection.

        This method may be used at the "thing initialization" step of the lifecycle or later.

        Returns:
        a map of property names and their current values
        Throws:
        java.lang.Exception - if an error occurred while reading a property, excepting an authorization failure
      • acknowledgeAlertByPropertyAndName

        @ThingworxExtensionApiMethod(since={7,3})
        public void acknowledgeAlertByPropertyAndName(java.lang.String propertyName,
                                                                                                java.lang.String alertName,
                                                                                                java.lang.String message)
                                                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • acknowledgeAlertByProperty

        @ThingworxExtensionApiMethod(since={6,6})
        public void acknowledgeAlertByProperty(java.lang.String propertyName,
                                                                                         java.lang.String message)
                                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • getAlertsForProperty

        @ThingworxExtensionApiMethod(since={6,6})
        public AlertList getAlertsForProperty(java.lang.String propertyName)


        Returns Effective Alerts including local and inherited from ancestors.
        Parameters:
        propertyName - name of the property on which the alert's defined
        Returns:
        a list of alerts defined on the given property
      • getAlerts

        @ThingworxExtensionApiMethod(since={6,6})
        public AlertCollection getAlerts()


        Returns a list of effective alerts on the properties associated with this thing.

        This method may be used at the "start" step of the lifecycle or later.

        Returns:
        a collection of alerts
      • GetValueStream

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.String GetValueStream()
        Service Category:
        DataLogging
        Service Description:
        Get the identifier for a thing.
        Returns:
        name Value Stream Name - THINGNAME
      • SetValueStream

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetValueStream(java.lang.String name)
                                                                      throws java.lang.Exception
        Service Category:
        DataLogging
        Service Description:
        Set the value stream for a thing.
        Parameters:
        name - Value stream name - THINGNAME
        Throws:
        java.lang.Exception - If an error occurs
      • DisableThing

        @ThingworxExtensionApiMethod(since={6,6})
        public void DisableThing()
                                                                    throws java.lang.Exception
        Service Category:
        Lifecycle
        Service Description:
        Disable this thing.
        Throws:
        java.lang.Exception - If an error occurs
      • EnableThing

        @ThingworxExtensionApiMethod(since={6,6})
        public void EnableThing()
                                                                   throws java.lang.Exception
        Service Category:
        Lifecycle
        Service Description:
        Enable this thing.
        Throws:
        java.lang.Exception - If an error occurs
      • IsEnabled

        @ThingworxExtensionApiMethod(since={6,6})
        public boolean IsEnabled()
                                                                    throws java.lang.Exception
        Service Category:
        Lifecycle
        Service Description:
        Get Enabled Status.
        Returns:
        enabled Enabled status - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • RestartThing

        @ThingworxExtensionApiMethod(since={6,6})
        public void RestartThing()
                                                                    throws java.lang.Exception
        Service Category:
        Lifecycle
        Service Description:
        Restart this thing.
        Throws:
        java.lang.Exception - If an error occurs
      • GetIdentifier

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.String GetIdentifier()
        Service Category:
        Identifier
        Service Description:
        Get the identifier for a thing.
        Returns:
        identifier Identifier - STRING
      • SetIdentifier

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetIdentifier(java.lang.String identifier)
                                                                     throws java.lang.Exception
        Service Category:
        Identifier
        Service Description:
        Set the identifier for a thing.
        Parameters:
        identifier - Thing identifier for remote things - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • GetLocalPropertyBinding

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetLocalPropertyBinding(java.lang.String propertyName)
                                                                                    throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Get the property binding for a property.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property binding - INFOTABLE - Aspects {dataShape:LocalPropertyBinding}
        Throws:
        java.lang.Exception - If an error occurs
      • GetEffectiveLocalPropertyBinding

        @ThingworxExtensionApiMethod(since={7,3})
        public InfoTable GetEffectiveLocalPropertyBinding(java.lang.String propertyName)
                                                                                             throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Get the effective local property binding for a property.


        Get the effective (inherited and local) property binding for a property
        Parameters:
        propertyName - : name of property to get the local binding
        Returns:
        InfoTable of local property bindings consists of property name, name of thing(sourceThingName) and name of property(sourceName) the property is locally bound to.
        Throws:
        java.lang.Exception
      • GetEffectiveLocalPropertyBindings

        @ThingworxExtensionApiMethod(since={7,3})
        public InfoTable GetEffectiveLocalPropertyBindings()
                                                                                              throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Get the effective local property bindings.


        Get all effective (inherited and local) property bindings for this thing
        Returns:
        InfoTable of local property bindings consists of property name, name of thing(sourceThingName) and name of property(sourceName) the property is locally bound to.
        Throws:
        java.lang.Exception
      • GetIncomingLocalPropertyBindings

        @ThingworxExtensionApiMethod(since={8,0})
        public InfoTable GetIncomingLocalPropertyBindings()
                                                                                             throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Get all things and their properties that have local bindings on this thing.


        Get all things and their properties that have local bindings on this thing
        Returns:
        Infotable of propertyName, bound thing's property name, bound thing's name
        Throws:
        java.lang.Exception
      • GetIncomingLocalPropertyBinding

        @ThingworxExtensionApiMethod(since={8,0})
        public InfoTable GetIncomingLocalPropertyBinding(java.lang.String propertyName)
                                                                                            throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Get incoming local bindings to this thing for the given property.


        Get incoming local bindings to this thing for the given property
        Parameters:
        propertyName - : name of property for which incoming bindings are to be fetched
        Returns:
        Infotable of propertyName, bound thing's property name, bound thing's name
        Throws:
        java.lang.Exception
      • RemoveLocalPropertyBinding

        @ThingworxExtensionApiMethod(since={6,6})
        public void RemoveLocalPropertyBinding(java.lang.String propertyName)
                                                                                  throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Remove the local property binding for a property.
        Parameters:
        propertyName - Property name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • SetLocalPropertyBinding

        @ThingworxExtensionApiMethod(since={8,1,0})
        public void SetLocalPropertyBinding(java.lang.String propertyName,
                                                                                        java.lang.String sourceThingName,
                                                                                        java.lang.String sourcePropertyName,
                                                                                        org.json.JSONObject aspects)
                                                                                 throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Set the property binding for a property.
        Parameters:
        propertyName - Property name - STRING
        sourceThingName - Thing name to bind to - STRING
        sourcePropertyName - Source property name - STRING
        aspects - Aspects for the local binding - JSON
        Throws:
        java.lang.Exception - If an error occurs
      • GetRemotePropertyBinding

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetRemotePropertyBinding(java.lang.String propertyName)
                                                                                     throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Get the remote property binding for a property.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property binding - INFOTABLE - Aspects {dataShape:RemotePropertyBinding}
        Throws:
        java.lang.Exception - If an error occurs
      • RemoveRemotePropertyBinding

        @ThingworxExtensionApiMethod(since={6,6})
        public void RemoveRemotePropertyBinding(java.lang.String propertyName)
                                                                                   throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Remove the remote property binding for a property.
        Parameters:
        propertyName - Property name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • SetRemotePropertyBinding

        @ThingworxExtensionApiMethod(since={8,0})
        public void SetRemotePropertyBinding(java.lang.String propertyName,
                                                                                       java.lang.String sourcePropertyName,
                                                                                       java.lang.Integer timeout,
                                                                                       java.lang.String pushType,
                                                                                       java.lang.Double pushThreshold,
                                                                                       org.json.JSONObject aspects,
                                                                                       java.lang.Integer cacheTime,
                                                                                       java.lang.String foldType)
                                                                                throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Set the remote property binding for a property.
        Parameters:
        propertyName - Property name - STRING
        sourcePropertyName - Source property name - STRING
        timeout - Request timeout - INTEGER
        pushType - Push type - STRING
        pushThreshold - Push threshold - NUMBER
        aspects - Aspects for the remote binding - JSON
        cacheTime - Property's cache time value at the server in milliseconds - INTEGER
        foldType - How a remote property's value should be handled by the server when a connection is lost - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • GetRemoteServiceBinding

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetRemoteServiceBinding(java.lang.String serviceName)
                                                                                    throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Get the remote service binding for a service.
        Parameters:
        serviceName - Service name - STRING
        Returns:
        result Service binding - INFOTABLE - Aspects {dataShape:RemoteServiceBinding}
        Throws:
        java.lang.Exception - If an error occurs
      • RemoveRemoteServiceBinding

        @ThingworxExtensionApiMethod(since={6,6})
        public void RemoveRemoteServiceBinding(java.lang.String serviceName)
                                                                                  throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Remove the remote service binding for a service.
        Parameters:
        serviceName - Service name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • SetRemoteServiceBinding

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetRemoteServiceBinding(java.lang.String serviceName,
                                                                                      java.lang.String sourceServiceName,
                                                                                      java.lang.Integer timeout)
                                                                               throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Set the remote service binding for a service.
        Parameters:
        serviceName - Service name - STRING
        sourceServiceName - Source service name - STRING
        timeout - Request timeout - INTEGER
        Throws:
        java.lang.Exception - If an error occurs
      • GetRemoteEventBinding

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetRemoteEventBinding(java.lang.String eventName)
                                                                                  throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Get the remote event binding for a event.
        Parameters:
        eventName - Event name - STRING
        Returns:
        result Event binding - INFOTABLE - Aspects {dataShape:RemoteEventBinding}
        Throws:
        java.lang.Exception - If an error occurs
      • RemoveRemoteEventBinding

        @ThingworxExtensionApiMethod(since={6,6})
        public void RemoveRemoteEventBinding(java.lang.String eventName)
                                                                                throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Remove the remote event binding for a event.
        Parameters:
        eventName - Event name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • SetRemoteEventBinding

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetRemoteEventBinding(java.lang.String eventName,
                                                                                    java.lang.String sourceEventName)
                                                                             throws java.lang.Exception
        Service Category:
        Bindings
        Service Description:
        Set the remote event binding for a event.
        Parameters:
        eventName - Event name - STRING
        sourceEventName - Source event name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • UpdatePropertyValues

        @ThingworxExtensionApiMethod(since={6,6})
        public void UpdatePropertyValues(InfoTable values)
                                                                            throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Write property values for a thing.
        Parameters:
        values - Collection of properties to be updated - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • GetPropertyQuality

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.String GetPropertyQuality(java.lang.String propertyName)
                                                                                      throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the quality for a specific property.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        Quality Quality value - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • GetPropertyTime

        @ThingworxExtensionApiMethod(since={6,6})
        public org.joda.time.DateTime GetPropertyTime(java.lang.String propertyName)
                                                                                         throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the timestamp for a specific property.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        Time Time value - DATETIME
        Throws:
        java.lang.Exception - If an error occurs
      • GetLoggedProperties

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetLoggedProperties(java.lang.String type)
                                                                                throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Get a list of logged properties for this thing.
        Parameters:
        type - Type to filter on - BASETYPENAME
        Returns:
        result Property names - INFOTABLE - Aspects {dataShape:PropertyDefinition}
        Throws:
        java.lang.Exception - If an error occurs
      • GetNumericLoggedProperties

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetNumericLoggedProperties()
                                                                                       throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Get a list of logged properties for this thing that are of a numeric data type.
        Returns:
        result Property names - INFOTABLE - Aspects {dataShape:PropertyDefinition}
        Throws:
        java.lang.Exception - If an error occurs
      • GetNumberPropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Double GetNumberPropertyValue(java.lang.String propertyName)
                                                                                          throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - NUMBER
        Throws:
        java.lang.Exception - If an error occurs
      • GetIntegerPropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Integer GetIntegerPropertyValue(java.lang.String propertyName)
                                                                                            throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - INTEGER
        Throws:
        java.lang.Exception - If an error occurs
      • GetLongPropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Long GetLongPropertyValue(java.lang.String propertyName)
                                                                                      throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - LONG
        Throws:
        java.lang.Exception - If an error occurs
      • GetBooleanPropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Boolean GetBooleanPropertyValue(java.lang.String propertyName)
                                                                                            throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • GetLocationPropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public Location GetLocationPropertyValue(java.lang.String propertyName)
                                                                                    throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - LOCATION
        Throws:
        java.lang.Exception - If an error occurs
      • GetDateTimePropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public org.joda.time.DateTime GetDateTimePropertyValue(java.lang.String propertyName)
                                                                                                  throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - DATETIME
        Throws:
        java.lang.Exception - If an error occurs
      • GetStringPropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.String GetStringPropertyValue(java.lang.String propertyName)
                                                                                          throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • GetVec2PropertyValue

        @ThingworxExtensionApiMethod(since={7,1})
        public Vec2 GetVec2PropertyValue(java.lang.String propertyName)
                                                                            throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - VEC2
        Throws:
        java.lang.Exception - If an error occurs
      • GetVec3PropertyValue

        @ThingworxExtensionApiMethod(since={7,1})
        public Vec3 GetVec3PropertyValue(java.lang.String propertyName)
                                                                            throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - VEC3
        Throws:
        java.lang.Exception - If an error occurs
      • GetVec4PropertyValue

        @ThingworxExtensionApiMethod(since={7,1})
        public Vec4 GetVec4PropertyValue(java.lang.String propertyName)
                                                                            throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - VEC4
        Throws:
        java.lang.Exception - If an error occurs
      • GetThingCodePropertyValue

        @ThingworxExtensionApiMethod(since={7,1})
        public ThingCode GetThingCodePropertyValue(java.lang.String propertyName)
                                                                                      throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - THINGCODE
        Throws:
        java.lang.Exception - If an error occurs
      • GetImagePropertyValue

        @ThingworxExtensionApiMethod(since={6,6})
        public byte[] GetImagePropertyValue(java.lang.String propertyName)
                                                                               throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property value.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        result Property value - IMAGE
        Throws:
        java.lang.Exception - If an error occurs
      • GetPropertyValues

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetPropertyValues()
                                                                              throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property values for this thing.
        Returns:
        result Property values - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • GetPropertyValuesAsMultiRowTable

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetPropertyValuesAsMultiRowTable()
                                                                                             throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property values for this thing.
        Returns:
        result Property values - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • SetPropertyValues

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetPropertyValues(InfoTable values)
                                                                         throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get a subset of the current property values for this thing.
        Parameters:
        values - Property values - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • GetNamedPropertyValues

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetNamedPropertyValues(InfoTable propertyNames)
                                                                                   throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get a subset of the current property values for this thing.
        Parameters:
        propertyNames - Property names - INFOTABLE
        Returns:
        result Property values - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • GetNamedProperties

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetNamedProperties(org.json.JSONObject propertyNames)
                                                                               throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get a subset of the current property values for this thing.
        Parameters:
        propertyNames - List of property names - JSON
        Returns:
        result Property values - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • GetPropertyValuesVTQ

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetPropertyValuesVTQ()
                                                                                 throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property values for this thing as VTQ.
        Returns:
        result Property values - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • GetNamedPropertyValuesVTQ

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetNamedPropertyValuesVTQ(InfoTable propertyNames)
                                                                                      throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property values for this thing as VTQ.
        Parameters:
        propertyNames - Property names - INFOTABLE
        Returns:
        result Property values - INFOTABLE - Aspects {isMultiRow: false}
        Throws:
        java.lang.Exception - If an error occurs
      • GetPropertyValuesVTQA

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetPropertyValuesVTQA()
                                                                                  throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get the current property values (VTQ) and the highest alert for this thing.
        Returns:
        result Property values VTQA - INFOTABLE - Aspects {isMultiRow: false}
        Throws:
        java.lang.Exception - If an error occurs
      • GetNamedPropertyValuesVTQA

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetNamedPropertyValuesVTQA(InfoTable propertyNames)
                                                                                       throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Get a subset of the current property values (VTQ) and the highest alert for this thing.
        Parameters:
        propertyNames - Property names - INFOTABLE
        Returns:
        result Property values VTQA - INFOTABLE - Aspects {isMultiRow: false}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryAlertSummary

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryAlertSummary(org.json.JSONObject query,
                                                                                     java.lang.Boolean onlyAcknowledged,
                                                                                     java.lang.Boolean onlyUnacknowledged,
                                                                                     java.lang.Double maxItems)
                                                                              throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Query the alert summary.
        Parameters:
        query - Query definition - QUERY
        onlyAcknowledged - Show only acknowledged alerts - BOOLEAN
        onlyUnacknowledged - Show only unacknowledged alerts - BOOLEAN
        maxItems - Maximum number of items to return - NUMBER
        Returns:
        result Alert Summary - INFOTABLE - Aspects {dataShape:AlertSummary}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryAlertHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryAlertHistory(org.joda.time.DateTime startDate,
                                                                                     org.joda.time.DateTime endDate,
                                                                                     java.lang.Boolean oldestFirst,
                                                                                     org.json.JSONObject query,
                                                                                     java.lang.Double maxItems)
                                                                              throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Query the alert history.
        Parameters:
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        maxItems - Maximum number of items to return - NUMBER
        Returns:
        result Alert History - INFOTABLE - Aspects {dataShape:AlertHistory, isStreamEntry:true}
        Throws:
        java.lang.Exception - If an error occurs
      • AcknowledgeAllAlerts

        @ThingworxExtensionApiMethod(since={6,6})
        public void AcknowledgeAllAlerts(java.lang.String message)
                                                                            throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Acknowledge all active alerts.
        Parameters:
        message - Message (optional) - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • AcknowledgeAlert

        @ThingworxExtensionApiMethod(since={6,6})
        public void AcknowledgeAlert(java.lang.String property,
                                                                               java.lang.String message)
                                                                        throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Acknowledge an active alert.
        Parameters:
        property - Property name - STRING
        message - Message (optional) - STRING
        Throws:
        java.lang.Exception - If an error occurs

        Additional Information

        This service takes the name of the property and the message and throws an alert acknowledge event.

        Acknowledges each alert on the property whether or not it's in an alert state.

      • GetAlertSummary

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetAlertSummary(java.lang.Boolean onlyAcknowledged,
                                                                                   java.lang.Boolean onlyUnacknowledged,
                                                                                   java.lang.Double maxItems)
                                                                            throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get alert summary status.
        Parameters:
        onlyAcknowledged - Show only acknowledged alerts - BOOLEAN
        onlyUnacknowledged - Show only unacknowledged alerts - BOOLEAN
        maxItems - Maximum number of items to return - NUMBER
        Returns:
        Status Alert status - INFOTABLE - Aspects {dataShape:AlertSummary}
        Throws:
        java.lang.Exception - If an error occurs
      • GetAlertSummaryForProperty

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetAlertSummaryForProperty(java.lang.String property,
                                                                                              java.lang.Boolean onlyAcknowledged,
                                                                                              java.lang.Boolean onlyUnacknowledged,
                                                                                              java.lang.Double maxItems)
                                                                                       throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get alert summary for a property.
        Parameters:
        property - Property name - STRING
        onlyAcknowledged - Show only acknowledged alerts - BOOLEAN
        onlyUnacknowledged - Show only unacknowledged alerts - BOOLEAN
        maxItems - Maximum number of items to return - NUMBER
        Returns:
        AlertSummary Alert summary - INFOTABLE - Aspects {dataShape:PropertyAlertSummary}
        Throws:
        java.lang.Exception - If an error occurs
      • DisableAllAlerts

        @ThingworxExtensionApiMethod(since={6,6})
        public void DisableAllAlerts(java.lang.Boolean persistent)
                                                                        throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Disable all alerts for a thing.
        Parameters:
        persistent - Persist this change - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • EnableAllAlerts

        @ThingworxExtensionApiMethod(since={6,6})
        public void EnableAllAlerts(java.lang.Boolean persistent)
                                                                       throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Enable all alerts for a thing.
        Parameters:
        persistent - Persist this change - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • DisableAlertsForProperty

        @ThingworxExtensionApiMethod(since={6,6})
        public void DisableAlertsForProperty(java.lang.String property,
                                                                                       java.lang.String alertName,
                                                                                       java.lang.Boolean persistent)
                                                                                throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Disable alert(s) for a property. Specify alertName for a specific property alert; otherwise, all alerts are disabled.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        persistent - Persist this change - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • EnableAlertsForProperty

        @ThingworxExtensionApiMethod(since={6,6})
        public void EnableAlertsForProperty(java.lang.String property,
                                                                                      java.lang.String alertName,
                                                                                      java.lang.Boolean persistent)
                                                                               throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Enable alert(s) for a property. Specify alertName for a specific property alert; otherwise, all alerts are enabled.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        persistent - Persist this change - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • GetPropertyLogging

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Boolean GetPropertyLogging(java.lang.String propertyName)
                                                                                       throws java.lang.Exception
        Service Category:
        DataLogging
        Service Description:
        Get property logging status for a specific property.
        Parameters:
        propertyName - Property name - STRING
        Returns:
        status Property logging status - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • SetPropertyLogging

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetPropertyLogging(java.lang.String propertyName,
                                                                                 java.lang.Boolean enabled)
                                                                          throws java.lang.Exception
        Service Category:
        DataLogging
        Service Description:
        Set property logging status for a specific property.
        Parameters:
        propertyName - Property name - STRING
        enabled - Enable/disable logging - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • SetUnitsForNumericPropertyDefinition

        @ThingworxExtensionApiMethod(since={8,5})
        public void SetUnitsForNumericPropertyDefinition(java.lang.String propertyName,
                                                                                                   java.lang.String units)
                                                                                            throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Set the additional information for units for a specific Long, Integer, or Number property.
        Parameters:
        propertyName - Property name - STRING
        units - Units (eg. lbs, F, inches, etc.) associated with input. For information only. - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • GetEffectivePropertyLogging

        @ThingworxExtensionApiMethod(since={7,2,2})
        public java.lang.Boolean GetEffectivePropertyLogging(java.lang.String propertyName)
                                                                                                  throws InvalidRequestException
        Service Category:
        DataLogging
        Service Description:
        Get the logging status of a specific property from the effective Thing shape.
        Parameters:
        propertyName - Property name to look up on the effective shape for its logging status - STRING
        Returns:
        status Effective property logging status - BOOLEAN
        Throws:
        InvalidRequestException - If an error occurs
      • AddPropertyDefinition

        @ThingworxExtensionApiMethod(since={6,6},
                                     deprecatedSince={8,0})
         @Deprecated
        public void AddPropertyDefinition(java.lang.String name,
                                                                                                                                                     java.lang.String description,
                                                                                                                                                     java.lang.String type,
                                                                                                                                                     java.lang.String category,
                                                                                                                                                     java.lang.String dataShape,
                                                                                                                                                     java.lang.Boolean readOnly,
                                                                                                                                                     java.lang.Boolean persistent,
                                                                                                                                                     java.lang.Boolean logged,
                                                                                                                                                     java.lang.String dataChangeType,
                                                                                                                                                     java.lang.Double dataChangeThreshold,
                                                                                                                                                     java.lang.Boolean remote,
                                                                                                                                                     java.lang.String remotePropertyName,
                                                                                                                                                     java.lang.Integer timeout,
                                                                                                                                                     java.lang.String pushType,
                                                                                                                                                     java.lang.Double pushThreshold,
                                                                                                                                                     java.lang.String defaultValue)
                                                                                                                                              throws java.lang.Exception
        Deprecated. As of release 8.0, replaced by AddPropertyDefinition(String, String, String, String, String, Boolean, Boolean, Boolean, String, Double, Boolean, String, Integer, String, Double, String, JSONObject)
        Throws:
        java.lang.Exception - If an error occurs

      • AddPropertyDefinition

        @ThingworxExtensionApiMethod(since={8,0})
        public void AddPropertyDefinition(java.lang.String name,
                                                                                    java.lang.String description,
                                                                                    java.lang.String type,
                                                                                    java.lang.String category,
                                                                                    java.lang.String dataShape,
                                                                                    java.lang.Boolean readOnly,
                                                                                    java.lang.Boolean persistent,
                                                                                    java.lang.Boolean logged,
                                                                                    java.lang.String dataChangeType,
                                                                                    java.lang.Double dataChangeThreshold,
                                                                                    java.lang.Boolean remote,
                                                                                    java.lang.String remotePropertyName,
                                                                                    java.lang.Integer timeout,
                                                                                    java.lang.String pushType,
                                                                                    java.lang.Double pushThreshold,
                                                                                    java.lang.String defaultValue,
                                                                                    org.json.JSONObject remoteBindingAspects)
                                                                             throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Add a property definition.
        Parameters:
        name - Property name - STRING
        description - Property description - STRING
        type - Data type - BASETYPENAME
        category - Category - STRING
        dataShape - Data shape - DATASHAPENAME
        readOnly - Read only - BOOLEAN
        persistent - Persist property value - BOOLEAN
        logged - Log property value - BOOLEAN
        dataChangeType - Data change type - STRING
        dataChangeThreshold - Data change threshold - NUMBER
        remote - Is a remote property - BOOLEAN
        remotePropertyName - Remote property name - STRING
        timeout - Request timeout - INTEGER
        pushType - Push type - STRING
        pushThreshold - Push threshold - NUMBER
        defaultValue - Default value for property - STRING
        remoteBindingAspects - Aspects for the remote binding - JSON
        Throws:
        java.lang.Exception - If an error occurs
      • AddPropertyTransformDefinition

        @ThingworxExtensionApiMethod(since={8,4})
        public void AddPropertyTransformDefinition(java.lang.String name,
                                                                                             java.lang.String description,
                                                                                             java.lang.String category,
                                                                                             java.lang.Boolean persistent,
                                                                                             java.lang.Boolean logged,
                                                                                             java.lang.Integer timeout,
                                                                                             InfoTable propertyTransformConfig)
                                                                                      throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Add a property transform definition.
        Parameters:
        name - - The name of your new derived property.
        description - - The description of the new property.
        category - - Category for the new property.
        persistent - - Should the value of this derived property be persisted between tomcat restarts?
        logged - - Should the value of this derived property be logged over time?
        timeout - - Timeout for creating the property.
        propertyTransformConfig - - A configuration infotable consisting of key/value pairs. Refer to the help center for possible keys.
        Throws:
        java.lang.Exception - If an error occurs

        Creates a derived property on this Thing. A derived property receives data from a specified source property, and performs some requested calculation on the stream of data as the source property changes. The type of calculation will determine which configuration keys/values need to be set on the derivedPropertyConfig.

        Note: In order to use the derived property functionality, you must have a RabbitMQ instance, Flink cluster, and "derived property configuration service" running on your machine, as well as the necessary configuration set inside your platform-settings.json file.

        For more information on running derived properties, please refer to the help center docs on derived properties.

      • AddPropertyDefinitions

        @ThingworxExtensionApiMethod(since={7,3})
        public InfoTable AddPropertyDefinitions(InfoTable values,
                                                                                          java.lang.Boolean ignoreInvalidDefinitions)
                                                                                   throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Add multiple property definitions at once.
        Parameters:
        values - Infotable where each row defines a property, using the PropertyDefinitionWithDetails data shape - INFOTABLE
        ignoreInvalidDefinitions - True will skip over any invalid definitions provided, false indicates to fail the whole transaction when at least one invalid definition is found - BOOLEAN
        Returns:
        status Table of information about which properties caused errors while attempting to add - INFOTABLE - Aspects {dataShape:BulkProcessingReport}
        Throws:
        java.lang.Exception - If an error occurs
      • AddServiceDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddServiceDefinition(java.lang.String name,
                                                                                   java.lang.String description,
                                                                                   java.lang.String category,
                                                                                   InfoTable parameters,
                                                                                   InfoTable resultType,
                                                                                   java.lang.Boolean remote,
                                                                                   java.lang.String remoteServiceName,
                                                                                   java.lang.Integer timeout)
                                                                            throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Add or update a service definition.
        Parameters:
        name - Property name - STRING
        description - Property description - STRING
        category - Category - STRING
        parameters - Service parameters - INFOTABLE
        resultType - Service result type - INFOTABLE
        remote - Is a remote service - BOOLEAN
        remoteServiceName - Remote service name - STRING
        timeout - Request timeout - INTEGER
        Throws:
        java.lang.Exception - If an error occurs
      • AddEventDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddEventDefinition(java.lang.String name,
                                                                                 java.lang.String description,
                                                                                 java.lang.String category,
                                                                                 java.lang.String dataShape,
                                                                                 java.lang.Boolean remote,
                                                                                 java.lang.String remoteEventName)
                                                                          throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Add or update an event definition.
        Parameters:
        name - Property name - STRING
        description - Property description - STRING
        category - Category - STRING
        dataShape - Data shape - DATASHAPENAME
        remote - Is a remote service - BOOLEAN
        remoteEventName - Remote event name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • DisableSubscription

        @ThingworxExtensionApiMethod(since={6,6})
        public void DisableSubscription(java.lang.String thingName,
                                                                                  java.lang.String eventName,
                                                                                  java.lang.String propertyName)
                                                                           throws java.lang.Exception
        Service Category:
        Subscriptions
        Service Description:
        Disable Subscription.
        Parameters:
        thingName - Thing name - THINGNAME
        eventName - Event name - STRING
        propertyName - Property name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • EnableSubscription

        @ThingworxExtensionApiMethod(since={6,6})
        public void EnableSubscription(java.lang.String thingName,
                                                                                 java.lang.String eventName,
                                                                                 java.lang.String propertyName)
                                                                          throws java.lang.Exception
        Service Category:
        Subscriptions
        Service Description:
        Enable Subscription.
        Parameters:
        thingName - Thing name - THINGNAME
        eventName - Event name - STRING
        propertyName - Property name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • RemovePropertyDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public void RemovePropertyDefinition(java.lang.String name)
                                                                                throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Remove a property definition.
        Parameters:
        name - Property name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • RemoveServiceDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public void RemoveServiceDefinition(java.lang.String name)
                                                                               throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Remove a service definition.
        Parameters:
        name - Service name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • RemoveEventDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public void RemoveEventDefinition(java.lang.String name)
                                                                             throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Remove a event definition.
        Parameters:
        name - Event name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • AddOrUpdateAlert

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddOrUpdateAlert(java.lang.String property,
                                                                               java.lang.String alertType,
                                                                               java.lang.String alertName,
                                                                               java.lang.String description,
                                                                               java.lang.Boolean enabled,
                                                                               java.lang.Integer priority,
                                                                               InfoTable attributes,
                                                                               java.lang.Boolean persistent)
                                                                        throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Add or update an alert for a property.
        Parameters:
        property - Property name - STRING
        alertType - Alert type - STRING
        alertName - Alert name - STRING
        description - Alert description - STRING
        enabled - Alert enabled - BOOLEAN
        priority - Alert priority - INTEGER
        attributes - Alert attributes - INFOTABLE
        persistent - Persist this change - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • RemoveAlert

        @ThingworxExtensionApiMethod(since={6,6})
        public void RemoveAlert(java.lang.String property,
                                                                          java.lang.String alertName,
                                                                          java.lang.Boolean persistent)
                                                                   throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Remove an alert for a property.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        persistent - Persist this change - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • GetLocalAlertDefinitions

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetLocalAlertDefinitions(java.lang.String property)
                                                                                     throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get local alert definitions for a property.
        Parameters:
        property - Property name - STRING
        Returns:
        AlertDefinitions Alert definition - INFOTABLE - Aspects {dataShape:AlertDefinition}
        Throws:
        java.lang.Exception - If an error occurs
      • GetAlertDefinitions

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetAlertDefinitions(java.lang.String property)
                                                                                throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get effective alert definitions for a property.
        Parameters:
        property - Property name - STRING
        Returns:
        AlertDefinitions Alert definition - INFOTABLE - Aspects {dataShape:AlertDefinition}
        Throws:
        java.lang.Exception - If an error occurs
      • GetAlertDefinition

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetAlertDefinition(java.lang.String property,
                                                                                      java.lang.String alertName)
                                                                               throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get alert definition for a property.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        Returns:
        AlertDefinitions Alert definition - INFOTABLE - Aspects {dataShape:AlertDefinition}
        Throws:
        java.lang.Exception - If an error occurs
      • HasAlert

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Boolean HasAlert(java.lang.String property,
                                                                                    java.lang.String alertName)
                                                                             throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Check to see if an alert is defined for a property.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        Returns:
        result Has alert definition - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • SetNumberAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetNumberAlertParameter(java.lang.String property,
                                                                                      java.lang.String alertName,
                                                                                      java.lang.String parameterName,
                                                                                      java.lang.Double value,
                                                                                      java.lang.Boolean persistent)
                                                                               throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Set a numeric alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        value - Parameter value - NUMBER
        persistent - Make it persistent - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • GetNumberAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Double GetNumberAlertParameter(java.lang.String property,
                                                                                                  java.lang.String alertName,
                                                                                                  java.lang.String parameterName)
                                                                                           throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get a numeric alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        Returns:
        value Alert parameter value - NUMBER
        Throws:
        java.lang.Exception - If an error occurs
      • SetIntegerAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetIntegerAlertParameter(java.lang.String property,
                                                                                       java.lang.String alertName,
                                                                                       java.lang.String parameterName,
                                                                                       java.lang.Integer value,
                                                                                       java.lang.Boolean persistent)
                                                                                throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Set a numeric alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        value - Parameter value - INTEGER
        persistent - Make it persistent - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • GetIntegerAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Integer GetIntegerAlertParameter(java.lang.String property,
                                                                                                    java.lang.String alertName,
                                                                                                    java.lang.String parameterName)
                                                                                             throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get a numeric alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        Returns:
        value Alert parameter value - INTEGER
        Throws:
        java.lang.Exception - If an error occurs
      • GetLongAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Long GetLongAlertParameter(java.lang.String property,
                                                                                              java.lang.String alertName,
                                                                                              java.lang.String parameterName)
                                                                                       throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get a long alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        Returns:
        value Alert parameter value - LONG
        Throws:
        java.lang.Exception - If an error occurs
      • SetBooleanAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetBooleanAlertParameter(java.lang.String property,
                                                                                       java.lang.String alertName,
                                                                                       java.lang.String parameterName,
                                                                                       java.lang.Boolean value,
                                                                                       java.lang.Boolean persistent)
                                                                                throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Set a boolean alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        value - Parameter value - BOOLEAN
        persistent - Make it persistent - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • GetBooleanAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Boolean GetBooleanAlertParameter(java.lang.String property,
                                                                                                    java.lang.String alertName,
                                                                                                    java.lang.String parameterName)
                                                                                             throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get a boolean alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        Returns:
        value Alert parameter value - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • SetDateTimeAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetDateTimeAlertParameter(java.lang.String property,
                                                                                        java.lang.String alertName,
                                                                                        java.lang.String parameterName,
                                                                                        org.joda.time.DateTime value,
                                                                                        java.lang.Boolean persistent)
                                                                                 throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Set a date alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        value - Parameter value - DATETIME
        persistent - Make it persistent - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • GetDateTimeAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public org.joda.time.DateTime GetDateTimeAlertParameter(java.lang.String property,
                                                                                                          java.lang.String alertName,
                                                                                                          java.lang.String parameterName)
                                                                                                   throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get a date alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        Returns:
        value Alert parameter value - DATETIME
        Throws:
        java.lang.Exception - If an error occurs
      • SetLocationAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetLocationAlertParameter(java.lang.String property,
                                                                                        java.lang.String alertName,
                                                                                        java.lang.String parameterName,
                                                                                        Location value,
                                                                                        java.lang.Boolean persistent)
                                                                                 throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Set a location alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        value - Parameter value - LOCATION
        persistent - Make it persistent - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • GetLocationAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public Location GetLocationAlertParameter(java.lang.String property,
                                                                                            java.lang.String alertName,
                                                                                            java.lang.String parameterName)
                                                                                     throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get a location alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        Returns:
        value Alert parameter value - LOCATION
        Throws:
        java.lang.Exception - If an error occurs
      • SetStringAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetStringAlertParameter(java.lang.String property,
                                                                                      java.lang.String alertName,
                                                                                      java.lang.String parameterName,
                                                                                      java.lang.String value,
                                                                                      java.lang.Boolean persistent)
                                                                               throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Set a string alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        value - Parameter value - STRING
        persistent - Make it persistent - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • GetStringAlertParameter

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.String GetStringAlertParameter(java.lang.String property,
                                                                                                  java.lang.String alertName,
                                                                                                  java.lang.String parameterName)
                                                                                           throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get a string alert parameter.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        parameterName - Parameter name - STRING
        Returns:
        value Alert parameter value - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • GetAlertStatus

        @ThingworxExtensionApiMethod(since={7,4})
        public java.lang.String GetAlertStatus(java.lang.String property,
                                                                                         java.lang.String alertName)
                                                                                  throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get the Status of the given Alert.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        Returns:
        result Status of Alert - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • GetAlertStatuses

        @ThingworxExtensionApiMethod(since={7,4})
        public InfoTable GetAlertStatuses()
                                                                             throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get the Statuses of the given Alerts.
        Returns:
        result Status of all Alerts on this Thing - INFOTABLE - Aspects {dataShape:AlertStatus}
        Throws:
        java.lang.Exception - If an error occurs
      • GetAlertStatusesForProperty

        @ThingworxExtensionApiMethod(since={7,4})
        public InfoTable GetAlertStatusesForProperty(java.lang.String property)
                                                                                        throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get the Statuses of the given Alerts.
        Parameters:
        property - Property name - STRING
        Returns:
        result Status of all Alerts on the Property - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • GetAnomalyAlertTrainingStatisticsForAlert

        @ThingworxExtensionApiMethod(since={8,0})
        public InfoTable GetAnomalyAlertTrainingStatisticsForAlert(java.lang.String property,
                                                                                                             java.lang.String alertName)
                                                                                                      throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get Training Statistics for given Alert.
        Parameters:
        property - Property name - STRING
        alertName - Alert name - STRING
        Returns:
        result Anomaly Alert Training Statistics for given Alert - INFOTABLE - Aspects {dataShape:AnomalyAlertTrainingStatistics}
        Throws:
        java.lang.Exception - If an error occurs
      • GetAllAnomalyAlertTrainingStatistics

        @ThingworxExtensionApiMethod(since={8,0})
        public InfoTable GetAllAnomalyAlertTrainingStatistics()
                                                                                                 throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get All AnomalyAlert Training Statistics on this Thing.
        Returns:
        result AnomalyAlert Training Statistics on this Thing - INFOTABLE - Aspects {dataShape:AnomalyAlertTrainingStatistics}
        Throws:
        java.lang.Exception - If an error occurs
      • GetAnomalyAlertTrainingStatisticsForProperty

        @ThingworxExtensionApiMethod(since={8,0})
        public InfoTable GetAnomalyAlertTrainingStatisticsForProperty(java.lang.String property)
                                                                                                         throws java.lang.Exception
        Service Category:
        Alerts
        Service Description:
        Get AnomalyAlert Training Statistics for given Property.
        Parameters:
        property - Property name - STRING
        Returns:
        result Training Statistics of all AnomalyAlerts on the Property - INFOTABLE - Aspects {dataShape:AnomalyAlertTrainingStatistics}
        Throws:
        java.lang.Exception - If an error occurs
      • AddDynamicSubscription

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddDynamicSubscription(java.lang.String thingName,
                                                                                     java.lang.String eventName,
                                                                                     java.lang.String propertyName,
                                                                                     java.lang.String serviceName)
                                                                              throws java.lang.Exception
        Service Category:
        Subscriptions
        Service Description:
        Add a dynamic subscription.
        Parameters:
        thingName - Thing name - THINGNAME
        eventName - Event name - STRING
        propertyName - Property name - STRING
        serviceName - Local service name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • IsDynamicSubscriptionCreated

        @ThingworxExtensionApiMethod(since={8,5})
        public boolean IsDynamicSubscriptionCreated(java.lang.String thingName,
                                                                                              java.lang.String eventName,
                                                                                              java.lang.String propertyName,
                                                                                              java.lang.String serviceName)
                                                                                       throws java.lang.Exception
        Service Category:
        Subscriptions
        Service Description:
        Returns true if given dynamic subscription is present.
        Parameters:
        thingName - Thing name - THINGNAME
        eventName - Event name - STRING
        propertyName - Property name - STRING
        serviceName - Local service name - STRING
        Returns:
        result True/false based on if given dynamic subscription exist or not - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • RemoveDynamicSubscription

        @ThingworxExtensionApiMethod(since={6,6})
        public void RemoveDynamicSubscription(java.lang.String thingName,
                                                                                        java.lang.String eventName,
                                                                                        java.lang.String propertyName,
                                                                                        java.lang.String serviceName)
                                                                                 throws java.lang.Exception
        Service Category:
        Subscriptions
        Service Description:
        Remove a dynamic subscription.
        Parameters:
        thingName - Thing name - THINGNAME
        eventName - Event name - STRING
        propertyName - Property name - STRING
        serviceName - Local service name - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • processServiceRequest

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true,
                                     requiresSuper=true)
        public InfoTable processServiceRequest(java.lang.String serviceName,
                                                                                                                                                                                         ValueCollection params)
                                                                                                                                                                                  throws java.lang.Exception
        Description copied from interface: IServiceProvider


        Processes an internal or reflected service request. Entities may call this method if they wish to invoke a service call directly on an entity. This method performs a service invoke authorization check against the current security context.

        Specified by:
        processServiceRequest in interface IServiceProvider
        Parameters:
        serviceName - - The name of the service to invoke
        params - - A collection of parameter mappings
        Returns:
        The results of the service invocation
        Throws:
        java.lang.Exception - If an error occurs

        If the security check fails, the service does not exist, or an error occurred during the execution of the service

        Subclasses of Thing may override this method if they want to add additional logic or validation around service calls.

      • processAPIServiceRequest

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true,
                                     requiresSuper=true)
        public InfoTable processAPIServiceRequest(java.lang.String serviceName,
                                                                                                                                                                                            ValueCollection params)
                                                                                                                                                                                     throws java.lang.Exception
        Description copied from interface: IServiceProvider


        Processes a service request invoked via the REST API. This method performs a service invoke authorization check against the current security context.

        Specified by:
        processAPIServiceRequest in interface IServiceProvider
        Parameters:
        serviceName - - The name of the service to invoke
        params - - A collection of parameter mappings
        Returns:
        The results of the service invocation
        Throws:
        java.lang.Exception - If an error occurs

        If the security check fails, the service does not exist, or an error occurred during the execution of the service

        Subclasses of Thing may override this method if they want to add additional logic or validation around service calls.

      • isAlwaysAvailableService

        @ThingworxExtensionApiMethod(since={6,6},
                                     canOverride=true,
                                     requiresSuper=true)
        public static boolean isAlwaysAvailableService(java.lang.String name)


        Returns true if the provided service name can always be invoked against the thing, regardless of its current state.

        Subclasses overriding this method must ensure that they preserve and return the result of this method if it returns true.

        Parameters:
        name - the name of the service to check
        Returns:
        true if the service can always be invoked
      • GetImplementedShapes

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetImplementedShapes()
                                                                                 throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Get the implemented thing shapes for this thing.
        Returns:
        result Implemented Shapes - INFOTABLE - Aspects {dataShape:EntityList}
        Throws:
        java.lang.Exception - If an error occurs
      • GetLocallyImplementedShapes

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetLocallyImplementedShapes()
                                                                                        throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Get the locally implemented thing shapes for this thing.
        Returns:
        result Implemented Shapes - INFOTABLE - Aspects {dataShape:EntityList}
        Throws:
        java.lang.Exception - If an error occurs
      • GetMashups

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetMashups()
                                                                       throws java.lang.Exception
        Service Category:
        Mashups
        Service Description:
        Get the mashups related to this thing.
        Returns:
        result Mashups - INFOTABLE - Aspects {dataShape:MashupList}
        Throws:
        java.lang.Exception - If an error occurs
      • GetThingTemplate

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetThingTemplate()
                                                                             throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Get the thing template for this thing.
        Returns:
        result Thing Template - INFOTABLE - Aspects {dataShape:EntityList}
        Throws:
        java.lang.Exception - If an error occurs
      • ImplementsShape

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Boolean ImplementsShape(java.lang.String thingShapeName)
                                                                                    throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Check to see if a thing implements a particular thing shape.
        Parameters:
        thingShapeName - Thing shape name - THINGSHAPENAME
        Returns:
        result Implements Shape - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • IsDerivedFromTemplate

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Boolean IsDerivedFromTemplate(java.lang.String thingTemplateName)
                                                                                          throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Check to see if a thing is derived from a particular thing template.
        Parameters:
        thingTemplateName - Thing template name - THINGTEMPLATENAME
        Returns:
        result Is Derived From Template - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • SetPublished

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetPublished(java.lang.Boolean publish)
                                                                    throws java.lang.Exception
        Service Category:
        Federation
        Service Description:
        Set this as a published thing for federation.
        Parameters:
        publish - Publish status (true/false) - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • GetPublished

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Boolean GetPublished()
                                                                                 throws java.lang.Exception
        Service Category:
        Federation
        Service Description:
        Get published thing for federation.
        Returns:
        result Publishing status for this thing - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • SetDescription

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetDescription(java.lang.String description)
                                                                      throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Overwrite/set the description for an entity.
        Overrides:
        SetDescription in class RootEntity
        Parameters:
        description - Description for an entity - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • SetTags

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetTags(TagCollection tags)
                                                               throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Overwrite/set the tags for an entity.
        Overrides:
        SetTags in class RootEntity
        Parameters:
        tags - Tags for an entity - TAGS
        Throws:
        java.lang.Exception - If an error occurs
      • AddTags

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddTags(TagCollection tags)
                                                               throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Append additional tags to an entity.
        Overrides:
        AddTags in class RootEntity
        Parameters:
        tags - Tags for an entity - TAGS
        Throws:
        java.lang.Exception - If an error occurs
      • GetThingRelationships

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetThingRelationships(java.lang.Integer maxDepth)
                                                                                  throws java.lang.Exception
        Service Category:
        Relationships
        Service Description:
        Return a list of all the things referenced by this thing.
        Parameters:
        maxDepth - Maximum depth to search - INTEGER
        Returns:
        result Thing connections - INFOTABLE - Aspects {dataShape:ThingRelationship}
        Throws:
        java.lang.Exception - If an error occurs
      • GetNetworks

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetNetworks()
                                                                        throws java.lang.Exception
        Service Category:
        Networks
        Service Description:
        Get the networks associated with a thing.
        Returns:
        networks Networks - INFOTABLE - Aspects {dataShape:EntityList}
        Throws:
        java.lang.Exception - If an error occurs
      • IsInNetwork

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Boolean IsInNetwork(java.lang.String network)
                                                                                throws java.lang.Exception
        Service Category:
        Networks
        Service Description:
        Check to see if a thing is in a specific network.
        Parameters:
        network - Network name - STRING
        Returns:
        result Result - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • HavePropertiesChangedSince

        @ThingworxExtensionApiMethod(since={6,6})
        public java.lang.Boolean HavePropertiesChangedSince(org.joda.time.DateTime timestamp)
                                                                                               throws java.lang.Exception
        Service Category:
        Properties
        Service Description:
        Has any property changed since a given time.
        Parameters:
        timestamp - Timestamp to compare - DATETIME
        Returns:
        result Result - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • PurgePropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public void PurgePropertyHistory(java.lang.String propertyName,
                                                                                   org.joda.time.DateTime startDate,
                                                                                   org.joda.time.DateTime endDate,
                                                                                   java.lang.Boolean immediate)
                                                                            throws java.lang.Exception
        Service Category:
        Maintenance
        Service Description:
        Purge stream entries for a specified date range.
        Parameters:
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        immediate - Delete immediately - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • PurgeAllPropertyHistory

        @ThingworxExtensionApiMethod(since={7,2})
        public void PurgeAllPropertyHistory(org.joda.time.DateTime startDate,
                                                                                      org.joda.time.DateTime endDate)
                                                                               throws java.lang.Exception
        Service Category:
        Maintenance
        Service Description:
        Purge all value stream entries for a specified date range.
        Parameters:
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        Throws:
        java.lang.Exception - If an error occurs
      • PurgeSelectedPropertyHistory

        @ThingworxExtensionApiMethod(since={7,2})
        public void PurgeSelectedPropertyHistory(org.joda.time.DateTime startDate,
                                                                                           org.joda.time.DateTime endDate,
                                                                                           InfoTable propertiesToPurge)
                                                                                    throws java.lang.Exception
        Service Category:
        Maintenance
        Service Description:
        Purge all value stream entries for a specified date range for a given list of properties.
        Parameters:
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        propertiesToPurge - Properties to purge - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • QueryPropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryPropertyHistory(java.lang.Double maxItems,
                                                                                        org.joda.time.DateTime startDate,
                                                                                        org.joda.time.DateTime endDate,
                                                                                        java.lang.Boolean oldestFirst,
                                                                                        org.json.JSONObject query)
                                                                                 throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries (without data), along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs

        Additional Information

        Queries the value stream for each property (must be a logged property) value of the given source thing in a given time range. Calls ValueStream.queryValueStreamEntries for each property, then munges the values together in a result set.

        QueryPropertyHistory returns a data set created by querying each logged property on a thing and then combining the individual datasets into one big data set. A "row" is created for each time stamp in the individual data sets. If there is a logged value with that time stamp, it is entered in the row of the data set. If there is no logged value, the last logged value for that property is used. If there is no logged property; the entry is left blank. This combiner process removes duplicates for a given property based on timestamp.

        To obtain the actual logged values for a given property, you must use the QuerydatatypePropertyHistory services (for example, QueryIntegerPropertyHistory). You can confirm that data is actually purged with these services.

      • QueryNamedPropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryNamedPropertyHistory(InfoTable propertyNames,
                                                                                             java.lang.Double maxItems,
                                                                                             org.joda.time.DateTime startDate,
                                                                                             org.joda.time.DateTime endDate,
                                                                                             java.lang.Boolean oldestFirst,
                                                                                             org.json.JSONObject query)
                                                                                      throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries (without data), along with filter and sort criteria.
        Parameters:
        propertyNames - Property names - INFOTABLE
        maxItems - Maximum number of items to return - NUMBER
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • QueryIntegerPropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryIntegerPropertyHistory(java.lang.Double maxItems,
                                                                                               java.lang.String propertyName,
                                                                                               org.joda.time.DateTime startDate,
                                                                                               org.joda.time.DateTime endDate,
                                                                                               java.lang.Boolean oldestFirst,
                                                                                               org.json.JSONObject query)
                                                                                        throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:IntegerValueStream}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryLongPropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryLongPropertyHistory(java.lang.Double maxItems,
                                                                                            java.lang.String propertyName,
                                                                                            org.joda.time.DateTime startDate,
                                                                                            org.joda.time.DateTime endDate,
                                                                                            java.lang.Boolean oldestFirst,
                                                                                            org.json.JSONObject query)
                                                                                     throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:LongValueStream}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryNumberPropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryNumberPropertyHistory(java.lang.Double maxItems,
                                                                                              java.lang.String propertyName,
                                                                                              org.joda.time.DateTime startDate,
                                                                                              org.joda.time.DateTime endDate,
                                                                                              java.lang.Boolean oldestFirst,
                                                                                              org.json.JSONObject query)
                                                                                       throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:NumberValueStream}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryBooleanPropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryBooleanPropertyHistory(java.lang.Double maxItems,
                                                                                               java.lang.String propertyName,
                                                                                               org.joda.time.DateTime startDate,
                                                                                               org.joda.time.DateTime endDate,
                                                                                               java.lang.Boolean oldestFirst,
                                                                                               org.json.JSONObject query)
                                                                                        throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:BooleanValueStream}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryDateTimePropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryDateTimePropertyHistory(java.lang.Double maxItems,
                                                                                                java.lang.String propertyName,
                                                                                                org.joda.time.DateTime startDate,
                                                                                                org.joda.time.DateTime endDate,
                                                                                                java.lang.Boolean oldestFirst,
                                                                                                org.json.JSONObject query)
                                                                                         throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:DateTimeValueStream}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryInfoTablePropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryInfoTablePropertyHistory(java.lang.Double maxItems,
                                                                                                 java.lang.String propertyName,
                                                                                                 org.joda.time.DateTime startDate,
                                                                                                 org.joda.time.DateTime endDate,
                                                                                                 java.lang.Boolean oldestFirst,
                                                                                                 org.json.JSONObject query,
                                                                                                 java.lang.Boolean flatten)
                                                                                          throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        flatten - Flatten the result - BOOLEAN
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:InfoTableValueStream}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryLocationPropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryLocationPropertyHistory(java.lang.Double maxItems,
                                                                                                java.lang.String propertyName,
                                                                                                org.joda.time.DateTime startDate,
                                                                                                org.joda.time.DateTime endDate,
                                                                                                java.lang.Boolean oldestFirst,
                                                                                                org.json.JSONObject query)
                                                                                         throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:LocationValueStream}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryStringPropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryStringPropertyHistory(java.lang.Double maxItems,
                                                                                              java.lang.String propertyName,
                                                                                              org.joda.time.DateTime startDate,
                                                                                              org.joda.time.DateTime endDate,
                                                                                              java.lang.Boolean oldestFirst,
                                                                                              org.json.JSONObject query)
                                                                                       throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:StringValueStream}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryVec2PropertyHistory

        @ThingworxExtensionApiMethod(since={7,1})
        public InfoTable QueryVec2PropertyHistory(java.lang.Double maxItems,
                                                                                            java.lang.String propertyName,
                                                                                            org.joda.time.DateTime startDate,
                                                                                            org.joda.time.DateTime endDate,
                                                                                            java.lang.Boolean oldestFirst,
                                                                                            org.json.JSONObject query)
                                                                                     throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:Vec2DataShape}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryVec3PropertyHistory

        @ThingworxExtensionApiMethod(since={7,1})
        public InfoTable QueryVec3PropertyHistory(java.lang.Double maxItems,
                                                                                            java.lang.String propertyName,
                                                                                            org.joda.time.DateTime startDate,
                                                                                            org.joda.time.DateTime endDate,
                                                                                            java.lang.Boolean oldestFirst,
                                                                                            org.json.JSONObject query)
                                                                                     throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:Vec3DataShape}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryVec4PropertyHistory

        @ThingworxExtensionApiMethod(since={7,1})
        public InfoTable QueryVec4PropertyHistory(java.lang.Double maxItems,
                                                                                            java.lang.String propertyName,
                                                                                            org.joda.time.DateTime startDate,
                                                                                            org.joda.time.DateTime endDate,
                                                                                            java.lang.Boolean oldestFirst,
                                                                                            org.json.JSONObject query)
                                                                                     throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:Vec4DataShape}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryThingCodePropertyHistory

        @ThingworxExtensionApiMethod(since={7,1})
        public InfoTable QueryThingCodePropertyHistory(java.lang.Double maxItems,
                                                                                                 java.lang.String propertyName,
                                                                                                 org.joda.time.DateTime startDate,
                                                                                                 org.joda.time.DateTime endDate,
                                                                                                 java.lang.Boolean oldestFirst,
                                                                                                 org.json.JSONObject query)
                                                                                          throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:ThingCodeDataShape}
        Throws:
        java.lang.Exception - If an error occurs
      • QueryImagePropertyHistory

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryImagePropertyHistory(java.lang.Double maxItems,
                                                                                             java.lang.String propertyName,
                                                                                             org.joda.time.DateTime startDate,
                                                                                             org.joda.time.DateTime endDate,
                                                                                             java.lang.Boolean oldestFirst,
                                                                                             org.json.JSONObject query)
                                                                                      throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Query stream entries, along with filter and sort criteria.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        propertyName - Property name - STRING
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        query - Query definition - QUERY
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:ImageValueStream}
        Throws:
        java.lang.Exception - If an error occurs
      • WritePropertiesToStream

        @ThingworxExtensionApiMethod(since={6,6})
        public void WritePropertiesToStream(java.lang.String name,
                                                                                      TagCollection tags)
                                                                               throws java.lang.Exception
        Service Category:
        Data
        Service Description:
        Store properties of this thing to a stream.
        Parameters:
        name - Stream name - THINGNAME
        tags - Tags - TAGS
        Throws:
        java.lang.Exception - If an error occurs
      • GetThingSummaryInformation

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable GetThingSummaryInformation()
                                                                                       throws java.lang.Exception
        Service Category:
        Metadata
        Service Description:
        Get thing summary information.
        Returns:
        Summary Thing summary information - INFOTABLE - Aspects {dataShape:Thing}
        Throws:
        java.lang.Exception - If an error occurs
      • AddIntegerValueStreamEntry

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddIntegerValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                         java.lang.String propertyName,
                                                                                         java.lang.Integer value)
                                                                                  throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - INTEGER
        Throws:
        java.lang.Exception - If an error occurs
      • AddLongValueStreamEntry

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddLongValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                      java.lang.String propertyName,
                                                                                      java.lang.Long value)
                                                                               throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - LONG
        Throws:
        java.lang.Exception - If an error occurs
      • AddNumberValueStreamEntry

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddNumberValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                        java.lang.String propertyName,
                                                                                        java.lang.Double value)
                                                                                 throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - NUMBER
        Throws:
        java.lang.Exception - If an error occurs
      • AddBooleanValueStreamEntry

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddBooleanValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                         java.lang.String propertyName,
                                                                                         java.lang.Boolean value)
                                                                                  throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - BOOLEAN
        Throws:
        java.lang.Exception - If an error occurs
      • AddLocationValueStreamEntry

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddLocationValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                          java.lang.String propertyName,
                                                                                          Location value)
                                                                                   throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - LOCATION
        Throws:
        java.lang.Exception - If an error occurs
      • AddVec2ValueStreamEntry

        @ThingworxExtensionApiMethod(since={7,1})
        public void AddVec2ValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                      java.lang.String propertyName,
                                                                                      Vec2 value)
                                                                               throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - VEC2
        Throws:
        java.lang.Exception - If an error occurs
      • AddVec3ValueStreamEntry

        @ThingworxExtensionApiMethod(since={7,1})
        public void AddVec3ValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                      java.lang.String propertyName,
                                                                                      Vec3 value)
                                                                               throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - VEC3
        Throws:
        java.lang.Exception - If an error occurs
      • AddVec4ValueStreamEntry

        @ThingworxExtensionApiMethod(since={7,1})
        public void AddVec4ValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                      java.lang.String propertyName,
                                                                                      Vec4 value)
                                                                               throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - VEC4
        Throws:
        java.lang.Exception - If an error occurs
      • AddThingCodeValueStreamEntry

        @ThingworxExtensionApiMethod(since={7,1})
        public void AddThingCodeValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                           java.lang.String propertyName,
                                                                                           ThingCode value)
                                                                                    throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - THINGCODE
        Throws:
        java.lang.Exception - If an error occurs
      • AddStringValueStreamEntry

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddStringValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                        java.lang.String propertyName,
                                                                                        java.lang.String value)
                                                                                 throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - STRING
        Throws:
        java.lang.Exception - If an error occurs
      • AddInfoTableValueStreamEntry

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddInfoTableValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                           java.lang.String propertyName,
                                                                                           InfoTable value)
                                                                                    throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - INFOTABLE
        Throws:
        java.lang.Exception - If an error occurs
      • AddImageValueStreamEntry

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddImageValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                       java.lang.String propertyName,
                                                                                       byte[] value)
                                                                                throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - IMAGE
        Throws:
        java.lang.Exception - If an error occurs
      • AddDateTimeValueStreamEntry

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddDateTimeValueStreamEntry(org.joda.time.DateTime timestamp,
                                                                                          java.lang.String propertyName,
                                                                                          org.joda.time.DateTime value)
                                                                                   throws java.lang.Exception
        Service Category:
        StreamEntries
        Service Description:
        Add a new stream entry.
        Parameters:
        timestamp - Event time (optional) - DATETIME
        propertyName - Property name - STRING
        value - Data value - DATETIME
        Throws:
        java.lang.Exception - If an error occurs
      • checkValueStream

        @ThingworxExtensionApiMethod(since={6,6})
        protected void checkValueStream()
                                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • checkPropertyName

        @ThingworxExtensionApiMethod(since={6,6})
        protected void checkPropertyName(java.lang.String propertyName)
                                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs