Class ThingShape
- All Implemented Interfaces:
ISupportsAccessModifier
,IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAlertProvider
,IAvatar
,IEntityLifeCycleEvent
,IEventMetadataProvider
,IPersistable
,IServiceMetadataProvider
,IServiceProvider
,IShapeProvider
,ITaggableObject
,IDependencyScannableObject
,IHierarchicalEntity
,IImplementableEntity
,IEntityDefinition
,IPersistableObject<String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IInstanceRunTimeSecurable
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,Serializable
- See Also:
-
Field Summary
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECT
Fields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
AddEventDefinition
(String name, String description, String category, String dataShape, Boolean remote, String remoteEventName) Service Category: Metadata Service Description: Add or update an event definition.void
addInstanceRunTimePermission
(PermissionTypes permissionType, String resourceName, Permission permission) void
AddInstanceRunTimePermission
(String type, String resource, String principal, String principalType, Boolean allow) Service Category: Permissions Service Description: Add an instance run time permission.void
AddOrUpdateAlert
(String property, String alertType, String alertName, String description, Boolean enabled, Integer priority, InfoTable attributes, Boolean persistent) Service Category: Alerts Service Description: Add or update an alert for a property.void
AddPropertyDefinition
(String name, String description, String type, String category, String dataShape, Boolean readOnly, Boolean persistent, Boolean logged, Boolean indexed, String dataChangeType, Double dataChangeThreshold, Boolean remote, String remotePropertyName, Integer timeout, String pushType, Double pushThreshold, String defaultValue, org.json.JSONObject remoteBindingAspects) Deprecated.void
AddPropertyDefinition
(String name, String description, String type, String category, String dataShape, Boolean readOnly, Boolean persistent, Boolean logged, Boolean indexed, String dataChangeType, Double dataChangeThreshold, Boolean remote, String remotePropertyName, Integer timeout, String pushType, Double pushThreshold, String defaultValue, org.json.JSONObject remoteBindingAspects, org.json.JSONObject accessModifier) Service Category: Metadata Service Description: Add a property definition.void
AddPropertyDefinition
(String name, String description, String type, String category, String dataShape, Boolean readOnly, Boolean persistent, Boolean logged, String dataChangeType, Double dataChangeThreshold, Boolean remote, String remotePropertyName, Integer timeout, String pushType, Double pushThreshold, String defaultValue) 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)void
AddPropertyDefinition
(String name, String description, String type, String category, String dataShape, Boolean readOnly, Boolean persistent, Boolean logged, String dataChangeType, Double dataChangeThreshold, Boolean remote, String remotePropertyName, Integer timeout, String pushType, Double pushThreshold, String defaultValue, org.json.JSONObject remoteBindingAspects) Deprecated.void
AddPropertyTransformDefinition
(String name, String description, String category, Boolean persistent, Boolean logged, Integer timeout, InfoTable propertyTransformConfig) Service Category: Metadata Service Description: Add a property transform definition.void
AddServiceDefinition
(String name, String description, String category, InfoTable parameters, InfoTable resultType, Boolean remote, String remoteServiceName, Integer timeout) Deprecated.void
AddServiceDefinition
(String name, String description, String category, InfoTable parameters, InfoTable resultType, Boolean remote, String remoteServiceName, Integer timeout, org.json.JSONObject accessModifier) Service Category: Metadata Service Description: Add or update a service definition.void
deleteInstanceRunTimePermission
(PermissionTypes permissionType, String resourceName, Permission permission) void
DeleteInstanceRunTimePermission
(String type, String resource, String principal, String principalType) Service Category: Permissions Service Description: Delete an instance run time permission.void
DisableSubscription
(String subscriptionName) Service Category: Subscriptions Service Description: Disable Subscription.void
DisableSubscription
(String thingName, String eventName, String propertyName) Deprecated.void
EnableSubscription
(String subscriptionName) Service Category: Subscriptions Service Description: Enable Subscription.void
EnableSubscription
(String thingName, String eventName, String propertyName) Deprecated.GetAlertDefinition
(String property, String alertName) Service Category: Alerts Service Description: Get alert definition for a property.GetAlertDefinitions
(String property) Service Category: Alerts Service Description: Get effective alert definitions for a property.GetBooleanAlertParameter
(String property, String alertName, String parameterName) Service Category: Alerts Service Description: Get a boolean alert parameter.org.joda.time.DateTime
GetDateTimeAlertParameter
(String property, String alertName, String parameterName) Service Category: Alerts Service Description: Get a date alert parameter.getEffectiveEventDefinition
(String eventName) GetEffectiveLocalPropertyBinding
(String propertyName) Service Category: Bindings Service Description: Get the effective local property binding for a property.
Get the effective (inherited and local) property binding for a propertyService Category: Bindings Service Description: Get the effective local property bindings.
Get all effective (inherited and local) property bindings for this thinggetEffectivePropertyDefinition
(String propertyName) getEffectiveServiceDefinition
(String eventName) Service Category: Queries Service Description: Return a list of all the things that implement this shape.Service Category: Queries Service Description: Return a list of all the things that implement this shape along with the thing properties and values.Service Category: Metadata Service Description: Get the current event definitions for this thing.Service Category: Metadata Service Description: Get the current property definitions for this thing.Service Category: Permissions Service Description: Get a list of assigned instance runtime permissions.org.json.JSONObject
Service Category: Permissions Service Description: Get a list of assigned runtime permissions.Service Category: Metadata Service Description: Get the current service definitions for this thing.GetIntegerAlertParameter
(String property, String alertName, String parameterName) Service Category: Alerts Service Description: Get a numeric alert parameter.GetLocalAlertDefinitions
(String property) Service Category: Alerts Service Description: Get local alert definitions for a property.GetLocalPropertyBinding
(String propertyName) Service Category: Bindings Service Description: Get the property binding for a property.GetLocationAlertParameter
(String property, String alertName, String parameterName) Service Category: Alerts Service Description: Get a location alert parameter.GetLoggedProperties
(String type) Service Category: Metadata Service Description: Get a list of logged properties for this thing.GetLongAlertParameter
(String property, String alertName, String parameterName) Service Category: Alerts Service Description: Get a numeric alert parameter.GetNumberAlertParameter
(String property, String alertName, String parameterName) Service Category: Alerts Service Description: Get a numeric alert parameter.Service Category: Metadata Service Description: Get a list of logged properties for this thing that are of a numeric data type.GetPropertyLogging
(String propertyName) Service Category: DataLogging Service Description: Get property logging status for a specific property.GetRemoteEventBinding
(String eventName) Service Category: Bindings Service Description: Get the remote event binding for a event.GetRemotePropertyBinding
(String propertyName) Service Category: Bindings Service Description: Get the remote property binding for a property.GetRemoteServiceBinding
(String serviceName) Service Category: Bindings Service Description: Get the remote service binding for a service.Service Category: Alerts Service Description: Check to see if an alert is defined for a property.void
QueryImplementingThings
(Double maxItems, TagCollection tags, String nameMask, org.json.JSONObject query) Service Category: Queries Service Description: Return a list of all the things that implement this shape.QueryImplementingThingsOptimized
(Double maxItems, TagCollection tags, String nameMask, org.json.JSONObject query, Boolean withPermissions, InfoTable basicPropertyNames, InfoTable propertyNames, String networkName, String networkParentNode, Integer networkMaxDepth, Double offset) Service Category: Queries Service Description: Return a list of all the things that implement this shape.QueryImplementingThingsOptimizedWithTotalCount
(Double maxItems, TagCollection tags, String nameMask, org.json.JSONObject query, Boolean withPermissions, InfoTable basicPropertyNames, InfoTable propertyNames, String networkName, String networkParentNode, Integer networkMaxDepth, Double offset) Service Category: Queries Service Description: Return a list of all the things that implement this shape.QueryImplementingThingsWithData
(Double maxItems, TagCollection tags, String nameMask, org.json.JSONObject query) Service Category: Queries Service Description: Return a list of all the things that implement this shape along with the thing properties and values.QueryImplementingThingsWithNamedData
(Double maxItems, TagCollection tags, String nameMask, org.json.JSONObject query, InfoTable basicPropertyNames, InfoTable propertyNames) Service Category: Queries Service Description: Returns a list containing the specific properties and values of all the Things that Implement this Shape.void
RemoveAlert
(String property, String alertName, Boolean persistent) Service Category: Alerts Service Description: Remove an alert for a property.void
RemoveEventDefinition
(String name) Service Category: Metadata Service Description: Remove a event definition.void
RemoveLocalPropertyBinding
(String propertyName) Service Category: Bindings Service Description: Remove the local property binding for a property.void
Service Category: Metadata Service Description: Remove a property definition.void
RemoveRemoteEventBinding
(String eventName) Service Category: Bindings Service Description: Remove the remote event binding for a event.void
RemoveRemotePropertyBinding
(String propertyName) Service Category: Bindings Service Description: Remove the remote property binding for a property.void
RemoveRemoteServiceBinding
(String serviceName) Service Category: Bindings Service Description: Remove the remote service binding for a service.void
Service Category: Metadata Service Description: Remove a service definition.void
SetBooleanAlertParameter
(String property, String alertName, String parameterName, Boolean value, Boolean persistent) Service Category: Alerts Service Description: Set a boolean alert parameter.void
SetDateTimeAlertParameter
(String property, String alertName, String parameterName, org.joda.time.DateTime value, Boolean persistent) Service Category: Alerts Service Description: Set a date alert parameter.void
void
SetInstanceRunTimePermissionsAsJSON
(org.json.JSONObject permissions) Service Category: Permissions Service Description: Set a list of assigned runtime permissions.void
SetIntegerAlertParameter
(String property, String alertName, String parameterName, Integer value, Boolean persistent) Service Category: Alerts Service Description: Set a numeric alert parameter.void
SetLocalPropertyBinding
(String propertyName, String sourceThingName, String sourcePropertyName) Deprecated.As of release 8.1.0, replaced bySetLocalPropertyBinding(String, String, String, JSONObject)
void
SetLocalPropertyBinding
(String propertyName, String sourceThingName, String sourcePropertyName, org.json.JSONObject aspects) Service Category: Bindings Service Description: Set the property binding for a property.void
SetLocationAlertParameter
(String property, String alertName, String parameterName, Location value, Boolean persistent) Service Category: Alerts Service Description: Set a location alert parameter.void
SetNumberAlertParameter
(String property, String alertName, String parameterName, Double value, Boolean persistent) Service Category: Alerts Service Description: Set a numeric alert parameter.void
SetPropertyLogging
(String propertyName, Boolean enabled) Service Category: DataLogging Service Description: Set property logging status for a specific property.void
SetRemoteEventBinding
(String eventName, String sourceEventName) Service Category: Bindings Service Description: Set the remote event binding for a event.void
SetRemotePropertyBinding
(String propertyName, String sourcePropertyName, Integer timeout, String pushType, Double pushThreshold) Deprecated.As of release 8.0.0, replaced bySetRemotePropertyBinding(String, String, Integer, String, Double, JSONObject, Integer, String)
void
SetRemotePropertyBinding
(String propertyName, String sourcePropertyName, Integer timeout, String pushType, Double pushThreshold, org.json.JSONObject aspects, Integer cacheTime, String foldType) Service Category: Bindings Service Description: Set the remote property binding for a property.void
SetRemoteServiceBinding
(String serviceName, String sourceServiceName, Integer timeout) Service Category: Bindings Service Description: Set the remote service binding for a service.void
SetStringAlertParameter
(String property, String alertName, String parameterName, String value, Boolean persistent) Service Category: Alerts Service Description: Set a string alert parameter.void
SetUnitsForNumericPropertyDefinition
(String propertyName, String units) Service Category: Metadata Service Description: Set the additional information for units for a specific Long, Integer, or Number property.Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
Methods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, ListDeprecatedUsage, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies, validateConfiguration
Methods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransient
Methods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.thingworx.types.INamedObject
getDescription
Methods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasID
Methods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getName, getOwner, isOwner
Methods inherited from interface com.thingworx.entities.interfaces.IShapeProvider
getName
Methods inherited from interface com.thingworx.accesscontrol.ISupportsAccessModifier
getAccessModifier, getAccessModifierScope, getExemptList, hasAccessModifier, isInternalAccess, isPrivateAccess, isRestrictedAccess
Methods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Constructor Details
-
Method Details
-
getEffectivePropertyDefinition
@ThingworxExtensionApiMethod(since={6,6}) public PropertyDefinition getEffectivePropertyDefinition(String propertyName) - Specified by:
getEffectivePropertyDefinition
in interfaceIAlertProvider
-
getEffectiveEventDefinition
@ThingworxExtensionApiMethod(since={6,6}) public EventDefinition getEffectiveEventDefinition(String eventName) - Specified by:
getEffectiveEventDefinition
in interfaceIEventMetadataProvider
-
getEffectiveServiceDefinition
@ThingworxExtensionApiMethod(since={6,6}) public ServiceDefinition getEffectiveServiceDefinition(String eventName) - Specified by:
getEffectiveServiceDefinition
in interfaceIServiceMetadataProvider
-
getInstanceShape
- Specified by:
getInstanceShape
in interfaceIShapeProvider
-
getEffectiveAlertConfiguration
@ThingworxExtensionApiMethod(since={6,6}) public AlertConfigurationCollection getEffectiveAlertConfiguration()- Specified by:
getEffectiveAlertConfiguration
in interfaceIAlertProvider
-
getAlertConfigurations
@ThingworxExtensionApiMethod(since={6,6}) public AlertConfigurationCollection getAlertConfigurations()- Specified by:
getAlertConfigurations
in interfaceIAlertProvider
-
QueryImplementingThings
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryImplementingThings(Double maxItems, TagCollection tags, String nameMask, org.json.JSONObject query) throws Exception - Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this shape.
- Specified by:
QueryImplementingThings
in interfaceIImplementableEntity
- Parameters:
maxItems
- Maximum number of items to return - NUMBERtags
- Tags to search on - TAGSnameMask
- Name pattern - STRINGquery
- Query definition - QUERY- Returns:
- result Implementing Things - INFOTABLE - Aspects {dataShape:RootEntityList}
- Throws:
Exception
- If an error occurs
-
QueryImplementingThingsWithData
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryImplementingThingsWithData(Double maxItems, TagCollection tags, String nameMask, org.json.JSONObject query) throws Exception - Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this shape along with the thing properties and values.
- Specified by:
QueryImplementingThingsWithData
in interfaceIImplementableEntity
- Parameters:
maxItems
- Maximum number of items to return - NUMBERtags
- Tags to search on - TAGSnameMask
- Name pattern - STRINGquery
- Query definition - QUERY- Returns:
- result Implementing Things With Data - INFOTABLE - Aspects {dataShape:RootEntityList}
- Throws:
Exception
- If an error occurs
-
QueryImplementingThingsWithNamedData
@ThingworxExtensionApiMethod(since={8,1}) public InfoTable QueryImplementingThingsWithNamedData(Double maxItems, TagCollection tags, String nameMask, org.json.JSONObject query, InfoTable basicPropertyNames, InfoTable propertyNames) throws Exception - Service Category:
- Queries
- Service Description:
- Returns a list containing the specific properties and values of all the Things that Implement this Shape.
- Specified by:
QueryImplementingThingsWithNamedData
in interfaceIImplementableEntity
- Parameters:
maxItems
- Maximum number of items to return - NUMBERtags
- Tags to search on - TAGSnameMask
- Name pattern - STRINGquery
- Query definition - QUERYbasicPropertyNames
- Include Basic Properties such as {isSystemObject, name, description, homeMashup, avatar, tags, projectName} - INFOTABLEpropertyNames
- Include Specific properties of this Shape - INFOTABLE- Returns:
- result Implementing Things With Named Data - INFOTABLE - Aspects {dataShape:RootEntityList}
- Throws:
Exception
- If an error occurs
-
GetImplementingThings
- Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this shape.
- Specified by:
GetImplementingThings
in interfaceIImplementableEntity
- Returns:
- result Implementing Things - INFOTABLE - Aspects {dataShape:RootEntityList}
- Throws:
Exception
- If an error occurs
-
GetImplementingThingsWithData
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetImplementingThingsWithData() throws Exception- Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this shape along with the thing properties and values.
- Specified by:
GetImplementingThingsWithData
in interfaceIImplementableEntity
- Returns:
- result Implementing Things - INFOTABLE - Aspects {dataShape:RootEntityList}
- Throws:
Exception
- If an error occurs
-
GetInstancePropertyDefinitions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetInstancePropertyDefinitions(String type) throws Exception - Service Category:
- Metadata
- Service Description:
- Get the current property definitions for this thing.
- Parameters:
type
- Type to filter on - STRING- Returns:
- result Property values - INFOTABLE - Aspects {dataShape:PropertyDefinition}
- Throws:
Exception
- If an error occurs
-
GetInstanceEventDefinitions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetInstanceEventDefinitions() throws Exception- Service Category:
- Metadata
- Service Description:
- Get the current event definitions for this thing.
- Returns:
- result Event definitions - INFOTABLE - Aspects {dataShape:EventDefinition}
- Throws:
Exception
- If an error occurs
-
GetInstanceServiceDefinitions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetInstanceServiceDefinitions() throws Exception- Service Category:
- Metadata
- Service Description:
- Get the current service definitions for this thing.
- Returns:
- result Service definitions - INFOTABLE - Aspects {dataShape:ServiceDefinition}
- Throws:
Exception
- If an error occurs
-
GetPropertyLogging
@ThingworxExtensionApiMethod(since={6,6}) public Boolean GetPropertyLogging(String propertyName) throws 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:
Exception
- If an error occurs
-
SetPropertyLogging
@ThingworxExtensionApiMethod(since={6,6}) public void SetPropertyLogging(String propertyName, Boolean enabled) throws Exception - Service Category:
- DataLogging
- Service Description:
- Set property logging status for a specific property.
- Parameters:
propertyName
- Property name - STRINGenabled
- Enable/disable logging - BOOLEAN- Throws:
Exception
- If an error occurs
-
SetUnitsForNumericPropertyDefinition
@ThingworxExtensionApiMethod(since={8,5}) public void SetUnitsForNumericPropertyDefinition(String propertyName, String units) throws Exception - Service Category:
- Metadata
- Service Description:
- Set the additional information for units for a specific Long, Integer, or Number property.
- Parameters:
propertyName
- Property name - STRINGunits
- Units (eg. lbs, F, inches, etc.) associated with input. For information only. - STRING- Throws:
Exception
- If an error occurs
-
AddPropertyTransformDefinition
@ThingworxExtensionApiMethod(since={8,4}) public void AddPropertyTransformDefinition(String name, String description, String category, Boolean persistent, Boolean logged, Integer timeout, InfoTable propertyTransformConfig) throws 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:
Exception
- If an error occurs
Creates a derived property on this ThingShape. 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.
-
AddPropertyDefinition
@ThingworxExtensionApiMethod(since={6,6}) @Deprecated public void AddPropertyDefinition(String name, String description, String type, String category, String dataShape, Boolean readOnly, Boolean persistent, Boolean logged, String dataChangeType, Double dataChangeThreshold, Boolean remote, String remotePropertyName, Integer timeout, String pushType, Double pushThreshold, String defaultValue) throws 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:
Exception
- If an error occurs
-
AddPropertyDefinition
@ThingworxExtensionApiMethod(since={8,0}, deprecatedSince={9,3}) @Deprecated public void AddPropertyDefinition(String name, String description, String type, String category, String dataShape, Boolean readOnly, Boolean persistent, Boolean logged, String dataChangeType, Double dataChangeThreshold, Boolean remote, String remotePropertyName, Integer timeout, String pushType, Double pushThreshold, String defaultValue, org.json.JSONObject remoteBindingAspects) throws Exception Deprecated.- Throws:
Exception
- If an error occurs
-
AddPropertyDefinition
@ThingworxExtensionApiMethod(since={8,0}, deprecatedSince={9,4}) @Deprecated public void AddPropertyDefinition(String name, String description, String type, String category, String dataShape, Boolean readOnly, Boolean persistent, Boolean logged, Boolean indexed, String dataChangeType, Double dataChangeThreshold, Boolean remote, String remotePropertyName, Integer timeout, String pushType, Double pushThreshold, String defaultValue, org.json.JSONObject remoteBindingAspects) throws Exception Deprecated.- Throws:
Exception
- If an error occurs
-
AddPropertyDefinition
@ThingworxExtensionApiMethod(since={9,3}) public void AddPropertyDefinition(String name, String description, String type, String category, String dataShape, Boolean readOnly, Boolean persistent, Boolean logged, Boolean indexed, String dataChangeType, Double dataChangeThreshold, Boolean remote, String remotePropertyName, Integer timeout, String pushType, Double pushThreshold, String defaultValue, org.json.JSONObject remoteBindingAspects, org.json.JSONObject accessModifier) throws Exception - Service Category:
- Metadata
- Service Description:
- Add a property definition.
- Parameters:
name
- Property name - STRINGdescription
- Property description - STRINGtype
- Data type - BASETYPENAMEcategory
- Category - STRINGdataShape
- Data shape - DATASHAPENAMEreadOnly
- Read only - BOOLEANpersistent
- Persist property value - BOOLEANlogged
- Log property value - BOOLEANindexed
- Index property value - BOOLEANdataChangeType
- Data change type - STRINGdataChangeThreshold
- Data change threshold - NUMBERremote
- Is a remote property - BOOLEANremotePropertyName
- Remote property name - STRINGtimeout
- Request timeout - INTEGERpushType
- Push type - STRINGpushThreshold
- Push threshold - NUMBERdefaultValue
- Default value for property - STRINGremoteBindingAspects
- Aspects for the remote binding - JSONaccessModifier
- AccessModifier for propertyDefinition - JSON- Throws:
Exception
- If an error occurs
-
AddServiceDefinition
@ThingworxExtensionApiMethod(since={8,0}, deprecatedSince={9,4}) @Deprecated public void AddServiceDefinition(String name, String description, String category, InfoTable parameters, InfoTable resultType, Boolean remote, String remoteServiceName, Integer timeout) throws Exception Deprecated.- Throws:
Exception
- If an error occurs
-
AddServiceDefinition
@ThingworxExtensionApiMethod(since={6,6}) public void AddServiceDefinition(String name, String description, String category, InfoTable parameters, InfoTable resultType, Boolean remote, String remoteServiceName, Integer timeout, org.json.JSONObject accessModifier) throws Exception - Service Category:
- Metadata
- Service Description:
- Add or update a service definition.
- Parameters:
name
- Property name - STRINGdescription
- Property description - STRINGcategory
- Category - STRINGparameters
- Service parameters - INFOTABLEresultType
- Service result type - INFOTABLEremote
- Is a remote service - BOOLEANremoteServiceName
- Remote service name - STRINGtimeout
- Request timeout - INTEGERaccessModifier
- AccessModifier for serviceDefinition - JSON- Throws:
Exception
- If an error occurs
-
AddEventDefinition
@ThingworxExtensionApiMethod(since={6,6}) public void AddEventDefinition(String name, String description, String category, String dataShape, Boolean remote, String remoteEventName) throws Exception - Service Category:
- Metadata
- Service Description:
- Add or update an event definition.
- Parameters:
name
- Property name - STRINGdescription
- Property description - STRINGcategory
- Category - STRINGdataShape
- Data shape - DATASHAPENAMEremote
- Is a remote service - BOOLEANremoteEventName
- Remote event name - STRING- Throws:
Exception
- If an error occurs
-
DisableSubscription
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={9,0}) public void DisableSubscription(String thingName, String eventName, String propertyName) throws Exception Deprecated.- Throws:
Exception
- If an error occurs
-
DisableSubscription
@ThingworxExtensionApiMethod(since={9,0}) public void DisableSubscription(String subscriptionName) throws Exception - Service Category:
- Subscriptions
- Service Description:
- Disable Subscription.
- Parameters:
subscriptionName
- Subscription name - STRING- Throws:
Exception
- If an error occurs
-
EnableSubscription
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={9,0}) public void EnableSubscription(String thingName, String eventName, String propertyName) throws Exception Deprecated.- Throws:
Exception
- If an error occurs
-
EnableSubscription
@ThingworxExtensionApiMethod(since={9,0}) public void EnableSubscription(String subscriptionName) throws Exception - Service Category:
- Subscriptions
- Service Description:
- Enable Subscription.
- Parameters:
subscriptionName
- Subscription name - STRING- Throws:
Exception
- If an error occurs
-
RemovePropertyDefinition
@ThingworxExtensionApiMethod(since={6,6}) public void RemovePropertyDefinition(String name) throws Exception - Service Category:
- Metadata
- Service Description:
- Remove a property definition.
- Parameters:
name
- Property name - STRING- Throws:
Exception
- If an error occurs
-
RemoveServiceDefinition
@ThingworxExtensionApiMethod(since={6,6}) public void RemoveServiceDefinition(String name) throws Exception - Service Category:
- Metadata
- Service Description:
- Remove a service definition.
- Parameters:
name
- Service name - STRING- Throws:
Exception
- If an error occurs
-
RemoveEventDefinition
@ThingworxExtensionApiMethod(since={6,6}) public void RemoveEventDefinition(String name) throws Exception - Service Category:
- Metadata
- Service Description:
- Remove a event definition.
- Parameters:
name
- Event name - STRING- Throws:
Exception
- If an error occurs
-
GetLoggedProperties
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetLoggedProperties(String type) throws 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:
Exception
- If an error occurs
-
GetNumericLoggedProperties
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetNumericLoggedProperties() throws 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:
Exception
- If an error occurs
-
getEntityType
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()Description copied from class:RootEntity
Returns the type of this entity.
- Specified by:
getEntityType
in interfaceIShapeProvider
- Specified by:
getEntityType
in classRootEntity
- Returns:
- the entity type
-
AddOrUpdateAlert
@ThingworxExtensionApiMethod(since={6,6}) public void AddOrUpdateAlert(String property, String alertType, String alertName, String description, Boolean enabled, Integer priority, InfoTable attributes, Boolean persistent) throws Exception - Service Category:
- Alerts
- Service Description:
- Add or update an alert for a property.
- Parameters:
property
- Property name - STRINGalertType
- Alert type - STRINGalertName
- Alert name - STRINGdescription
- Alert description - STRINGenabled
- Alert enabled - BOOLEANpriority
- Alert priority - INTEGERattributes
- Alert attributes - INFOTABLEpersistent
- Persist this change - BOOLEAN- Throws:
Exception
- If an error occurs
-
RemoveAlert
@ThingworxExtensionApiMethod(since={6,6}) public void RemoveAlert(String property, String alertName, Boolean persistent) throws Exception - Service Category:
- Alerts
- Service Description:
- Remove an alert for a property.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGpersistent
- Persist this change - BOOLEAN- Throws:
Exception
- If an error occurs
-
GetLocalAlertDefinitions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetLocalAlertDefinitions(String property) throws 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:
Exception
- If an error occurs
-
GetAlertDefinitions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetAlertDefinitions(String property) throws 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:
Exception
- If an error occurs
-
GetAlertDefinition
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetAlertDefinition(String property, String alertName) throws Exception - Service Category:
- Alerts
- Service Description:
- Get alert definition for a property.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRING- Returns:
- AlertDefinitions Alert definition - INFOTABLE - Aspects {dataShape:AlertDefinition}
- Throws:
Exception
- If an error occurs
-
HasAlert
@ThingworxExtensionApiMethod(since={6,6}) public Boolean HasAlert(String property, String alertName) throws Exception - Service Category:
- Alerts
- Service Description:
- Check to see if an alert is defined for a property.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRING- Returns:
- result Has alert definition - BOOLEAN
- Throws:
Exception
- If an error occurs
-
SetNumberAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public void SetNumberAlertParameter(String property, String alertName, String parameterName, Double value, Boolean persistent) throws Exception - Service Category:
- Alerts
- Service Description:
- Set a numeric alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRINGvalue
- Parameter value - NUMBERpersistent
- Make it persistent - BOOLEAN- Throws:
Exception
- If an error occurs
-
GetNumberAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public Double GetNumberAlertParameter(String property, String alertName, String parameterName) throws Exception - Service Category:
- Alerts
- Service Description:
- Get a numeric alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRING- Returns:
- value Alert parameter value - NUMBER
- Throws:
Exception
- If an error occurs
-
SetIntegerAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public void SetIntegerAlertParameter(String property, String alertName, String parameterName, Integer value, Boolean persistent) throws Exception - Service Category:
- Alerts
- Service Description:
- Set a numeric alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRINGvalue
- Parameter value - INTEGERpersistent
- Make it persistent - BOOLEAN- Throws:
Exception
- If an error occurs
-
GetIntegerAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public Integer GetIntegerAlertParameter(String property, String alertName, String parameterName) throws Exception - Service Category:
- Alerts
- Service Description:
- Get a numeric alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRING- Returns:
- value Alert parameter value - INTEGER
- Throws:
Exception
- If an error occurs
-
GetLongAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public Long GetLongAlertParameter(String property, String alertName, String parameterName) throws Exception - Service Category:
- Alerts
- Service Description:
- Get a numeric alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRING- Returns:
- value Alert parameter value - LONG
- Throws:
Exception
- If an error occurs
-
SetBooleanAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public void SetBooleanAlertParameter(String property, String alertName, String parameterName, Boolean value, Boolean persistent) throws Exception - Service Category:
- Alerts
- Service Description:
- Set a boolean alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRINGvalue
- Parameter value - BOOLEANpersistent
- Make it persistent - BOOLEAN- Throws:
Exception
- If an error occurs
-
GetBooleanAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public Boolean GetBooleanAlertParameter(String property, String alertName, String parameterName) throws Exception - Service Category:
- Alerts
- Service Description:
- Get a boolean alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRING- Returns:
- value Alert parameter value - BOOLEAN
- Throws:
Exception
- If an error occurs
-
SetDateTimeAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public void SetDateTimeAlertParameter(String property, String alertName, String parameterName, org.joda.time.DateTime value, Boolean persistent) throws Exception - Service Category:
- Alerts
- Service Description:
- Set a date alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRINGvalue
- Parameter value - DATETIMEpersistent
- Make it persistent - BOOLEAN- Throws:
Exception
- If an error occurs
-
GetDateTimeAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public org.joda.time.DateTime GetDateTimeAlertParameter(String property, String alertName, String parameterName) throws Exception - Service Category:
- Alerts
- Service Description:
- Get a date alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRING- Returns:
- value Alert parameter value - DATETIME
- Throws:
Exception
- If an error occurs
-
SetLocationAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public void SetLocationAlertParameter(String property, String alertName, String parameterName, Location value, Boolean persistent) throws Exception - Service Category:
- Alerts
- Service Description:
- Set a location alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRINGvalue
- Parameter value - LOCATIONpersistent
- Make it persistent - BOOLEAN- Throws:
Exception
- If an error occurs
-
GetLocationAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public Location GetLocationAlertParameter(String property, String alertName, String parameterName) throws Exception - Service Category:
- Alerts
- Service Description:
- Get a location alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRING- Returns:
- value Alert parameter value - LOCATION
- Throws:
Exception
- If an error occurs
-
SetStringAlertParameter
@ThingworxExtensionApiMethod(since={6,6}) public void SetStringAlertParameter(String property, String alertName, String parameterName, String value, Boolean persistent) throws Exception - Service Category:
- Alerts
- Service Description:
- Set a string alert parameter.
- Parameters:
property
- Property name - STRINGalertName
- Alert name - STRINGparameterName
- Parameter name - STRINGvalue
- Parameter value - STRINGpersistent
- Make it persistent - BOOLEAN- Throws:
Exception
- If an error occurs
-
GetLocalPropertyBinding
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetLocalPropertyBinding(String propertyName) throws 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:
Exception
- If an error occurs
-
GetEffectiveLocalPropertyBinding
@ThingworxExtensionApiMethod(since={7,3}) public InfoTable GetEffectiveLocalPropertyBinding(String propertyName) throws 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:
Exception
-
GetEffectiveLocalPropertyBindings
@ThingworxExtensionApiMethod(since={7,3}) public InfoTable GetEffectiveLocalPropertyBindings() throws 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:
Exception
-
RemoveLocalPropertyBinding
@ThingworxExtensionApiMethod(since={6,6}) public void RemoveLocalPropertyBinding(String propertyName) throws Exception - Service Category:
- Bindings
- Service Description:
- Remove the local property binding for a property.
- Parameters:
propertyName
- Property name - STRING- Throws:
Exception
- If an error occurs
-
SetLocalPropertyBinding
@ThingworxExtensionApiMethod(since={6,6}) @Deprecated public void SetLocalPropertyBinding(String propertyName, String sourceThingName, String sourcePropertyName) throws Exception Deprecated.As of release 8.1.0, replaced bySetLocalPropertyBinding(String, String, String, JSONObject)
- Throws:
Exception
- If an error occurs
-
SetLocalPropertyBinding
@ThingworxExtensionApiMethod(since={8,1,0}) public void SetLocalPropertyBinding(String propertyName, String sourceThingName, String sourcePropertyName, org.json.JSONObject aspects) throws Exception - Service Category:
- Bindings
- Service Description:
- Set the property binding for a property.
- Parameters:
propertyName
- Property name - STRINGsourceThingName
- Thing name to bind to - STRINGsourcePropertyName
- Source property name - STRINGaspects
- Aspects for the local binding - JSON- Throws:
Exception
- If an error occurs
-
GetRemotePropertyBinding
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetRemotePropertyBinding(String propertyName) throws 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:
Exception
- If an error occurs
-
RemoveRemotePropertyBinding
@ThingworxExtensionApiMethod(since={6,6}) public void RemoveRemotePropertyBinding(String propertyName) throws Exception - Service Category:
- Bindings
- Service Description:
- Remove the remote property binding for a property.
- Parameters:
propertyName
- Property name - STRING- Throws:
Exception
- If an error occurs
-
SetRemotePropertyBinding
@ThingworxExtensionApiMethod(since={6,6}) @Deprecated public void SetRemotePropertyBinding(String propertyName, String sourcePropertyName, Integer timeout, String pushType, Double pushThreshold) throws Exception Deprecated.As of release 8.0.0, replaced bySetRemotePropertyBinding(String, String, Integer, String, Double, JSONObject, Integer, String)
- Throws:
Exception
- If an error occurs
-
SetRemotePropertyBinding
@ThingworxExtensionApiMethod(since={8,0}) public void SetRemotePropertyBinding(String propertyName, String sourcePropertyName, Integer timeout, String pushType, Double pushThreshold, org.json.JSONObject aspects, Integer cacheTime, String foldType) throws Exception - Service Category:
- Bindings
- Service Description:
- Set the remote property binding for a property.
- Parameters:
propertyName
- Property name - STRINGsourcePropertyName
- Source property name - STRINGtimeout
- Request timeout - INTEGERpushType
- Push type - STRINGpushThreshold
- Push threshold - NUMBERaspects
- Aspects for the remote binding - JSONcacheTime
- Property's cache time value at the server - INTEGERfoldType
- How a remote property's value should be handled by the server when a connection is lost - STRING- Throws:
Exception
- If an error occurs
-
GetRemoteServiceBinding
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetRemoteServiceBinding(String serviceName) throws 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:
Exception
- If an error occurs
-
RemoveRemoteServiceBinding
@ThingworxExtensionApiMethod(since={6,6}) public void RemoveRemoteServiceBinding(String serviceName) throws Exception - Service Category:
- Bindings
- Service Description:
- Remove the remote service binding for a service.
- Parameters:
serviceName
- Service name - STRING- Throws:
Exception
- If an error occurs
-
SetRemoteServiceBinding
@ThingworxExtensionApiMethod(since={6,6}) public void SetRemoteServiceBinding(String serviceName, String sourceServiceName, Integer timeout) throws Exception - Service Category:
- Bindings
- Service Description:
- Set the remote service binding for a service.
- Parameters:
serviceName
- Service name - STRINGsourceServiceName
- Source service name - STRINGtimeout
- Request timeout - INTEGER- Throws:
Exception
- If an error occurs
-
GetRemoteEventBinding
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetRemoteEventBinding(String eventName) throws 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:
Exception
- If an error occurs
-
RemoveRemoteEventBinding
@ThingworxExtensionApiMethod(since={6,6}) public void RemoveRemoteEventBinding(String eventName) throws Exception - Service Category:
- Bindings
- Service Description:
- Remove the remote event binding for a event.
- Parameters:
eventName
- Event name - STRING- Throws:
Exception
- If an error occurs
-
SetRemoteEventBinding
@ThingworxExtensionApiMethod(since={6,6}) public void SetRemoteEventBinding(String eventName, String sourceEventName) throws Exception - Service Category:
- Bindings
- Service Description:
- Set the remote event binding for a event.
- Parameters:
eventName
- Event name - STRINGsourceEventName
- Source event name - STRING- Throws:
Exception
- If an error occurs
-
getInstanceRunTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public RunTimePermissionCollection getInstanceRunTimePermissions()- Specified by:
getInstanceRunTimePermissions
in interfaceIInstanceRunTimeSecurable
-
setInstanceRunTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public void setInstanceRunTimePermissions(RunTimePermissionCollection value) - Specified by:
setInstanceRunTimePermissions
in interfaceIInstanceRunTimeSecurable
-
AddInstanceRunTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void AddInstanceRunTimePermission(String type, String resource, String principal, String principalType, Boolean allow) throws Exception - Service Category:
- Permissions
- Service Description:
- Add an instance run time permission.
- Parameters:
type
- Permission type (PropertyRead PropertyWrite ServiceInvoke EventInvoke EventSubscribe) - STRINGresource
- Resource name (* = all or enter a specific resource to override) - STRINGprincipal
- Principal name (name of user or group) - STRINGprincipalType
- Principal type (User or Group) - STRINGallow
- Permission (true = allow, false = deny) - BOOLEAN- Throws:
Exception
- If an error occurs
-
DeleteInstanceRunTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteInstanceRunTimePermission(String type, String resource, String principal, String principalType) throws Exception - Service Category:
- Permissions
- Service Description:
- Delete an instance run time permission.
- Parameters:
type
- Permission type - STRINGresource
- Resource name - STRINGprincipal
- Principal name (name of user or group) - STRINGprincipalType
- Principal type (User or Group) - STRING- Throws:
Exception
- If an error occurs
-
GetInstanceRunTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetInstanceRunTimePermissions() throws Exception- Service Category:
- Permissions
- Service Description:
- Get a list of assigned instance runtime permissions.
- Returns:
- result Permission list - INFOTABLE - Aspects {dataShape:Permissions}
- Throws:
Exception
- If an error occurs
-
GetInstanceRunTimePermissionsAsJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject GetInstanceRunTimePermissionsAsJSON() throws Exception- Service Category:
- Permissions
- Service Description:
- Get a list of assigned runtime permissions.
- Returns:
- result Permission list - JSON
- Throws:
Exception
- If an error occurs
-
SetInstanceRunTimePermissionsAsJSON
@ThingworxExtensionApiMethod(since={6,6}) public void SetInstanceRunTimePermissionsAsJSON(org.json.JSONObject permissions) throws Exception - Service Category:
- Permissions
- Service Description:
- Set a list of assigned runtime permissions.
- Parameters:
permissions
- Permissions in JSON format - JSON- Throws:
Exception
- If an error occurs
-
QueryImplementingThingsOptimized
@ThingworxExtensionApiMethod(since={9,1}) public InfoTable QueryImplementingThingsOptimized(Double maxItems, TagCollection tags, String nameMask, org.json.JSONObject query, Boolean withPermissions, InfoTable basicPropertyNames, InfoTable propertyNames, String networkName, String networkParentNode, Integer networkMaxDepth, Double offset) throws Exception - Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this shape.
- Specified by:
QueryImplementingThingsOptimized
in interfaceIImplementableEntity
- Parameters:
maxItems
- Maximum number of items to return - NUMBERtags
- Tags to search on - TAGSnameMask
- Name pattern - STRINGquery
- Query definition - QUERYwithPermissions
- whether or not to include read / update / delete permission information in the result - BOOLEANbasicPropertyNames
- Include Basic Properties such as {isSystemObject, name, description, homeMashup, avatar, tags, projectName} - INFOTABLEpropertyNames
- Include propertyNames - INFOTABLEnetworkName
- Name of network - STRINGnetworkParentNode
- Name of the top network node - STRINGnetworkMaxDepth
- Max depth to search in the network - INTEGERoffset
- the number of rows to skip before starting to return rows from the query - NUMBER- Returns:
- result Implementing Things - INFOTABLE - Aspects {dataShape:RootEntityList}
- Throws:
Exception
- If an error occurs
-
QueryImplementingThingsOptimizedWithTotalCount
@ThingworxExtensionApiMethod(since={9,1}) public InfoTable QueryImplementingThingsOptimizedWithTotalCount(Double maxItems, TagCollection tags, String nameMask, org.json.JSONObject query, Boolean withPermissions, InfoTable basicPropertyNames, InfoTable propertyNames, String networkName, String networkParentNode, Integer networkMaxDepth, Double offset) throws Exception - Service Category:
- Queries
- Service Description:
- Return a list of all the things that implement this shape.
- Specified by:
QueryImplementingThingsOptimizedWithTotalCount
in interfaceIImplementableEntity
- Parameters:
maxItems
- Maximum number of items to return - NUMBERtags
- Tags to search on - TAGSnameMask
- Name pattern - STRINGquery
- Query definition - QUERYwithPermissions
- whether or not to include read / update / delete permission information in the result - BOOLEANbasicPropertyNames
- Include Basic Properties such as {isSystemObject, name, description, homeMashup, avatar, tags, projectName} - INFOTABLEpropertyNames
- Include propertyNames - INFOTABLEnetworkName
- Name of network - STRINGnetworkParentNode
- Name of the top network node - STRINGnetworkMaxDepth
- Max depth to search in the network - INTEGERoffset
- the number of rows to skip before starting to return rows from the query - NUMBER- Returns:
- result Implementing Things - INFOTABLE - Aspects {dataShape:ImplementedThingsWithTotalCount}
- Throws:
Exception
- If an error occurs
-
persistInstanceRunTimePermissions
@ThingworxExtensionApiMethod(since={6,6}) public void persistInstanceRunTimePermissions() throws Exception- Specified by:
persistInstanceRunTimePermissions
in interfaceIInstanceRunTimeSecurable
- Throws:
Exception
- If an error occurs
-
addInstanceRunTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void addInstanceRunTimePermission(PermissionTypes permissionType, String resourceName, Permission permission) throws Exception - Specified by:
addInstanceRunTimePermission
in interfaceIInstanceRunTimeSecurable
- Throws:
Exception
- If an error occurs
-
deleteInstanceRunTimePermission
@ThingworxExtensionApiMethod(since={6,6}) public void deleteInstanceRunTimePermission(PermissionTypes permissionType, String resourceName, Permission permission) throws Exception - Specified by:
deleteInstanceRunTimePermission
in interfaceIInstanceRunTimeSecurable
- Throws:
Exception
- If an error occurs
-